source: proto/RE/output/demo1src/Makefile @ 3580

Last change on this file since 3580 was 3580, checked in by cameron, 6 years ago

gcc-re llvm-re opt-re targets

File size: 897 bytes
Line 
1OUTFILE=re
2SRCFILE=re.cpp
3
4CC= g++ $(CFLAGS)
5CFLAGS= $(SSE) -O3 -std=gnu++0x
6SSE=-msse2 #-msse4.1 -DUSE_PTEST #-mssse3 -msse4.1 -msse4.2
7INCLUDES=-I../util -I../lib/ -I../lib/cc-lib/
8
9ARCH=$(shell getconf LONG_BIT)
10
11
12clang-re:       $(SRCFILE)
13        clang++ $(CFLAGS) -o clang-$(OUTFILE) $(SRCFILE) $(INCLUDES) 
14
15opt-re: $(SRCFILE)
16        clang++ $(CFLAGS) -emit-llvm -c -o llvm-$(OUTFILE).bc $(SRCFILE) $(INCLUDES) 
17        opt-3.4 llvm-$(OUTFILE).bc -o opt-$(OUTFILE).bc  -std-compile-opts
18        llc-3.4  -filetype=obj  opt-$(OUTFILE).bc  -o  opt-$(OUTFILE).o
19        clang++ opt-$(OUTFILE).o -o opt-$(OUTFILE)
20
21gcc-re: $(SRCFILE)
22        $(CC) -o gcc-$(OUTFILE) $(SRCFILE) $(INCLUDES) 
23
24
25clean: 
26        rm -f gcc-$(OUTFILE) clang-$(OUTFILE) llvm-$(OUTFILE) llvm-$(OUTFILE).bc llvm-$(OUTFILE)-opt.bc llvm-$(OUTFILE).o
27
28buffer_profiling_perf: $(SRCFILE)
29        $(CC) -o $(OUTFILE) $(SRCFILE) $(INCLUDES) $(AFLAGS) -DBUFFER_PROFILING  -DPERF_SCRIPT
30
Note: See TracBrowser for help on using the repository browser.