forked from c-zhou/yahs
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
45 lines (30 loc) · 1.07 KB
/
Makefile
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
CFLAGS= -O3 -Wall -fno-strict-aliasing
CPPFLAGS=
INCLUDES=
OBJS=
PROG= yahs juicer agp_to_fasta
PROG_EXTRA=
LIBS= -lm -lz
DESTDIR= ~/bin
.PHONY: all extra clean depend test
.SUFFIXES:.c .o
.c.o:
$(CC) -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) $< -o $@
all: $(PROG)
extra: all $(PROG_EXTRA)
debug: $(PROG)
debug: CFLAGS += -DDEBUG
yahs: asset.c bamlite.c break.c graph.c kalloc.c kopen.c link.c sdict.c cov.c binomlite.c enzyme.c telo.c yahs.c
$(CC) $(CFLAGS) asset.c bamlite.c break.c graph.c kalloc.c kopen.c link.c sdict.c cov.c binomlite.c enzyme.c telo.c yahs.c -o $@ -L. $(LIBS)
juicer: asset.c bamlite.c kalloc.c kopen.c sdict.c juicer.c
$(CC) $(CFLAGS) asset.c bamlite.c kalloc.c kopen.c sdict.c juicer.c -o $@ -L. $(LIBS)
agp_to_fasta: asset.c kalloc.c kopen.c sdict.c agp_to_fasta.c
$(CC) $(CFLAGS) asset.c kalloc.c kopen.c sdict.c agp_to_fasta.c -o $@ -L. $(LIBS)
clean:
rm -fr *.o a.out $(PROG) $(PROG_EXTRA)
install:
cp $(PROG) $(DESTDIR)
test:
@bash scripts/run_test.sh
depend:
(LC_ALL=C; export LC_ALL; makedepend -Y -- $(CFLAGS) $(CPPFLAGS) -- *.c)