diff cpp/Makefile @ 0:0dd31a8c66bd

Initial check in to Mercurial, V.1
author samer
date Fri, 13 Jan 2012 15:29:02 +0000
parents
children 9b16fbec2f33 460f6c74b33a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cpp/Makefile	Fri Jan 13 15:29:02 2012 +0000
@@ -0,0 +1,27 @@
+# This will not work as a stand-alone make file - it must be
+# called recursively from the make file in the directory above.
+
+TARGET=plml.$(SO)
+INCML=$(MATLAB)/extern/include
+LIBML=$(MATLAB)/bin/$(MLARCH)
+PLLDFLAGS=-c++ g++-apple-4.2 $(INCLUDES) -I$(INCML) -Wall
+
+.SUFFIXES: .cpp .o .so .dylib
+
+main: $(TARGET)
+
+clean:
+	rm $(TARGET)
+
+.cpp.so: 
+	$(PLLD) -v $(PLLDFLAGS) -L$(LIBML) -shared $(MLLIBS) -o $@ $<
+	strip -x $@
+
+.cpp.dylib: 
+	$(PLLD) -v $(PLLDFLAGS) -L$(LIBML) -shared $(MLLIBS) -o $@ $<
+	strip -x $@
+
+install:
+	install -d $(INSTALL_LIB_TO)
+	install $(INSTALL_FLAGS) $(TARGET) $(INSTALL_LIB_TO)
+