[Assorted-commits] SF.net SVN: assorted: [343] hash-join/trunk/src/Makefile
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-02-09 19:37:18
|
Revision: 343 http://assorted.svn.sourceforge.net/assorted/?rev=343&view=rev Author: yangzhang Date: 2008-02-09 11:37:17 -0800 (Sat, 09 Feb 2008) Log Message: ----------- fixed up for binutils list post Modified Paths: -------------- hash-join/trunk/src/Makefile Modified: hash-join/trunk/src/Makefile =================================================================== --- hash-join/trunk/src/Makefile 2008-02-09 16:06:45 UTC (rev 342) +++ hash-join/trunk/src/Makefile 2008-02-09 19:37:17 UTC (rev 343) @@ -1,31 +1,39 @@ -CFLAGS := -Wall -lprofiler -lpthread -CXX = g++ $(CFLAGS) -o $@ $^ +TARGET := hashjoin +SRCS := hashjoin.cc +### begin common makefrag + +CFLAGS := -Wall -lpthread # -lprofiler + +CXX = g++ $(CFLAGS) -o $@ $^ + all: opt dbg pg -dbg: hashjoin-dbg -opt: hashjoin-opt -pg: hashjoin-pg +dbg: $(TARGET)-dbg +opt: $(TARGET)-opt +pg: $(TARGET)-pg -bench: hashjoin-opt - for i in 1 `seq 2 2 16` `seq 24 8 64` ; do \ - ./hashjoin-opt $$i $(MOVIEDATA)/movies.dat $(MOVIEDATA)/actresses.dat ; \ - done > log 2>&1 - -hashjoin-pg: hashjoin.cc +$(TARGET)-pg: $(SRCS) $(CXX) -g -pg -hashjoin-dbg: hashjoin.cc +$(TARGET)-dbg: $(SRCS) $(CXX) -g3 -fno-omit-frame-pointer -hashjoin-opt: hashjoin.cc +$(TARGET)-opt: $(SRCS) $(CXX) -g -O3 -fno-omit-frame-pointer doc: doc/html/index.html -doc/html/index.html: hashjoin.cc +doc/html/index.html: $(SRCS) Doxyfile doxygen clean: - rm -f hashjoin-opt hashjoin-dbg hashjoin-pg doc + rm -rf $(TARGET)-opt $(TARGET)-dbg $(TARGET)-pg doc .PHONY: clean dbg opt pg bench doc + +### end common makefrag + +bench: $(TARGET)-opt + for i in 1 `seq 2 2 16` `seq 24 8 64` ; do \ + ./$(TARGET)-opt $$i $(MOVIEDATA)/movies.dat $(MOVIEDATA)/actresses.dat ; \ + done > log 2>&1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |