source: proto/parabix2/src/Makefile @ 2186

Last change on this file since 2186 was 2186, checked in by ksherdy, 7 years ago

Added initial XMLWF symbol table port. Known bug wrt boundary/memory/buffer. Exact cause TBD.

File size: 2.0 KB
Line 
1OUTFILE=xmlwf
2SRCFILE=xmlwf.cpp
3TEST=run_all.py
4PERF=perf_script.py
5
6CC= g++ $(CFLAGS)
7CFLAGS= $(SSE) -O3
8SSE=-msse2 #-msse4.1 -DUSE_PTEST #-mssse3 -msse4.1 -msse4.2
9INCLUDES=../util
10
11PAPI_DIR=/usr/local/papi
12
13ARCH=$(shell getconf LONG_BIT)
14ifeq ($(ARCH),32)
15    AFLAGS=-march=pentium4
16    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
17else
18    AFLAGS=-march=nocona -m64
19    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
20endif
21
22all:    $(SRCFILE)
23        $(CC) -o $(OUTFILE) $(SRCFILE) -I$(INCLUDES) $(AFLAGS) 
24
25avx:    $(SRCFILE)
26        $(CC) -o $(OUTFILE) $(SRCFILE) -I$(INCLUDES) -march=nocona -m64 -mavx
27
28threads:        $(SRCFILE)
29        g++ -O3 -msse2 -o $(OUTFILE) $(SRCFILE) -I$(INCLUDES) $(AFLAGS) -lpthread -DBUFFER_PROFILING
30
31papi_profiling: $(SRCFILE)
32        $(CC) -o $(OUTFILE) $(SRCFILE) -I$(INCLUDES) $(AFLAGS) $(CODE_CLOCKER)
33
34buffer_profiling: $(SRCFILE)
35        $(CC) -o $(OUTFILE) $(SRCFILE) -I$(INCLUDES) $(AFLAGS) -DBUFFER_PROFILING
36
37buffer_profiling_perf: $(SRCFILE)
38        $(CC) -o $(OUTFILE) $(SRCFILE) -I$(INCLUDES) $(AFLAGS) -DBUFFER_PROFILING  -DPERF_SCRIPT
39       
40as: $(OUTFILE).s
41        as $(OUTFILE).s -o $(OUTFILE).o
42       
43as.o: $(OUTFILE).o
44        $(CC) $(OUTFILE).o -o $(OUTFILE)       
45
46test: 
47        python $(TEST)
48       
49perf:
50        python $(PERF) 
51
52clean: 
53        rm -f $(OUTFILE) $(OUTFILE).s $(OUTFILE).o
54
55id: $(SRCFILE)
56        $(CC) -o id $(SRCFILE) -I$(INCLUDES) $(AFLAGS) -DID_STRATEGY -DBUFFER_PROFILING -DPERF_SCRIPT
57
58div2: $(SRCFILE)
59        $(CC) -o div2 $(SRCFILE) -I$(INCLUDES) $(AFLAGS) -DDIV2_STRATEGY -DBUFFER_PROFILING -DPERF_SCRIPT
60
61logbase2: $(SRCFILE)
62        $(CC) -o logbase2 $(SRCFILE) -I$(INCLUDES) $(AFLAGS) -DLOGBASE2_STRATEGY -DBUFFER_PROFILING # -DPERF_SCRIPT
63
64div2_logbase2: $(SRCFILE)
65        $(CC) -o div2_logbase2 $(SRCFILE) -I$(INCLUDES) $(AFLAGS) -DDIV2_LOGBASE2_STRATEGY -DBUFFER_PROFILING -DPERF_SCRIPT
66
67bit_byte: $(SRCFILE)
68        $(CC) -o bit_byte $(SRCFILE) -I$(INCLUDES) $(AFLAGS) -DBIT_BYTE_STRATEGY -DBUFFER_PROFILING  -DPERF_SCRIPT
69
70asm:  $(SRCFILE)
71        $(CC) -o $(OUTFILE).s $(SRCFILE) -I$(INCLUDES) $(AFLAGS) -S -fverbose-asm
72
Note: See TracBrowser for help on using the repository browser.