summaryrefslogtreecommitdiff
path: root/xdelta3/examples/Makefile
blob: 0e1825d34f9ca57353ba4f3070327a6dd57805e2 (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
#CFLAGS = -g -Wall -I.. -DXD3_DEBUG=1
CFLAGS = -O3 -Wall -I.. -DXD3_DEBUG=0 -fno-builtin
# -pg

SOURCES = small_page_test.c encode_decode_test.c speed_test.c

DEPS = ../*.h ../*.c

TARGETS = small_page_test encode_decode_test speed_test32 speed_test64 compare_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

clean:
	rm -f *.exe *.stackdump $(TARGETS)