-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
63 lines (41 loc) · 1.32 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# makefile for gaffer developed on Richard's Mac
CFLAGS= -O3
#CFLAGS= -g # for debugging
ALL=gaffer seqconvert seqstat ONEview syng syngprune seqextract
DESTDIR=~/bin
all: $(ALL)
install:
cp $(ALL) $(DESTDIR)
clean:
$(RM) *.o *~ $(ALL)
\rm -r *.dSYM
### object files
UTILS_OBJS=hash.o dict.o array.o utils.o
UTILS_HEADERS=utils.h array.h dict.h hash.h
$(UTILS_OBJS): utils.h $(UTILS_HEADERS)
SEQIO_OPTS = -DONEIO
SEQIO_LIBS = -lm -lz
seqio.o: seqio.c seqio.h
$(CC) $(CFLAGS) $(SEQIO_OPTS) -c $^
seqhash.o: seqhash.c seqhash.h
$(CC) $(CFLAGS) -c $^
kmerhash.o: kmerhash.c kmerhash.h
$(CC) $(CFLAGS) -c $^
ONElib.o: ONElib.c ONElib.h
$(CC) $(CFLAGS) -c $^
### programs
seqconvert: seqconvert.c seqio.o ONElib.o utils.o
$(CC) $(CFLAGS) $^ -o $@ $(SEQIO_LIBS)
seqextract: seqextract.c seqio.o ONElib.o dict.o array.o utils.o
$(CC) $(CFLAGS) $^ -o $@ $(SEQIO_LIBS)
seqstat: seqstat.c seqio.o ONElib.o array.o utils.o
$(CC) $(CFLAGS) $^ -o $@ $(SEQIO_LIBS)
gaffer: gaffer.c seqio.o ONElib.o $(UTILS_OBJS)
$(CC) $(CFLAGS) $^ -o $@ $(SEQIO_LIBS)
syng: syng.c seqio.o seqhash.o kmerhash.o ONElib.o $(UTILS_OBJS)
$(CC) $(CFLAGS) $^ -o $@ $(SEQIO_LIBS)
syngprune: syngprune.c seqio.o ONElib.o $(UTILS_OBJS)
$(CC) $(CFLAGS) $^ -o $@ $(SEQIO_LIBS)
ONEview: ONEview.c ONElib.o
$(CC) $(CFLAGS) $^ -o $@ -lz
### end of file