From: Lukas F. <lf...@us...> - 2006-04-18 07:29:57
|
Update of /cvsroot/loki-lib/loki/test/Singleton In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31155/test/Singleton Modified Files: Makefile Log Message: - Various makefile improvements (better mingw support, easier to add new sources) - Include loki/StrongPtr.hpp, not Loki/StrongPtr.hpp (test/SmartPtr) Index: Makefile =================================================================== RCS file: /cvsroot/loki-lib/loki/test/Singleton/Makefile,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- Makefile 22 Feb 2006 23:03:32 -0000 1.8 +++ Makefile 18 Apr 2006 07:29:40 -0000 1.9 @@ -1,11 +1,20 @@ -BIN2 = Dependencies -BIN3 = Phoenix -CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2 -CPPFLAGS = -I../../include -DNDEBUG -LDFLAGS = -L../../lib -LDLIBS = -lloki +BIN1 = Dependencies$(BIN_SUFFIX) +SRC1 = Dependencies.cpp +OBJ1 = $(SRC1:.cpp=.o) +BIN2 = Phoenix$(BIN_SUFFIX) +SRC2 = Phoenix.cpp +OBJ2 = $(SRC2:.cpp=.o) -.PHONY: build clean -build: $(BIN2) $(BIN3) +.PHONY: all clean +all: $(BIN1) $(BIN2) clean: - rm -f $(BIN2) $(BIN3) $(BIN2).exe $(BIN2).o $(BIN3).exe $(BIN3).o + $(RM) $(BIN1) + $(RM) $(OBJ1) + $(RM) $(BIN2) + $(RM) $(OBJ2) + +$(BIN1): $(OBJ1) + $(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS) + +$(BIN2): $(OBJ2) + $(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS) |