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
RevLine 
[1960]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
[1963]15PABLO_COMPILER=Compiler/pablomain.py
[1960]16PABLO_ADD_DEBUG = #-a -b
17
18MARKER_PREFIX=@marker_strms_
19MARKER_PABLO_SRC=marker_strms.py
20MARKER_TEMPLATE=marker_strms_template.hpp
[1965]21MARKER_OUTFILE=src/marker_strms.hpp
[1960]22
23HASH_PREFIX=@hash_strms_
24HASH_PABLO_SRC=hash_strms.py
25HASH_TEMPLATE=hash_strms_template.hpp
[1965]26HASH_OUTFILE=src/hash_strms.hpp
[1960]27
[2054]28ID_GROUP_STRMS = id_group_strms.py
29DIV2_GROUP_STRMS = div2_group_strms.py
[2067]30LOG2_GROUP_STRMS = log2_group_strms.py
[1960]31
[2054]32GROUP_PREFIX=@group_strms_
33#GROUP_PABLO_SRC= $(ID_GROUP_STRMS)
[2068]34GROUP_PABLO_SRC= $(DIV2_GROUP_STRMS)
35#GROUP_PABLO_SRC= $(LOG2_GROUP_STRMS)
[2054]36GROUP_TEMPLATE=group_strms_template.hpp
37GROUP_OUTFILE=src/group_strms.hpp
38
[1960]39MAIN_TEMPLATE=main_template.cpp
[1965]40MAIN_OUTFILE=src/main.cpp
[1960]41
[2054]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
[1960]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)
[2054]45        python $(PABLO_COMPILER) $(GROUP_PABLO_SRC) -t $(GROUP_TEMPLATE) -l$(GROUP_PREFIX) -o $(GROUP_OUTFILE) $(PABLO_ADD_DEBUG)
[1960]46        python $(PABLO_COMPILER) $(MARKER_PABLO_SRC) -t $(MAIN_TEMPLATE) -l$(MARKER_PREFIX) -o $(MAIN_OUTFILE) $(PABLO_ADD_DEBUG) # @marker_strms_any_carry
[2058]47        python $(PABLO_COMPILER) $(GROUP_PABLO_SRC) -t $(MAIN_OUTFILE) -l$(GROUP_PREFIX) -o $(MAIN_OUTFILE) $(PABLO_ADD_DEBUG) # @marker_strms_any_carry
[1960]48clean:
[2054]49        rm -f $(MARKER_OUTFILE) $(HASH_OUTFILE) $(GROUP_OUTFILE) $(MAIN_OUTFILE)
[1960]50
51       
Note: See TracBrowser for help on using the repository browser.