source: proto/SymbolTable/src/Makefile @ 1427

Last change on this file since 1427 was 1426, checked in by vla24, 8 years ago

SymbolTable?: Integrated SymbolTable?-LS (Ken's Implementation) with IDISA

File size: 2.4 KB
Line 
1SRCFILE=xmlwf.cpp
2OUTFILE=xmlwf
3TEST= run_all.py
4
5CC= g++ $(CFLAGS)
6CFLAGS= $(SSE) -O3 #-g
7SSE=-msse2 #-msse4.1 -DUSE_PTEST #-mssse3 -msse4.1 -msse4.2
8INCLUDES = -I../lib/symtab/ -I../../parabix2/src
9INCLUDES_IDISA = -I../lib/symtab/ -I../../../trunk/libgen/idisa_lib -I../../parabix2/src
10LFLAGS=-L../lib/symtab/
11LIBS=-lsymtab
12
13PAPI_DIR=/usr/local/papi
14
15ARCH=$(shell getconf LONG_BIT)
16ifeq ($(ARCH),32)
17    AFLAGS=-march=pentium4
18    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
19else
20    AFLAGS=-march=nocona -m64
21    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
22endif
23
24sse2:   $(SRCFILE)
25        $(CC) -o $(OUTFILE) $(SRCFILE) -march=nocona -m64 -msse2
26
27O1:     $(SRCFILE)
28        g++ -O1 -o $(OUTFILE) $(SRCFILE) -march=nocona -m64 -msse2 -DBUFFER_PROFILING  -DPERF_SCRIPT
29
30all:    depend $(SRCFILE)
31        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -static $(LFLAGS) $(LIBS)
32
33avx:    $(SRCFILE)
34        $(CC) -o $(OUTFILE) $(SRCFILE) -march=nocona -m64 -mavx
35
36threads:        $(SRCFILE)
37        g++ -O3 -msse2 -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -lpthread -DBUFFER_PROFILING
38
39code_clocker:   $(SRCFILE)
40        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) $(CODE_CLOCKER) -static $(LFLAGS) $(LIBS)
41
42buffer_profiling: depend $(SRCFILE)
43        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DBUFFER_PROFILING -static $(LFLAGS) $(LIBS)
44
45buffer_profiling_perf: depend $(SRCFILE)
46        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DBUFFER_PROFILING  -DPERF_SCRIPT -static $(LFLAGS) $(LIBS)
47
48buffer_profiling_perf_idisa: depend_idisa $(SRCFILE)
49        python make_idisa.py
50        $(CC) $(INCLUDES_IDISA) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DBUFFER_PROFILING  -DPERF_SCRIPT -static $(LFLAGS) $(LIBS) -DUSE_IDISA
51
52asm:  $(SRCFILE)
53        $(CC) -o $(OUTFILE).s $(SRCFILE) $(AFLAGS) -S -fverbose-asm
54
55as: $(OUTFILE).s
56        as $(OUTFILE).s -o $(OUTFILE).o
57
58as.o: $(OUTFILE).o
59        $(CC) $(OUTFILE).o -o $(OUTFILE)
60
61test: $(SRCFILE)
62        python $(TEST)
63
64idisa:  depend_idisa $(SRCFILE)
65        python make_idisa.py
66        $(CC) $(INCLUDES_IDISA) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -static $(LFLAGS) $(LIBS) -DUSE_IDISA
67
68clean:
69        rm -f $(OUTFILE) $(OUTFILE).s $(OUTFILE).o
70
71depend_idisa:
72        cd ../lib/symtab/ && make lib_idisa
73
74depend:
75# This is a hack. I wanted to use makedepend but makefile complains that it doesn't recognize makedepend
76        cd ../lib/symtab/ && make lib
77        #makedepend $(LIBDIR) $^
78
79# DO NOT DELETE THIS LINE -- make depend needs it
80
Note: See TracBrowser for help on using the repository browser.