[Assorted-commits] SF.net SVN: assorted:[1249] cpp-commons/trunk/src/test/Makefile
Brought to you by:
yangzhang
From: <yan...@us...> - 2009-03-04 23:30:56
|
Revision: 1249 http://assorted.svn.sourceforge.net/assorted/?rev=1249&view=rev Author: yangzhang Date: 2009-03-04 23:30:45 +0000 (Wed, 04 Mar 2009) Log Message: ----------- added debug info; moved build tests to test/build/; making way for unit tests Modified Paths: -------------- cpp-commons/trunk/src/test/Makefile Modified: cpp-commons/trunk/src/test/Makefile =================================================================== --- cpp-commons/trunk/src/test/Makefile 2009-03-04 23:30:14 UTC (rev 1248) +++ cpp-commons/trunk/src/test/Makefile 2009-03-04 23:30:45 UTC (rev 1249) @@ -1,4 +1,5 @@ CXXFLAGS = \ + -g3 \ -Wall \ -Werror \ -Wextra \ @@ -30,6 +31,15 @@ -Wvolatile-register-var \ -std=gnu++0x \ -all: $(patsubst %.cc,%.o,$(wildcard *.cc)) +LDLIBS = -lgtest +BUILD_OBJS = $(patsubst build/%.cc,build/%.o,$(wildcard build/*.cc)) +BINS = $(patsubst %.cc,%,$(wildcard *.cc)) -.PHONY: all +all: build $(BINS) + +build: $(BUILD_OBJS) + +clean: + rm -f $(BINS) + +.PHONY: all build clean This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |