source: trunk/symbol_table/Makefile @ 2068

Last change on this file since 2068 was 2068, checked in by ksherdy, 7 years ago

Checked in working version for others to play with.

File size: 1.9 KB
Line 
1CC= g++ $(CFLAGS) -O3 #-g
2SSE=-msse2 #-mssse3 #-msse4.2
3CFLAGS= $(SSE) 
4
5PAPI_DIR=/usr/local/papi-4.0.0
6ARCH=$(shell getconf LONG_BIT)
7ifeq ($(ARCH),32)
8    AFLAGS=-march=pentium4
9    PAPI=-DPAPI -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
10else
11    AFLAGS=-march=nocona -m64
12    PAPI=-DPAPI -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
13endif
14
15PABLO_COMPILER=Compiler/pablomain.py
16PABLO_ADD_DEBUG = #-a -b
17
18MARKER_PREFIX=@marker_strms_
19MARKER_PABLO_SRC=marker_strms.py
20MARKER_TEMPLATE=marker_strms_template.hpp
21MARKER_OUTFILE=src/marker_strms.hpp
22
23HASH_PREFIX=@hash_strms_
24HASH_PABLO_SRC=hash_strms.py
25HASH_TEMPLATE=hash_strms_template.hpp
26HASH_OUTFILE=src/hash_strms.hpp
27
28ID_GROUP_STRMS = id_group_strms.py
29DIV2_GROUP_STRMS = div2_group_strms.py
30LOG2_GROUP_STRMS = log2_group_strms.py
31
32GROUP_PREFIX=@group_strms_
33#GROUP_PABLO_SRC= $(ID_GROUP_STRMS)
34GROUP_PABLO_SRC= $(DIV2_GROUP_STRMS)
35#GROUP_PABLO_SRC= $(LOG2_GROUP_STRMS)
36GROUP_TEMPLATE=group_strms_template.hpp
37GROUP_OUTFILE=src/group_strms.hpp
38
39MAIN_TEMPLATE=main_template.cpp
40MAIN_OUTFILE=src/main.cpp
41
42all: marker_strms.py marker_strms_template.hpp hash_strms.py hash_strms_template.hpp id_group_strms.py group_strms_template.hpp main_template.cpp
43        python $(PABLO_COMPILER) $(MARKER_PABLO_SRC) -t $(MARKER_TEMPLATE) -l$(MARKER_PREFIX) -o $(MARKER_OUTFILE) $(PABLO_ADD_DEBUG)
44        python $(PABLO_COMPILER) $(HASH_PABLO_SRC) -t $(HASH_TEMPLATE) -l$(HASH_PREFIX) -o $(HASH_OUTFILE) $(PABLO_ADD_DEBUG)
45        python $(PABLO_COMPILER) $(GROUP_PABLO_SRC) -t $(GROUP_TEMPLATE) -l$(GROUP_PREFIX) -o $(GROUP_OUTFILE) $(PABLO_ADD_DEBUG)
46        python $(PABLO_COMPILER) $(MARKER_PABLO_SRC) -t $(MAIN_TEMPLATE) -l$(MARKER_PREFIX) -o $(MAIN_OUTFILE) $(PABLO_ADD_DEBUG) # @marker_strms_any_carry
47        python $(PABLO_COMPILER) $(GROUP_PABLO_SRC) -t $(MAIN_OUTFILE) -l$(GROUP_PREFIX) -o $(MAIN_OUTFILE) $(PABLO_ADD_DEBUG) # @marker_strms_any_carry
48clean:
49        rm -f $(MARKER_OUTFILE) $(HASH_OUTFILE) $(GROUP_OUTFILE) $(MAIN_OUTFILE)
50
51       
Note: See TracBrowser for help on using the repository browser.