source: trunk/symtab/Makefile @ 2136

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

Update Makefile targets.

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