-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.bam
53 lines (35 loc) · 1.2 KB
/
Makefile.bam
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
# makefile for gaffer developed on Richard's Mac
#CFLAGS= -O3
CFLAGS= -g -target arm64-apple-macos11 # for debugging
#CFLAGS= -03 -DOMP -fopenmp # for OMP parallelisation - doesn't compile on Mac
ALL=gaffer seqconvert composition ONEview ONEstat
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)
HTS_DIR = $(PWD)/../htslib
SEQIO_OPTS = -DONEIO -DBAMIO -I$(HTS_DIR)/htslib/
SEQIO_LIBS = -L$(HTS_DIR) -Wl,-rpath $(HTS_DIR) -lhts -lm -lbz2 -llzma -lcurl -lz
seqio.o: seqio.c seqio.h
$(CC) $(CFLAGS) $(SEQIO_OPTS) -c $^
ONElib.o: ONElib.c ONElib.h
$(CC) $(CFLAGS) -c $^
### programs
seqconvert: seqconvert.c seqio.o ONElib.o $(UTILS_OBJS)
$(CC) $(CFLAGS) $^ -o $@ $(SEQIO_LIBS)
composition: composition.c seqio.o ONElib.o $(UTILS_OBJS)
$(CC) $(CFLAGS) $^ -o $@ $(SEQIO_LIBS)
gaffer: gaffer.c seqio.o ONElib.o $(UTILS_OBJS)
$(CC) $(CFLAGS) $^ -o $@ $(SEQIO_LIBS)
ONEview: ONEview.c ONElib.o utils.o
$(CC) $(CFLAGS) $^ -o $@ -lz
ONEstat: ONEstat.c ONElib.o utils.o
$(CC) $(CFLAGS) $^ -o $@ -lz
### end of file