view cpp/Makefile @ 15:e395e387bd3c

FIX: now catching precursor signs of lock-up bug correctly ENHANCEMENT: As a side effect, mlWSAlloc and mlExec are faster.
author samer
date Thu, 02 Feb 2012 12:57:15 +0000
parents 440734a35533
children 256016cddcba
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=$(CXX) $(INCLUDES) -I$(INCML) -Wall -g3

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