[banshee] [darwin] add the missing Monobjc Makefile



commit f92933db198ca757b087deb76de60dadde306301
Author: Aaron Bockover <abockover novell com>
Date:   Thu Feb 25 16:35:55 2010 -0500

    [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.

 build/bundle/packages/patches/monobjc/Makefile |   30 ++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/build/bundle/packages/patches/monobjc/Makefile b/build/bundle/packages/patches/monobjc/Makefile
new file mode 100644
index 0000000..1230028
--- /dev/null
+++ b/build/bundle/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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]