source: trunk/symbol_table/Makefile @ 2058

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

Fixed EOF carry bug in test driver.

File size: 1.8 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
30
31GROUP_PREFIX=@group_strms_
32#GROUP_PABLO_SRC= $(ID_GROUP_STRMS)
33GROUP_PABLO_SRC= $(DIV2_GROUP_STRMS)
34GROUP_TEMPLATE=group_strms_template.hpp
35GROUP_OUTFILE=src/group_strms.hpp
36
37MAIN_TEMPLATE=main_template.cpp
38MAIN_OUTFILE=src/main.cpp
39
40all: 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
41        python $(PABLO_COMPILER) $(MARKER_PABLO_SRC) -t $(MARKER_TEMPLATE) -l$(MARKER_PREFIX) -o $(MARKER_OUTFILE) $(PABLO_ADD_DEBUG)
42        python $(PABLO_COMPILER) $(HASH_PABLO_SRC) -t $(HASH_TEMPLATE) -l$(HASH_PREFIX) -o $(HASH_OUTFILE) $(PABLO_ADD_DEBUG)
43        python $(PABLO_COMPILER) $(GROUP_PABLO_SRC) -t $(GROUP_TEMPLATE) -l$(GROUP_PREFIX) -o $(GROUP_OUTFILE) $(PABLO_ADD_DEBUG)
44        python $(PABLO_COMPILER) $(MARKER_PABLO_SRC) -t $(MAIN_TEMPLATE) -l$(MARKER_PREFIX) -o $(MAIN_OUTFILE) $(PABLO_ADD_DEBUG) # @marker_strms_any_carry
45        python $(PABLO_COMPILER) $(GROUP_PABLO_SRC) -t $(MAIN_OUTFILE) -l$(GROUP_PREFIX) -o $(MAIN_OUTFILE) $(PABLO_ADD_DEBUG) # @marker_strms_any_carry
46clean:
47        rm -f $(MARKER_OUTFILE) $(HASH_OUTFILE) $(GROUP_OUTFILE) $(MAIN_OUTFILE)
48
49       
Note: See TracBrowser for help on using the repository browser.