source: proto/SymbolTable/src/Makefile @ 1666

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

SymbolTable?: Added natural language dictionary templates that uses symbol table

File size: 1.9 KB
Line 
1DICT_SRCFILE=dictionary.cpp $(SYMTAB_LIB)/bitstream_hash_table.cpp $(SYMTAB_LIB)/hash_symbol_table.cpp $(SYMTAB_LIB)/ls_symbol_table.cxx $(SYMTAB_LIB)/symtab.cxx
2DICT_OUTFILE=dictionary
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
30dict:   $(DICT_SRCFILE)
31        $(CC) $(INCLUDES) -o $(DICT_OUTFILE) $(DICT_SRCFILE) $(AFLAGS)
32
33all:
34        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS)
35
36avx:    $(SRCFILE)
37        $(CC) -o $(OUTFILE) $(SRCFILE) -march=nocona -m64 -mavx
38
39threads:        $(SRCFILE)
40        g++ -O3 -msse2 -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -lpthread -DBUFFER_PROFILING
41
42code_clocker:   $(SRCFILE)
43        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) $(CODE_CLOCKER)
44
45buffer_profiling: $(SRCFILE)
46        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DBUFFER_PROFILING
47
48buffer_profiling_perf: $(SRCFILE)
49        $(CC) $(INCLUDES) -o $(OUTFILE) $(SRCFILE) $(AFLAGS) -DBUFFER_PROFILING  -DPERF_SCRIPT
50
51asm:  $(SRCFILE)
52        $(CC) -o $(OUTFILE).s $(SRCFILE) $(AFLAGS) -S -fverbose-asm
53
54as: $(OUTFILE).s
55        as $(OUTFILE).s -o $(OUTFILE).o
56
57as.o: $(OUTFILE).o
58        $(CC) $(OUTFILE).o -o $(OUTFILE)
59
60test: $(SRCFILE)
61        python $(TEST)
62
63clean:
64        rm -f $(OUTFILE) $(OUTFILE).s $(OUTFILE).o
65
Note: See TracBrowser for help on using the repository browser.