source: trunk/symbol_table/src/Makefile @ 2090

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

Updated build and test script.

File size: 1.6 KB
Line 
1CC= g++ $(CFLAGS) # -g # -O3
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
15TEST_SCRIPT = ../test/run_tests.py
16TEST_PRGM = main
17TEST_SRC_DIR = ../test/in
18TEST_DST_DIR = ../test/out
19
20id: basis_bits.hpp buffer.hpp byte_pool.hpp hash_strms.hpp  hash_table.hpp ../lib/hash.hpp  group_strms.hpp  symbol_table.hpp  main.cpp  marker_strms.hpp symbol_table.hpp transpose.hpp
21        $(CC) -o main main.cpp $(AFLAGS) -DID_STRATEGY #-DID_SYMBOL_TABLE_TEMPLATE_HPP_DEBUG -DHASH_TABLE_HPP_DEBUG # -DBUFFER_PROFILING
22
23div2: basis_bits.hpp buffer.hpp byte_pool.hpp hash_strms.hpp  hash_table.hpp ../lib/hash.hpp  group_strms.hpp  symbol_table.hpp  main.cpp  marker_strms.hpp symbol_table.hpp transpose.hpp
24        $(CC) -o main main.cpp $(AFLAGS) -DDIV2_STRATEGY #-DID_SYMBOL_TABLE_TEMPLATE_HPP_DEBUG -DHASH_TABLE_HPP_DEBUG # -DBUFFER_PROFILING
25
26logbase2: basis_bits.hpp buffer.hpp byte_pool.hpp hash_strms.hpp  hash_table.hpp ../lib/hash.hpp  group_strms.hpp  symbol_table.hpp  main.cpp  marker_strms.hpp symbol_table.hpp transpose.hpp
27        $(CC) -o main main.cpp $(AFLAGS) -DLOG2_STRATEGY #-DID_SYMBOL_TABLE_TEMPLATE_HPP_DEBUG -DHASH_TABLE_HPP_DEBUG # -DBUFFER_PROFILING
28
29test: main
30        python $(TEST_SCRIPT) $(TEST_PRGM) $(TEST_SRC_DIR)
31
32diff:
33        diff -rq --exclude=".svn" $(TEST_SRC_DIR) $(TEST_DST_DIR)  || exit 0
34
35clean:
36        rm -Rf main $(TEST_DST_DIR)
37
Note: See TracBrowser for help on using the repository browser.