-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
32 lines (24 loc) · 969 Bytes
/
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
CC=g++
CPPFLAGS=-std=c++11 -O3 -w
CPPFLAGS2=-std=c++0x
BIN=bin
SRC=src/main.cpp
TESTSRC=tests/*.cpp
# include directories -- where to search for header files
# include for tclap, io-lib, etc...
INC=-I include/ -I /home/dannebar/software_downloads/io_lib-1.14.6/ -I ./external/io_lib_wrapper/ -I ./external/tclap-1.2.1/include/
# lib directories -- whereto search for compiled static/dynamic libraries
LIB=-L /home/dannebar/software_downloads/io_lib-1.14.6/lib
IOLIBSO=$(BIN)/
# io_tools for operating on the bams/sams
# LIBS=lstaden-read
EXE=swifr
all: $(EXE) test
$(EXE):
if [ ! -e $(BIN) ]; then mkdir $(BIN); fi
$(CC) $(CPPFLAGS) $(INC) $(LIB) -o $(BIN)/$@ $(SRC) -lstaden-read -lpthread -Wl,-rpath,"/home/dannebar/software_downloads/io_lib-1.14.6/lib/"
test:
$(CC) $(CPPFLAGS) $(INC) $(LIB) -o $(BIN)/$@ $(TESTSRC) -lstaden-read -Wl,-rpath,"/home/dannebar/software_downloads/io_lib-1.14.6/lib/"
clean:
rm $(BIN)/$(EXE)
# remove generated test files