Changeset 7a054e82 for doc/generic_types/evaluation/Makefile
- Timestamp:
- Apr 10, 2017, 3:17:29 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- b715c9a
- Parents:
- b0fedd4 (diff), b276be5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/generic_types/evaluation/Makefile
rb0fedd4 r7a054e82 1 1 CFA = my-cfa 2 2 DEPFLAGS = -MMD -MP 3 CFLAGS = -O2 -flto 4 CXXFLAGS = $(CFLAGS) --std=c++14 3 5 4 .PHONY: all clean distclean bench6 .PHONY: all clean distclean run-c run-cpp run-cfa run 5 7 6 all: c-bench cpp-bench cfa-bench c2-bench cpp2-bench cfa2-bench8 all: c-bench cpp-bench cfa-bench 7 9 8 10 # rewrite object generation to auto-determine deps … … 13 15 c-%.o : c-%.c 14 16 c-%.o : c-%.c c-%.d 15 $(COMPILE.c) -O0$(OUTPUT_OPTION) -c $<17 $(COMPILE.c) $(OUTPUT_OPTION) -c $< 16 18 17 19 cpp-%.o : cpp-%.cpp 18 20 cpp-%.o : cpp-%.cpp cpp-%.d 19 $(COMPILE.cpp) -O0$(OUTPUT_OPTION) -c $<21 $(COMPILE.cpp) $(OUTPUT_OPTION) -c $< 20 22 21 23 cfa-%.o : cfa-%.c 22 24 cfa-%.o : cfa-%.c cfa-%.d 23 $(COMPILE.cfa) -O0 $(OUTPUT_OPTION) -c $< 24 25 c2-%.o : c-%.c 26 c2-%.o : c-%.c c-%.d 27 $(COMPILE.c) -O2 $(OUTPUT_OPTION) -c $< 28 29 cpp2-%.o : cpp-%.cpp 30 cpp2-%.o : cpp-%.cpp cpp-%.d 31 $(COMPILE.cpp) -O2 $(OUTPUT_OPTION) -c $< 32 33 cfa2-%.o : cfa-%.c 34 cfa2-%.o : cfa-%.c cfa-%.d 35 $(COMPILE.cfa) -O2 $(OUTPUT_OPTION) -c $< 25 $(COMPILE.cfa) $(OUTPUT_OPTION) -c $< 36 26 37 27 COBJS = c-stack.o 38 28 CPPOBJS = 29 CPPVOBJS = cpp-vstack.o 39 30 CFAOBJS = cfa-stack.o 40 C2OBJS = $(patsubst c-%,c2-%, $(COBJS))41 CPP2OBJS = $(patsubst cpp-%,cpp2-%, $(CPPOBJS))42 CFA2OBJS = $(patsubst cfa-%,cfa2-%, $(CFAOBJS))43 31 44 32 c-bench: c-bench.c c-bench.d $(COBJS) 45 $(COMPILE.c) - O0 -o $@ $< $(COBJS) $(LDFLAGS)33 $(COMPILE.c) -o $@ $< $(COBJS) $(LDFLAGS) 46 34 47 35 cpp-bench: cpp-bench.cpp cpp-bench.d $(CPPOBJS) 48 $(COMPILE.cpp) -O0 -o $@ $< $(CPPOBJS) $(LDFLAGS) 36 $(COMPILE.cpp) -o $@ $< $(CPPOBJS) $(LDFLAGS) 37 38 cpp-vbench: cpp-vbench.cpp cpp-vbench.d $(CPPVOBJS) 39 $(COMPILE.cpp) -o $@ $< $(CPPVOBJS) $(LDFLAGS) 49 40 50 41 cfa-bench: cfa-bench.c cfa-bench.d $(CFAOBJS) 51 $(COMPILE.cfa) -O0 -o $@ $< $(CFAOBJS) $(LDFLAGS) 52 53 c2-bench: c-bench.c c-bench.d $(C2OBJS) 54 $(COMPILE.c) -O2 -o $@ $< $(C2OBJS) $(LDFLAGS) 55 56 cpp2-bench: cpp-bench.cpp cpp-bench.d $(CPP2OBJS) 57 $(COMPILE.cpp) -O2 -o $@ $< $(CPP2OBJS) $(LDFLAGS) 58 59 cfa2-bench: cfa-bench.c cfa-bench.d $(CFA2OBJS) 60 $(COMPILE.cfa) -O2 -o $@ $< $(CFA2OBJS) $(LDFLAGS) 42 $(COMPILE.cfa) -o $@ $< $(CFAOBJS) $(LDFLAGS) 61 43 62 44 clean: 63 45 -rm $(COBJS) c-bench 64 46 -rm $(CPPOBJS) cpp-bench 47 -rm $(CPPVOBJS) cpp-vbench 65 48 -rm $(CFAOBJS) cfa-bench 66 -rm $(C2OBJS) c2-bench67 -rm $(CPP2OBJS) cpp2-bench68 -rm $(CFA2OBJS) cfa2-bench69 49 70 50 distclean: clean 71 51 -rm $(COBJS:.o=.d) c-bench.d 72 52 -rm $(CPPOBJS:.o=.d) cpp-bench.d 53 -rm $(CPPVOBJS:.o=.d) cpp-vbench.d 73 54 -rm $(CFAOBJS:.o=.d) cfa-bench.d 74 55 75 bench: c-bench cpp-bench cfa-bench c2-bench cpp2-bench cfa2-bench56 run-c: c-bench 76 57 @echo '## C ##' 77 58 @./c-bench 59 @printf 'source_size:\t%7d lines\n' `cat c-bench.c bench.h c-stack.h c-stack.c | wc -l` 60 @printf 'binary_size:\t%7d bytes\n' `wc -c < c-bench` 61 62 run-cfa: cfa-bench 63 @echo '## Cforall ##' 64 @./cfa-bench 65 @printf 'source_size:\t%7d lines\n' `cat cfa-bench.c bench.h cfa-stack.h cfa-stack.c | wc -l` 66 @printf 'binary_size:\t%7d bytes\n' `wc -c < cfa-bench` 67 68 run-cpp: cpp-bench 78 69 @echo '## C++ ##' 79 70 @./cpp-bench 80 @echo '## Cforall ##' 81 @./cfa-bench 82 @echo '## C -O2 ##' 83 @./c2-bench 84 @echo '## C++ -O2 ##' 85 @./cpp2-bench 86 @echo '## Cforall -O2 ##' 87 @./cfa2-bench 71 @printf 'source_size:\t%7d lines\n' `cat cpp-bench.cpp bench.hpp cpp-stack.hpp | wc -l` 72 @printf 'binary_size:\t%7d bytes\n' `wc -c < cpp-bench` 73 74 run-cppv: cpp-vbench 75 @echo '## C++ virtual ##' 76 @./cpp-vbench 77 @printf 'source_size:\t%7d lines\n' `cat cpp-vbench.cpp bench.hpp object.hpp cpp-vstack.hpp cpp-vstack.cpp | wc -l` 78 @printf 'binary_size:\t%7d bytes\n' `wc -c < cpp-vbench` 79 80 run: run-c run-cfa run-cpp run-cppv 88 81 89 82 # so make doesn't fail without dependency files
Note: See TracChangeset
for help on using the changeset viewer.