source: trunk/libtest/Makefile @ 3584

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

Migrated test files to libtest.

File size: 1023 bytes
Line 
1CC= g++ $(CFLAGS)
2CFLAGS= $(SSE) #-O3
3SSE=-msse2 #-msse4.1 -DUSE_PTEST #-mssse3 -msse4.1 -msse4.2
4PAPI_DIR=/usr/local
5
6ARCH=$(shell getconf LONG_BIT)
7ifeq ($(ARCH),32)
8    AFLAGS=-march=pentium4
9    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
10else
11    AFLAGS=-march=nocona -m64
12    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
13endif
14
15# quick and dirty test gen - refactor as template metaprogramming
16byte_compare_gen: byte_compare_generator.cpp ../lib/byte_compare.hpp   
17        $(CC) -o byte_compare_generator byte_compare_generator.cpp $(AFLAGS)
18
19# quick and dirty tests - refactor as BOOST regression tests
20byte_compare_test:      byte_compare_test.cpp ../lib/byte_compare.hpp
21        $(CC) -o byte_compare_test byte_compare_test.cpp $(AFLAGS)
22
23# quick and dirty tests - refactor as BOOST regression tests
24hash_test:      hash_test.cpp ../lib/hash.hpp
25        $(CC) -o hash_test hash_test.cpp $(AFLAGS)
26
27clean:
28        rm -f byte_compare_generator byte_compare_test byte_compare_test.cpp hash_test
Note: See TracBrowser for help on using the repository browser.