blob: 92b14728d593e4b9ddcc90690b726b797b67e2a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
CFLAGS = -g -Wall -I.. -DXD3_DEBUG=1 -DNDEBUG=0
#CFLAGS = -O3 -Wall -I.. -DXD3_DEBUG=0 -fno-builtin -DNDEBUG=1
# -pg
SOURCES = small_page_test.c encode_decode_test.c speed_test.c
DEPS = ../*.h ../*.c *.h
TARGETS = small_page_test encode_decode_test speed_test32 speed_test64 compare_test checksum_test
all: $(TARGETS)
small_page_test: small_page_test.c $(DEPS)
$(CC) $(CFLAGS) small_page_test.c -o small_page_test -DXD3_USE_LARGEFILE64=0 -DSECONDARY_DJW=1
encode_decode_test: encode_decode_test.c $(DEPS)
$(CC) $(CFLAGS) encode_decode_test.c -o encode_decode_test
speed_test32: speed_test.c $(DEPS)
$(CC) $(CFLAGS) -DXD3_USE_LARGEFILE64=0 speed_test.c -o speed_test32
speed_test64: speed_test.c $(DEPS)
$(CC) $(CFLAGS) -DXD3_USE_LARGEFILE64=1 speed_test.c -o speed_test64
compare_test: compare_test.c
$(CC) $(CFLAGS) compare_test.c -o compare_test
checksum_test: checksum_test.cc
$(CXX) $(CFLAGS) checksum_test.cc -o checksum_test
clean:
rm -r -f *.exe *.stackdump $(TARGETS) *.dSYM *~
|