Ignore:
Timestamp:
May 10, 2012, 11:53:07 AM (7 years ago)
Author:
ksherdy
Message:

Added perf support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/symbol_table/src/Makefile

    r2092 r2095  
    1 CC= g++ $(CFLAGS) # -g # -O3
     1CC= g++ $(CFLAGS) -O3 # -g
    22SSE=-msse2 #-mssse3 #-msse4.2
    33CFLAGS= $(SSE)
     
    1414
    1515TEST_SCRIPT = ../test/run_tests.py
    16 TEST_PRGM = main
    1716TEST_SRC_DIR = ../test/in
    1817TEST_DST_DIR = ../test/out
    1918
    2019id: 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 -DGID_TEST #-DIDENTITY_TEST  #-DID_SYMBOL_TABLE_TEMPLATE_HPP_DEBUG -DHASH_TABLE_HPP_DEBUG # -DBUFFER_PROFILING
     20        $(CC) -o id main.cpp $(AFLAGS) -DID_STRATEGY -DBUFFER_PROFILING #-DID_SYMBOL_TABLE_TEMPLATE_HPP_DEBUG #-DHASH_TABLE_HPP_DEBUG
    2221
    2322div2: 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 -DGID_TEST #-DIDENTITY_TEST #-DHASH_TABLE_HPP_DEBUG #-DID_SYMBOL_TABLE_TEMPLATE_HPP_DEBUG -DBUFFER_PROFILING
     23        $(CC) -o div2 main.cpp $(AFLAGS) -DDIV2_STRATEGY -DBUFFER_PROFILING #-DHASH_TABLE_HPP_DEBUG #-DID_SYMBOL_TABLE_TEMPLATE_HPP_DEBUG
    2524
    2625logbase2: 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  -DIDENTITY_TEST #-DGID_TEST  #-DID_SYMBOL_TABLE_TEMPLATE_HPP_DEBUG  #-DHASH_TABLE_HPP_DEBUG # -DBUFFER_PROFILING
     26        $(CC) -o logbase2 main.cpp $(AFLAGS) -DLOG2_STRATEGY -DBUFFER_PROFILING #-DID_SYMBOL_TABLE_TEMPLATE_HPP_DEBUG  #-DHASH_TABLE_HPP_DEBUG
    2827
    29 diff_test: main
    30         python $(TEST_SCRIPT) $(TEST_PRGM) -d
     28id_diff_test: id
     29        $(CC) -o id main.cpp $(AFLAGS) -DID_STRATEGY -DIDENTITY_TEST
     30        python $(TEST_SCRIPT) id -d
    3131        diff -rq --exclude=".svn" $(TEST_SRC_DIR) $(TEST_DST_DIR) || exit 0
    3232
    33 gid_test:
    34         python $(TEST_SCRIPT) $(TEST_PRGM) -g
     33div2_diff_test: div2
     34        $(CC) -o div2 main.cpp $(AFLAGS) -DDIV2_STRATEGY -DIDENTITY_TEST
     35        python $(TEST_SCRIPT) div2 -d
     36        diff -rq --exclude=".svn" $(TEST_SRC_DIR) $(TEST_DST_DIR) || exit 0
     37
     38logbase2_diff_test: logbase2
     39        $(CC) -o logbase2 main.cpp $(AFLAGS) -DLOG2_STRATEGY -DIDENTITY_TEST
     40        python $(TEST_SCRIPT) logbase2 -d
     41        diff -rq --exclude=".svn" $(TEST_SRC_DIR) $(TEST_DST_DIR) || exit 0
     42
     43id_gid_test:
     44        $(CC) -o id main.cpp $(AFLAGS) -DID_STRATEGY -DGID_TEST
     45        python $(TEST_SCRIPT) id -g
     46
     47div2_gid_test:
     48        $(CC) -o div2 main.cpp $(AFLAGS) -DDIV2_STRATEGY -DGID_TEST
     49        python $(TEST_SCRIPT) div2 -g
     50
     51logbase2_gid_test:
     52        $(CC) -o logbase2 main.cpp $(AFLAGS) -DLOG2_STRATEGY -DGID_TEST
     53        python $(TEST_SCRIPT) logbase2 -g
    3554
    3655clean:
    37         rm -Rf main $(TEST_DST_DIR)
     56        rm -Rf id div2 logbase2 $(TEST_DST_DIR)
    3857
Note: See TracChangeset for help on using the changeset viewer.