Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/bockbuild.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Bockover <abockover@novell.com>2010-02-26 00:35:55 +0300
committerAaron Bockover <abockover@novell.com>2010-02-26 00:35:55 +0300
commit1c9470c11af23e3d2938ce149e291db362c7c8ff (patch)
treee534a899e1d39b54404d1701eaea4e980e257856 /packages
parent7f785a626b68ebba9169d230a12c932d0fbd1aac (diff)
[darwin] add the missing Monobjc Makefile
It was ignored by .gitignore. This Makefile is necessary because nant and xcodebuild screw up the native lib. Sigh.
Diffstat (limited to 'packages')
-rw-r--r--packages/patches/monobjc/Makefile30
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)