-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (29 loc) · 1.06 KB
/
Copy pathMakefile
File metadata and controls
46 lines (29 loc) · 1.06 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
# makefile for hash10x, developed on Richard's Mac.
#CFLAGS= -O3
CFLAGS= -g # for debugging
#CFLAGS= -03 -DOMP -fopenmp # for OMP parallelisation - doesn't compile on Mac
all: fq2b hash10x moshmap moshasm moshutils composition
clean:
$(RM) *.o *~ fq2b hash10x moshmap moshasm moshutils composition
### 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)
readseq.o: readseq.h
seqhash.o: seqhash.h
moshset.c: moshset.h
seqio.o: seqio.h
### programs
fq2b: fq2b.c $(UTILS_OBJS)
$(CC) $(CFLAGS) $^ -o $@ -lz
hash10x: hash10x.c readseq.o seqhash.o $(UTILS_OBJS)
$(CC) $(CFLAGS) $^ -o $@ -lm
moshmap: moshmap.c readseq.o seqhash.o moshset.o $(UTILS_OBJS)
$(CC) $(CFLAGS) $^ -o $@ -lm -lz
moshasm: moshasm.c seqio.o seqhash.o moshset.o $(UTILS_OBJS)
$(CC) $(CFLAGS) $^ -o $@ -lm -lz
moshutils: moshutils.c seqio.o seqhash.o moshset.o $(UTILS_OBJS)
$(CC) $(CFLAGS) $^ -o $@ -lm -lz
composition: composition.c seqio.o $(UTILS_OBJS)
$(CC) $(CFLAGS) $^ -o $@ -lz
### end of file