view cpp/Makefile @ 27:555b29024dab

Switched to use_foreign_library/1 and replaced plm_state with simpler current_engine/1
author samer
date Fri, 24 Feb 2012 18:11:23 +0000
parents 256016cddcba
children
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

.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)
	install $(INSTALL_FLAGS) logio $(INSTALL_LIB_TO)