From: Lukas F. <lf...@us...> - 2006-04-18 07:30:01
|
Update of /cvsroot/loki-lib/loki/test/Pimpl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31155/test/Pimpl 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/Pimpl/Makefile,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Makefile 23 Jan 2006 15:33:56 -0000 1.5 +++ Makefile 18 Apr 2006 07:29:40 -0000 1.6 @@ -1,10 +1,12 @@ -BIN = main -CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2 -CPPFLAGS = -I../../include -DNDEBUG -LDFLAGS = -L../../lib -LDLIBS = -lloki +BIN = main$(BIN_SUFFIX) +SRC = main.cpp +OBJ = $(SRC:.cpp=.o) -.PHONY: build clean -build: $(BIN) +.PHONY: all clean +all: $(BIN) clean: - rm -f $(BIN) $(BIN).exe $(BIN).o + $(RM) $(BIN) + $(RM) $(OBJ) + +$(BIN): $(OBJ) + $(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS) |