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
RevLine 
[1920]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)
[3668]8    AFLAGS=-march=pentium4 -std=gnu++0x
[1920]9    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
10else
[3668]11    AFLAGS=-march=nocona -m64 -std=gnu++0x
[1920]12    CODE_CLOCKER=-DCODE_CLOCKER -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi
13endif
14
[3668]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
[1920]21byte_compare_gen: byte_compare_generator.cpp ../lib/byte_compare.hpp   
22        $(CC) -o byte_compare_generator byte_compare_generator.cpp $(AFLAGS)
23
[3668]24# quick and dirty tests - refactor test structure to bitblock_iterator_test style
[1920]25byte_compare_test:      byte_compare_test.cpp ../lib/byte_compare.hpp
26        $(CC) -o byte_compare_test byte_compare_test.cpp $(AFLAGS)
27
[3668]28# quick and dirty tests - refactor test structure to bitblock_iterator_test style
[1920]29hash_test:      hash_test.cpp ../lib/hash.hpp
30        $(CC) -o hash_test hash_test.cpp $(AFLAGS)
31
32clean:
[3668]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.