Changeset 154fdc8 for doc/generic_types/evaluation/Makefile
- Timestamp:
- Apr 19, 2017, 10:15:45 AM (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:
- cd348e7
- Parents:
- 221c2de7 (diff), de4ce0e (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
r221c2de7 r154fdc8 1 CFA = my-cfa1 CFA = cfa 2 2 DEPFLAGS = -MMD -MP 3 CFLAGS = -O2 4 ifdef N 5 CFLAGS += -DN=$(N) 6 endif 7 CXXFLAGS = $(CFLAGS) --std=c++14 3 8 4 .PHONY: all clean distclean bench9 .PHONY: all clean distclean run-c run-cpp run-cfa run 5 10 6 all: c-bench cpp-bench cfa-bench c 2-bench cpp2-bench cfa2-bench11 all: c-bench cpp-bench cfa-bench cpp-vbench 7 12 8 13 # rewrite object generation to auto-determine deps … … 13 18 c-%.o : c-%.c 14 19 c-%.o : c-%.c c-%.d 15 $(COMPILE.c) -O0$(OUTPUT_OPTION) -c $<20 $(COMPILE.c) $(OUTPUT_OPTION) -c $< 16 21 17 22 cpp-%.o : cpp-%.cpp 18 23 cpp-%.o : cpp-%.cpp cpp-%.d 19 $(COMPILE.cpp) -O0$(OUTPUT_OPTION) -c $<24 $(COMPILE.cpp) $(OUTPUT_OPTION) -c $< 20 25 21 26 cfa-%.o : cfa-%.c 22 27 cfa-%.o : cfa-%.c cfa-%.d 23 $(COMPILE.cfa) -O0$(OUTPUT_OPTION) -c $<28 $(COMPILE.cfa) $(OUTPUT_OPTION) -c $< 24 29 25 c2-%.o : c-%.c 26 c2-%.o : c-%.c c-%.d 27 $(COMPILE.c) -O2 $(OUTPUT_OPTION) -c $< 30 COBJS = c-stack.o c-pair.o c-print.o 31 CPPOBJS = 32 CPPVOBJS = cpp-vstack.o 33 CFAOBJS = cfa-stack.o cfa-pair.o cfa-print.o 28 34 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 $< 36 37 COBJS = c-stack.o 38 CPPOBJS = 39 CFAOBJS = cfa-stack.o 40 C2OBJS = $(patsubst c-%,c2-%, $(COBJS)) 41 CPP2OBJS = $(patsubst cpp-%,cpp2-%, $(CPPOBJS)) 42 CFA2OBJS = $(patsubst cfa-%,cfa2-%, $(CFAOBJS)) 35 CFILES = c-bench.c bench.h $(COBJS:.o=.h) $(COBJS:.o=.c) 36 CPPFILES = cpp-bench.cpp bench.hpp cpp-stack.hpp cpp-pair.hpp cpp-print.hpp 37 CPPVFILES = cpp-vbench.cpp bench.hpp object.hpp $(CPPVOBJS:.o=.hpp) $(CPPVOBJS:.o=.cpp) cpp-vprint.hpp 38 CFAFILES = cfa-bench.c bench.h $(CFAOBJS:.o=.h) $(CFAOBJS:.o=.c) 43 39 44 40 c-bench: c-bench.c c-bench.d $(COBJS) 45 $(COMPILE.c) - O0 -o $@ $< $(COBJS) $(LDFLAGS)41 $(COMPILE.c) -o $@ $< $(COBJS) $(LDFLAGS) 46 42 47 43 cpp-bench: cpp-bench.cpp cpp-bench.d $(CPPOBJS) 48 $(COMPILE.cpp) -O0 -o $@ $< $(CPPOBJS) $(LDFLAGS) 44 $(COMPILE.cpp) -o $@ $< $(CPPOBJS) $(LDFLAGS) 45 46 cpp-vbench: cpp-vbench.cpp cpp-vbench.d $(CPPVOBJS) 47 $(COMPILE.cpp) -o $@ $< $(CPPVOBJS) $(LDFLAGS) 49 48 50 49 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) 50 $(COMPILE.cfa) -o $@ $< $(CFAOBJS) $(LDFLAGS) 61 51 62 52 clean: 63 53 -rm $(COBJS) c-bench 64 54 -rm $(CPPOBJS) cpp-bench 55 -rm $(CPPVOBJS) cpp-vbench 65 56 -rm $(CFAOBJS) cfa-bench 66 -rm $(C2OBJS) c2-bench67 -rm $(CPP2OBJS) cpp2-bench68 -rm $(CFA2OBJS) cfa2-bench69 57 70 58 distclean: clean 71 59 -rm $(COBJS:.o=.d) c-bench.d 72 60 -rm $(CPPOBJS:.o=.d) cpp-bench.d 61 -rm $(CPPVOBJS:.o=.d) cpp-vbench.d 73 62 -rm $(CFAOBJS:.o=.d) cfa-bench.d 74 63 75 bench: c-bench cpp-bench cfa-bench c2-bench cpp2-bench cfa2-bench 64 run-c: c-bench 65 @echo 76 66 @echo '## C ##' 77 @./c-bench 67 @/usr/bin/time -f 'max_memory:\t%M kilobytes' ./c-bench 68 @printf 'source_size:\t%8d lines\n' `cat $(CFILES) | wc -l` 69 @printf 'redundant_type_annotations:%8d lines\n' `cat $(CFILES) | fgrep '/***/' -c` 70 @printf 'binary_size:\t%8d bytes\n' `stat -c %s c-bench` 71 72 run-cfa: cfa-bench 73 @echo 74 @echo '## Cforall ##' 75 @/usr/bin/time -f 'max_memory:\t %M kilobytes' ./cfa-bench 76 @printf 'source_size:\t%8d lines\n' `cat $(CFAFILES) | wc -l` 77 @printf 'redundant_type_annotations:%8d lines\n' `cat $(CFAFILES) | fgrep '/***/' -c` 78 @printf 'binary_size:\t%8d bytes\n' `stat -c %s cfa-bench` 79 80 run-cpp: cpp-bench 81 @echo 78 82 @echo '## C++ ##' 79 @./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 83 @/usr/bin/time -f 'max_memory:\t %M kilobytes' ./cpp-bench 84 @printf 'source_size:\t%8d lines\n' `cat $(CPPFILES) | wc -l` 85 @printf 'redundant_type_annotations:%8d lines\n' `cat $(CPPFILES) | fgrep '/***/' -c` 86 @printf 'binary_size:\t%8d bytes\n' `stat -c %s cpp-bench` 87 88 run-cppv: cpp-vbench 89 @echo 90 @echo '## C++obj ##' 91 @/usr/bin/time -f 'max_memory:\t%M kilobytes' ./cpp-vbench 92 @printf 'source_size:\t%8d lines\n' `cat $(CPPVFILES) | wc -l` 93 @printf 'redundant_type_annotations:%8d lines\n' `cat $(CPPVFILES) | fgrep '/***/' -c` 94 @printf 'binary_size:\t%8d bytes\n' `stat -c %s cpp-vbench` 95 96 run: run-c run-cfa run-cpp run-cppv 88 97 89 98 # so make doesn't fail without dependency files
Note:
See TracChangeset
for help on using the changeset viewer.