comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:0dd31a8c66bd
1 # This will not work as a stand-alone make file - it must be
2 # called recursively from the make file in the directory above.
3
4 TARGET=plml.$(SO)
5 INCML=$(MATLAB)/extern/include
6 LIBML=$(MATLAB)/bin/$(MLARCH)
7 PLLDFLAGS=-c++ g++-apple-4.2 $(INCLUDES) -I$(INCML) -Wall
8
9 .SUFFIXES: .cpp .o .so .dylib
10
11 main: $(TARGET)
12
13 clean:
14 rm $(TARGET)
15
16 .cpp.so:
17 $(PLLD) -v $(PLLDFLAGS) -L$(LIBML) -shared $(MLLIBS) -o $@ $<
18 strip -x $@
19
20 .cpp.dylib:
21 $(PLLD) -v $(PLLDFLAGS) -L$(LIBML) -shared $(MLLIBS) -o $@ $<
22 strip -x $@
23
24 install:
25 install -d $(INSTALL_LIB_TO)
26 install $(INSTALL_FLAGS) $(TARGET) $(INSTALL_LIB_TO)
27