[Assorted-commits] SF.net SVN: assorted: [338] hash-join/trunk/src/Makefile
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-02-07 18:42:34
|
Revision: 338 http://assorted.svn.sourceforge.net/assorted/?rev=338&view=rev Author: yangzhang Date: 2008-02-07 10:42:39 -0800 (Thu, 07 Feb 2008) Log Message: ----------- updated Makefile to produce multiple version of the executable Modified Paths: -------------- hash-join/trunk/src/Makefile Modified: hash-join/trunk/src/Makefile =================================================================== --- hash-join/trunk/src/Makefile 2008-02-07 17:06:08 UTC (rev 337) +++ hash-join/trunk/src/Makefile 2008-02-07 18:42:39 UTC (rev 338) @@ -1,10 +1,21 @@ -all: hashjoin +CFLAGS := -Wall -lprofiler -lpthread +CXX = g++ $(CFLAGS) -o $@ $^ -hashjoin: hashjoin.cc - # g++ -g3 -Wall -o hashjoin hashjoin.cc -lprofiler -lpthread - g++ -O3 -Wall -o hashjoin hashjoin.cc -lprofiler -lpthread +all: opt dbg pg +dbg: hashjoin-dbg +opt: hashjoin-opt +pg: hashjoin-pg +hashjoin-pg: hashjoin.cc + $(CXX) -pg + +hashjoin-dbg: hashjoin.cc + $(CXX) -g3 + +hashjoin-opt: hashjoin.cc + $(CXX) -O3 + clean: - rm -f hashjoin + rm -f hashjoin-opt hashjoin-dbg -.PHONY: clean +.PHONY: clean dbg opt This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |