| 1 |
ifeq ($(shell uname -s),Darwin) |
| 2 |
CPPFLAGS += -march=core2 -Bstatic -L/opt/local/lib -I/opt/local/include |
| 3 |
endif |
| 4 |
|
| 5 |
GCC_VERSION := $(shell gcc -dumpversion) |
| 6 |
GCC_MAJOR := $(shell echo $(GCC_VERSION) | cut -d'.' -f1) |
| 7 |
GCC4_VER := $(shell echo $(GCC_VERSION) | cut -d'.' -f2,3) |
| 8 |
|
| 9 |
ifeq ($(GCC_MAJOR),4) |
| 10 |
ifeq ($(shell expr 2.4 \<= $(GCC4_VER)),1) |
| 11 |
CPPFLAGS += -march=native |
| 12 |
endif |
| 13 |
ifeq ($(shell expr 3.6 \<= $(GCC4_VER)),1) |
| 14 |
CPPFLAGS += -std=c++0x |
| 15 |
endif |
| 16 |
endif |
| 17 |
|
| 18 |
|
| 19 |
OBJ = self_util.o main.o stat_soap_coverage.o |
| 20 |
CC = g++ |
| 21 |
LIBRARY = -O3 -pipe $(CPPFLAGS) -mtune=generic -pedantic -Wfloat-equal \ |
| 22 |
#-Wall |
| 23 |
|
| 24 |
gc_coverage_bias:${OBJ} |
| 25 |
${CC} -o gc_coverage_bias ${LIBRARY} ${OBJ} $(LDFLAGS) -lgzstream -lz |
| 26 |
self_util.o:self_util.cpp self_util.h |
| 27 |
${CC} -c ${LIBRARY} self_util.cpp self_util.h |
| 28 |
main.o:main.cpp |
| 29 |
${CC} -c ${LIBRARY} main.cpp |
| 30 |
stat_soap_coverage.o:stat_soap_coverage.h stat_soap_coverage.cpp |
| 31 |
${CC} -c ${LIBRARY} stat_soap_coverage.h stat_soap_coverage.cpp |
| 32 |
|
| 33 |
test: gc_coverage_bias |
| 34 |
./gc_coverage_bias -r gcdeptestref.fa.gz -o test -w 100,200 --gcdump --depwindump gcdeptest.depth.gz |
| 35 |
-./gc_coverage_bias_plot.pl test_100.dat |
| 36 |
-./gc_coverage_bias_plot.pl test_200.dat |
| 37 |
ls -l test* |
| 38 |
|
| 39 |
distclean: compclean |
| 40 |
-rm -v test_* |
| 41 |
|
| 42 |
compclean: |
| 43 |
-rm -v ${OBJ} *.gch |
| 44 |
|
| 45 |
clean: distclean |
| 46 |
-rm gc_coverage_bias |