Debian Codegraph @

src/stator/gcContCvgBias/Makefile

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