diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/patches/monobjc/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/patches/monobjc/Makefile b/packages/patches/monobjc/Makefile new file mode 100644 index 0000000..1230028 --- /dev/null +++ b/packages/patches/monobjc/Makefile @@ -0,0 +1,30 @@ +SOURCES = $(wildcard *.mm) +OBJECTS = $(SOURCES:.mm=.o) +DYLIB = libmonobjc.2.dylib + +CURRENT_VERSION = 2.0.0 +COMPATIBILITY_VERSION = 2.0.0 + +CFLAGS := $(CFLAGS) \ + -mstackrealign \ + -x objective-c++ \ + +LDFLAGS := $(LDFLAGS) \ + -lobjc \ + -lstdc++ \ + -framework Foundation \ + -shared \ + -install_name $(DYLIB) \ + -compatibility_version $(COMPATIBILITY_VERSION) \ + -current_version $(CURRENT_VERSION) + +all: $(SOURCES) $(DYLIB) + +$(DYLIB): $(OBJECTS) + $(CC) $(LDFLAGS) $(OBJECTS) -o $@ + +%.o: %.mm + $(CC) $(CFLAGS) -c $< -o $@ + +clean: + rm -f $(OBJECTS) $(DYLIB) |