forked from rahuldhodapkar/gtree
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (30 loc) · 759 Bytes
/
Copy pathMakefile
File metadata and controls
44 lines (30 loc) · 759 Bytes
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
33
34
35
36
37
38
39
40
41
42
43
CC=gcc
CFLAGS=-Wall -pedantic -std=c99 -DTRACE -D_BSD_SOURCE \
-fno-common
DEBUG=-ggdb
all: gtree
# Target-specific variable values for "debug"
debug: CFLAGS += -ggdb
debug: gtree
gtree: src/main_exec.c gtree.o build_gtree.o index.o \
ix_exec.o aln_exec.o
$(CC) $(CFLAGS) $^ -o $@
ix_exec.o: src/ix_exec.c
$(CC) $(CFLAGS) $^ -c -o $@
aln_exec.o: src/aln_exec.c
$(CC) $(CFLAGS) $^ -c -o $@
build_gtree.o: src/build_gtree.c
$(CC) $(CFLAGS) $^ -c -o $@
gtree.o: src/gtree.c
$(CC) $(CFLAGS) $^ -c -o $@
index.o: src/index.c
$(CC) $(CFLAGS) $^ -c -o $@
.PHONY: clean test test-all
CLEAN_TARGETS=gtree gtree-debug *.dSYM *.o
CLEAN_FLAGS=-rf
clean:
rm $(CLEAN_FLAGS) $(CLEAN_TARGETS)
test:
prove test
test-all:
prove test test/heavy