CPP = g++ FLAG = -g -O2 -W -Wall -D_DEBUG -std=c++0x -Wl,-rpath -static INCLUDE_DIR = ../include:../P2SP:../../log4cplus-1.0.4/include LIB_DIR = ../../log4cplus-1.0.4/lib:../Debug LIB_FILES = log4cplus:p2sp:datamgr:pthread:rt:boost_thread INCLUDE = $(patsubst %, -I%, $(subst :, , $(INCLUDE_DIR))) LIB = $(patsubst %, -L%, $(subst :, , $(LIB_DIR))) LIBS = $(patsubst %, -l%, $(subst :, , $(LIB_FILES))) TARGET = letvp2sp $(TARGET): letvp2sp.cpp $(CPP) -o $@ $(FLAG) $(INCLUDE) $(LIB) $(LIBS) $< .PHONY: clean clean: rm -f $(TARGET) *.d *.o *~