-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (38 loc) · 2.18 KB
/
Copy pathMakefile
File metadata and controls
53 lines (38 loc) · 2.18 KB
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
44
45
46
47
48
49
50
51
52
CC= gcc
#CFLAGS= -Wall -O3 -Wextra -Wno-unused-result -Wunused-parameter -fno-strict-aliasing
CFLAGS= -Wall -O3 -Wno-unused-function
CPPFLAGS=
INCLUDES=
OBJS=
PROG= syncasm hmmannot pathfinder path_to_fasta rotate oatk
PROG_EXTRA=
LIBS= -lm -lz -lpthread
DESTDIR= ~/bin
.PHONY:all extra clean depend
.SUFFIXES:.c .o
ifneq ($(asan),)
CFLAGS+=-fsanitize=address
LIBS+=-fsanitize=address
endif
all: $(PROG)
extra: all $(PROG_EXTRA)
debug: $(PROG)
debug: CFLAGS += -DDEBUG
syncasm: run_syncasm.c syncasm.c syncmer.c syncerr.c levdist.c graph.c alignment.c sstream.c misc.c kthread.c kalloc.c kopen.c
$(CC) $(CFLAGS) -DSYNCASM_MAIN run_syncasm.c syncasm.c syncmer.c syncerr.c levdist.c graph.c alignment.c sstream.c misc.c kthread.c kalloc.c kopen.c -o $@ -L. $(LIBS) $(INCLUDES)
hmmannot: run_hmmannot.c hmmannot.c misc.c kalloc.c kthread.c
$(CC) $(CFLAGS) -DANNOTATION_MAIN run_hmmannot.c hmmannot.c misc.c kalloc.c kthread.c -o $@ -L. $(LIBS) $(INCLUDES)
pathfinder: path_finder.c syncasm.c syncmer.c syncerr.c levdist.c path.c graph.c hmmannot.c alignment.c sstream.c misc.c kalloc.c kopen.c kthread.c
$(CC) $(CFLAGS) -DPATHFINDER_MAIN path_finder.c syncasm.c syncmer.c syncerr.c levdist.c path.c graph.c hmmannot.c alignment.c sstream.c misc.c kalloc.c kopen.c kthread.c -o $@ -L. $(LIBS) $(INCLUDES)
path_to_fasta: path_to_fasta.c path.c graph.c hmmannot.c misc.c kalloc.c kopen.c
$(CC) $(CFLAGS) path_to_fasta.c path.c graph.c hmmannot.c misc.c kalloc.c kopen.c -o $@ -L. $(LIBS) $(INCLUDES)
rotate: rotate.c sstream.c misc.c kalloc.c kopen.c
$(CC) $(CFLAGS) rotate.c sstream.c misc.c kalloc.c kopen.c -o $@ -L. $(LIBS) $(INCLUDES)
oatk: oatk.c run_syncasm.c run_hmmannot.c path_finder.c hmmannot.c syncasm.c syncmer.c syncerr.c levdist.c path.c graph.c alignment.c sstream.c misc.c kalloc.c kopen.c kthread.c
$(CC) $(CFLAGS) oatk.c run_syncasm.c run_hmmannot.c path_finder.c hmmannot.c syncasm.c syncmer.c syncerr.c levdist.c path.c graph.c alignment.c sstream.c misc.c kalloc.c kopen.c kthread.c -o $@ -L. $(LIBS) $(INCLUDES)
clean:
rm -fr *.o a.out $(PROG) $(PROG_EXTRA)
install:
cp $(PROG) $(DESTDIR)
depend:
(LC_ALL=C; export LC_ALL; makedepend -Y -- $(CFLAGS) $(CPPFLAGS) -- *.c)