1 | CC= g++ $(CFLAGS) -g |
---|
2 | SSE=-msse2 #-mssse3 #-msse4.2 |
---|
3 | CFLAGS= $(SSE) |
---|
4 | SRCFILE=ls_symbol_table.cxx hash_symbol_table.cpp symtab.cxx bitstream_hash_table.cpp |
---|
5 | INCLUDES_IDISA = -I../lib/ |
---|
6 | |
---|
7 | PAPI_DIR=/usr/local/papi-4.0.0 |
---|
8 | ARCH=$(shell getconf LONG_BIT) |
---|
9 | ifeq ($(ARCH),32) |
---|
10 | AFLAGS=-march=pentium4 |
---|
11 | PAPI=-DPAPI -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi |
---|
12 | else |
---|
13 | AFLAGS=-march=nocona -m64 |
---|
14 | PAPI=-DPAPI -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi |
---|
15 | endif |
---|
16 | |
---|
17 | PABLO_COMPILER=../../Compiler/pablomain.py |
---|
18 | PABLO_ADD_DEBUG = #-a -b |
---|
19 | |
---|
20 | MARKER_PREFIX=@marker_strms_ |
---|
21 | MARKER_PABLO_SRC=marker_strms.py |
---|
22 | MARKER_TEMPLATE=marker_strms_template.hpp |
---|
23 | MARKER_OUTFILE=marker_strms.hpp |
---|
24 | |
---|
25 | HASH_PREFIX=@hash_strms_ |
---|
26 | HASH_PABLO_SRC=hash_strms.py |
---|
27 | HASH_TEMPLATE=hash_strms_template.hpp |
---|
28 | HASH_OUTFILE=hash_strms.hpp |
---|
29 | |
---|
30 | IDENTITY_PREFIX=@id_group_strms_ |
---|
31 | IDENTITY_PABLO_SRC=id_group_strms.py |
---|
32 | IDENTITY_TEMPLATE=id_group_strms_template.hpp |
---|
33 | IDENTITY_OUTFILE=id_group_strms.hpp |
---|
34 | |
---|
35 | MAIN_TEMPLATE=main_template.cpp |
---|
36 | MAIN_OUTFILE=main.cpp |
---|
37 | |
---|
38 | main: main.cpp main_template.cpp marker_strms_template.hpp hash_strms_template.hpp marker_strms.py hash_strms.py id_group_strms.py |
---|
39 | python $(PABLO_COMPILER) $(MARKER_PABLO_SRC) -t $(MARKER_TEMPLATE) -l$(MARKER_PREFIX) -o $(MARKER_OUTFILE) $(PABLO_ADD_DEBUG) |
---|
40 | python $(PABLO_COMPILER) $(HASH_PABLO_SRC) -t $(HASH_TEMPLATE) -l$(HASH_PREFIX) -o $(HASH_OUTFILE) $(PABLO_ADD_DEBUG) |
---|
41 | python $(PABLO_COMPILER) $(IDENTITY_PABLO_SRC) -t $(IDENTITY_TEMPLATE) -l$(IDENTITY_PREFIX) -o $(IDENTITY_OUTFILE) $(PABLO_ADD_DEBUG) |
---|
42 | python $(PABLO_COMPILER) $(MARKER_PABLO_SRC) -t $(MAIN_TEMPLATE) -l$(MARKER_PREFIX) -o $(MAIN_OUTFILE) $(PABLO_ADD_DEBUG) # @marker_strms_any_carry |
---|
43 | $(CC) -o main main.cpp $(AFLAGS) |
---|
44 | |
---|
45 | pool_test: pool_test.cpp |
---|
46 | $(CC) -o pool_test pool_test.cpp $(AFLAGS) |
---|
47 | |
---|
48 | hash_test: hash_test.cpp |
---|
49 | $(CC) -o hash_test hash_test.cpp $(AFLAGS) |
---|
50 | |
---|
51 | clean: |
---|
52 | rm -f main pool_test hash_test *.o *.a |
---|
53 | |
---|
54 | |
---|