source: proto/SymbolTable/src/Makefile @ 1228

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

Integrated symbol table with xmlwf. There are various implementations for the symbol table, please read /proto/SymbolTable/README_SymbolTable for more information.

File size: 1.9 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../../../trunk/lib/symtab/ -I../../parabix2/src
9LFLAGS=-L../../../trunk/lib/symtab/
10LIBS=-lsymtab
11
12PAPI_DIR=/usr/local/papi
13
14ARCH=$(shell getconf LONG_BIT)
15ifeq ($(ARCH),32)
16    AFLAGS=-march=pentium4
17    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
18else
19    AFLAGS=-march=nocona -m64
20    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
21endif
22
23sse2:   $(SRCFILE)
24        $(CC) -o $(OUTFILE) $(SRCFILE) -march=nocona -m64 -msse2
25
26O1:     $(SRCFILE)
27        g++ -O1 -o $(OUTFILE) $(SRCFILE) -march=nocona -m64 -msse2 -DBUFFER_PROFILING  -DPERF_SCRIPT
28
29all:    depend $(SRCFILE)
30        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -static $(LFLAGS) $(LIBS)
31
32avx:    $(SRCFILE)
33        $(CC) -o $(OUTFILE) $(SRCFILE) -march=nocona -m64 -mavx
34
35threads:        $(SRCFILE)
36        g++ -O3 -msse2 -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -lpthread -DBUFFER_PROFILING
37
38code_clocker:   $(SRCFILE)
39        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) $(CODE_CLOCKER) -static $(LFLAGS) $(LIBS)
40
41buffer_profiling: depend $(SRCFILE)
42        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DBUFFER_PROFILING -static $(LFLAGS) $(LIBS)
43
44buffer_profiling_perf: depend $(SRCFILE)
45        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DBUFFER_PROFILING  -DPERF_SCRIPT -static $(LFLAGS) $(LIBS)
46
47asm:  $(SRCFILE)
48        $(CC) -o $(OUTFILE).s $(SRCFILE) $(AFLAGS) -S -fverbose-asm
49
50as: $(OUTFILE).s
51        as $(OUTFILE).s -o $(OUTFILE).o
52
53as.o: $(OUTFILE).o
54        $(CC) $(OUTFILE).o -o $(OUTFILE)
55
56test: $(SRCFILE)
57        python $(TEST)
58
59clean:
60        rm -f $(OUTFILE) $(OUTFILE).s $(OUTFILE).o
61
62depend:
63# This is a hack. I wanted to use makedepend but makefile complains that it doesn't recognize makedepend
64        cd ../../../trunk/lib/symtab/ && make lib
65        #makedepend $(LIBDIR) $^
66
67# DO NOT DELETE THIS LINE -- make depend needs it
68
Note: See TracBrowser for help on using the repository browser.