-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (30 loc) · 1.05 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
CONGA_VERSION := "1.0"
CONGA_UPDATE := "November 24, 2022"
BUILD_DATE := "$(shell date)"
CC=gcc
CFLAGS = -O3 -g -I htslib -I sonic -DCONGA_VERSION=\"$(CONGA_VERSION)\" -DBUILD_DATE=\"$(BUILD_DATE)\" -DCONGA_UPDATE=\"$(CONGA_UPDATE)\"
LDFLAGS = htslib/libhts.a sonic/libsonic.a -lz -lm -lpthread -llzma -lbz2 -lcurl -no-pie
NOCRAMFLAGS = htslib/libhts.a sonic/libsonic.a -lz -lm -lpthread
SOURCES = svdepth.c cmdline.c common.c bam_data.c read_distribution.c free.c likelihood.c svs.c split_read.c
OBJECTS = $(SOURCES:.c=.o)
EXECUTABLE = conga
INSTALLPATH = /usr/local/bin/
all: $(SOURCES) $(EXECUTABLE)
rm -rf *.o
$(EXECUTABLE): $(OBJECTS)
$(CC) $(OBJECTS) -o $@ $(LDFLAGS)
.c.o:
$(CC) -c $(CFLAGS) $< -o $@
clean:
make clean -C htslib
make clean -C sonic
rm -f $(EXECUTABLE) *.o *~
nocram: $(OBJECTS)
cd htslib && autoheader && autoconf && ./configure --disable-lzma --disable-bz2 --disable-libcurl && make && cd ..
make -C sonic
$(CC) $(OBJECTS) -o $(EXECUTABLE)-nocram $(NOCRAMFLAGS)
libs:
make -C htslib
make -C sonic
install:
cp Conga $(INSTALLPATH)