view 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
line wrap: on
line source
# 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
# use -c++ g++-4.2 on Snow Leopard

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