source: trunk/symbol_table/Makefile @ 2031

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

Updated Makefile to generate symbol table.

File size: 1.6 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
28IDENTITY_PREFIX=@id_group_strms_
29IDENTITY_PABLO_SRC=id_group_strms.py
30IDENTITY_TEMPLATE=id_group_strms_template.hpp
[1965]31IDENTITY_OUTFILE=src/id_group_strms.hpp
[1960]32
33MAIN_TEMPLATE=main_template.cpp
[1965]34MAIN_OUTFILE=src/main.cpp
[1960]35
[1966]36all: marker_strms.py marker_strms_template.hpp hash_strms.py hash_strms_template.hpp id_group_strms.py id_group_strms_template.hpp main_template.cpp
[1960]37        python $(PABLO_COMPILER) $(MARKER_PABLO_SRC) -t $(MARKER_TEMPLATE) -l$(MARKER_PREFIX) -o $(MARKER_OUTFILE) $(PABLO_ADD_DEBUG)
38        python $(PABLO_COMPILER) $(HASH_PABLO_SRC) -t $(HASH_TEMPLATE) -l$(HASH_PREFIX) -o $(HASH_OUTFILE) $(PABLO_ADD_DEBUG)
39        python $(PABLO_COMPILER) $(IDENTITY_PABLO_SRC) -t $(IDENTITY_TEMPLATE) -l$(IDENTITY_PREFIX) -o $(IDENTITY_OUTFILE) $(PABLO_ADD_DEBUG)
40        python $(PABLO_COMPILER) $(MARKER_PABLO_SRC) -t $(MAIN_TEMPLATE) -l$(MARKER_PREFIX) -o $(MAIN_OUTFILE) $(PABLO_ADD_DEBUG) # @marker_strms_any_carry
41
42clean:
[1966]43        rm -f $(MARKER_OUTFILE) $(HASH_OUTFILE) $(IDENTITY_OUTFILE) $(MAIN_OUTFILE)
[1960]44
45       
Note: See TracBrowser for help on using the repository browser.