Changeset 122aecd for doc/generic_types/evaluation/Makefile
- Timestamp:
- Apr 7, 2017, 2:32:03 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:
- 3a48e283
- Parents:
- 4cfcf41
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/generic_types/evaluation/Makefile
r4cfcf41 r122aecd 1 1 CFA = my-cfa 2 2 DEPFLAGS = -MMD -MP 3 OPT = -O2 4 CFLAGS = $(OPT) 5 CXXFLAGS = $(OPT) 3 6 4 7 .PHONY: all clean distclean bench 5 8 6 all: c-bench cpp-bench cfa-bench c2-bench cpp2-bench cfa2-bench9 all: c-bench cpp-bench cfa-bench 7 10 8 11 # rewrite object generation to auto-determine deps … … 13 16 c-%.o : c-%.c 14 17 c-%.o : c-%.c c-%.d 15 $(COMPILE.c) -O0$(OUTPUT_OPTION) -c $<18 $(COMPILE.c) $(OUTPUT_OPTION) -c $< 16 19 17 20 cpp-%.o : cpp-%.cpp 18 21 cpp-%.o : cpp-%.cpp cpp-%.d 19 $(COMPILE.cpp) -O0$(OUTPUT_OPTION) -c $<22 $(COMPILE.cpp) $(OUTPUT_OPTION) -c $< 20 23 21 24 cfa-%.o : cfa-%.c 22 25 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 $< 26 $(COMPILE.cfa) $(OUTPUT_OPTION) -c $< 36 27 37 28 COBJS = c-stack.o 38 29 CPPOBJS = 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) 49 37 50 38 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) 39 $(COMPILE.cfa) -o $@ $< $(CFAOBJS) $(LDFLAGS) 61 40 62 41 clean: … … 64 43 -rm $(CPPOBJS) cpp-bench 65 44 -rm $(CFAOBJS) cfa-bench 66 -rm $(C2OBJS) c2-bench67 -rm $(CPP2OBJS) cpp2-bench68 -rm $(CFA2OBJS) cfa2-bench69 45 70 46 distclean: clean … … 73 49 -rm $(CFAOBJS:.o=.d) cfa-bench.d 74 50 75 bench: c-bench cpp-bench cfa-bench c2-bench cpp2-bench cfa2-bench51 bench: c-bench cpp-bench cfa-bench 76 52 @echo '## C ##' 77 53 @./c-bench … … 80 56 @echo '## Cforall ##' 81 57 @./cfa-bench 82 @echo '## C -O2 ##'83 @./c2-bench84 @echo '## C++ -O2 ##'85 @./cpp2-bench86 @echo '## Cforall -O2 ##'87 @./cfa2-bench88 58 89 59 # so make doesn't fail without dependency files
Note: See TracChangeset
for help on using the changeset viewer.