source: proto/SymbolTable/src/Makefile @ 1721

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

SymbolTable?: completed dictionary implementation and refactored templates

File size: 2.0 KB
Line 
1WCD_SRCFILE=wcd.cpp $(SYMTAB_LIB)/bitstream_hash_table.cpp $(SYMTAB_LIB)/hash_symbol_table.cpp $(SYMTAB_LIB)/ls_symbol_table.cxx $(SYMTAB_LIB)/symtab.cxx
2WCD_OUTFILE=wcd
3
4SRCFILE=xmlwf.cpp $(SYMTAB_LIB)/bitstream_hash_table.cpp $(SYMTAB_LIB)/hash_symbol_table.cpp $(SYMTAB_LIB)/ls_symbol_table.cxx $(SYMTAB_LIB)/symtab.cxx
5OUTFILE=xmlwf
6TEST= run_all.py
7
8CC= g++ $(CFLAGS)
9CFLAGS= $(SSE) -O3 -g
10SSE=-msse2 #-msse4.1 -DUSE_PTEST #-mssse3 -msse4.1 -msse4.2
11SYMTAB_LIB=../symtab
12INCLUDES = -I$(SYMTAB_LIB) -I../lib/ -I../../parabix2/src
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
30wcd:    $(WCD_SRCFILE)
31        $(CC) $(INCLUDES) -o $(WCD_OUTFILE) $(WCD_SRCFILE) $(AFLAGS)
32
33buffer_profiling_perf_wcd: $(WCD_SRCFILE)
34        $(CC) $(INCLUDES) -o $(WCD_OUTFILE) $(WCD_SRCFILE) $(AFLAGS) -DBUFFER_PROFILING  -DPERF_SCRIPT
35
36all:
37        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DUSE_XMLWF
38
39avx:    $(SRCFILE)
40        $(CC) -o $(OUTFILE) $(SRCFILE) -march=nocona -m64 -mavx
41
42threads:        $(SRCFILE)
43        g++ -O3 -msse2 -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -lpthread -DBUFFER_PROFILING
44
45code_clocker:   $(SRCFILE)
46        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) $(CODE_CLOCKER)
47
48buffer_profiling: $(SRCFILE)
49        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DBUFFER_PROFILING
50
51buffer_profiling_perf: $(SRCFILE)
52        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DBUFFER_PROFILING  -DPERF_SCRIPT -DUSE_XMLWF
53
54asm:  $(SRCFILE)
55        $(CC) -o $(OUTFILE).s $(SRCFILE) $(AFLAGS) -S -fverbose-asm
56
57as: $(OUTFILE).s
58        as $(OUTFILE).s -o $(OUTFILE).o
59
60as.o: $(OUTFILE).o
61        $(CC) $(OUTFILE).o -o $(OUTFILE)
62
63test: $(SRCFILE)
64        python $(TEST)
65
66clean:
67        rm -f $(OUTFILE) $(OUTFILE).s $(OUTFILE).o
68
Note: See TracBrowser for help on using the repository browser.