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

Last change on this file since 3599 was 3599, checked in by cameron, 4 years ago

Haskell prototype interpreter and regular expression simulator

File size: 830 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        llc-3.4  -filetype=obj  llvm-$(OUTFILE).bc  -o  opt-$(OUTFILE).o
18        clang++ opt-$(OUTFILE).o -o opt-$(OUTFILE)
19
20gcc-re: $(SRCFILE)
21        $(CC) -o gcc-$(OUTFILE) $(SRCFILE) $(INCLUDES) 
22
23
24clean: 
25        rm -f gcc-$(OUTFILE) clang-$(OUTFILE) llvm-$(OUTFILE) llvm-$(OUTFILE).bc llvm-$(OUTFILE)-opt.bc llvm-$(OUTFILE).o
26
27buffer_profiling_perf: $(SRCFILE)
28        $(CC) -o $(OUTFILE) $(SRCFILE) $(INCLUDES) $(AFLAGS) -DBUFFER_PROFILING  -DPERF_SCRIPT
29
Note: See TracBrowser for help on using the repository browser.