source: trunk/libtest/Makefile @ 4042

Last change on this file since 4042 was 3668, checked in by ksherdy, 5 years ago

Added tests for the BitStreamScanner?

File size: 1.3 KB
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 -std=gnu++0x
9    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
10else
11    AFLAGS=-march=nocona -m64 -std=gnu++0x
12    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
13endif
14
15# quick and dirty regression tests
16bitblock_iterator_test: bitblock_iterator_test.cpp
17        $(CC) -o bitblock_iterator_test bitblock_iterator_test.cpp $(AFLAGS)
18        ./bitblock_iterator_test
19
20# quick and dirty test gen - refactor test structure to bitblock_iterator_test style
21byte_compare_gen: byte_compare_generator.cpp ../lib/byte_compare.hpp   
22        $(CC) -o byte_compare_generator byte_compare_generator.cpp $(AFLAGS)
23
24# quick and dirty tests - refactor test structure to bitblock_iterator_test style
25byte_compare_test:      byte_compare_test.cpp ../lib/byte_compare.hpp
26        $(CC) -o byte_compare_test byte_compare_test.cpp $(AFLAGS)
27
28# quick and dirty tests - refactor test structure to bitblock_iterator_test style
29hash_test:      hash_test.cpp ../lib/hash.hpp
30        $(CC) -o hash_test hash_test.cpp $(AFLAGS)
31
32clean:
33        rm -f bitblock_iterator_test byte_compare_generator byte_compare_test byte_compare_test.cpp hash_test
Note: See TracBrowser for help on using the repository browser.