Mercurial > hg > plml
annotate cpp/Makefile @ 4:460f6c74b33a
Updated to latest dcgu.pl and added comment about -c++ flag in Makefile
author | samer |
---|---|
date | Tue, 17 Jan 2012 18:39:14 +0000 |
parents | 0dd31a8c66bd |
children | 193d582746e5 |
rev | line source |
---|---|
samer@0 | 1 # This will not work as a stand-alone make file - it must be |
samer@0 | 2 # called recursively from the make file in the directory above. |
samer@0 | 3 |
samer@0 | 4 TARGET=plml.$(SO) |
samer@0 | 5 INCML=$(MATLAB)/extern/include |
samer@0 | 6 LIBML=$(MATLAB)/bin/$(MLARCH) |
samer@0 | 7 PLLDFLAGS=-c++ g++-apple-4.2 $(INCLUDES) -I$(INCML) -Wall |
samer@4 | 8 # use -c++ g++-4.2 on Snow Leopard |
samer@0 | 9 |
samer@0 | 10 .SUFFIXES: .cpp .o .so .dylib |
samer@0 | 11 |
samer@0 | 12 main: $(TARGET) |
samer@0 | 13 |
samer@0 | 14 clean: |
samer@0 | 15 rm $(TARGET) |
samer@0 | 16 |
samer@0 | 17 .cpp.so: |
samer@0 | 18 $(PLLD) -v $(PLLDFLAGS) -L$(LIBML) -shared $(MLLIBS) -o $@ $< |
samer@0 | 19 strip -x $@ |
samer@0 | 20 |
samer@0 | 21 .cpp.dylib: |
samer@0 | 22 $(PLLD) -v $(PLLDFLAGS) -L$(LIBML) -shared $(MLLIBS) -o $@ $< |
samer@0 | 23 strip -x $@ |
samer@0 | 24 |
samer@0 | 25 install: |
samer@0 | 26 install -d $(INSTALL_LIB_TO) |
samer@0 | 27 install $(INSTALL_FLAGS) $(TARGET) $(INSTALL_LIB_TO) |
samer@0 | 28 |