Lines 1-6
Link Here
|
1 |
--- Makefile.orig 2014-09-23 14:39:41 UTC |
1 |
--- Makefile.orig 2015-02-03 16:22:23 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -22,33 +22,27 @@ |
3 |
@@ -22,16 +22,9 @@ |
4 |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
4 |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
5 |
# DEALINGS IN THE SOFTWARE. |
5 |
# DEALINGS IN THE SOFTWARE. |
6 |
|
6 |
|
Lines 7-35
Link Here
|
7 |
-CC = gcc |
7 |
-CC = gcc |
8 |
-AR = ar |
8 |
-AR = ar |
9 |
-RANLIB = ranlib |
9 |
-RANLIB = ranlib |
10 |
+CC ?= cc |
10 |
- |
11 |
+AR = /usr/bin/ar |
11 |
-CPPFLAGS = -I. |
12 |
+RANLIB = /usr/bin/ranlib |
12 |
+CPPFLAGS += -I. |
13 |
|
|
|
14 |
# TODO: edit cram code to remove need for -DSAMTOOLS |
15 |
-CPPFLAGS = -I. -DSAMTOOLS=1 |
16 |
+CPPFLAGS += -I. -DSAMTOOLS=1 -Wno-unused-function -Wno-implicit-function-declaration |
17 |
# TODO: probably update cram code to make it compile cleanly with -Wc++-compat |
13 |
# TODO: probably update cram code to make it compile cleanly with -Wc++-compat |
18 |
-CFLAGS = -g -Wall -O2 |
14 |
-CFLAGS = -g -Wall -O2 |
19 |
+CFLAGS += -Wall |
|
|
20 |
EXTRA_CFLAGS_PIC = -fpic |
15 |
EXTRA_CFLAGS_PIC = -fpic |
21 |
-LDFLAGS = |
16 |
-LDFLAGS = |
22 |
-LDLIBS = |
17 |
-LDLIBS = |
23 |
+LDFLAGS += |
|
|
24 |
+LDLIBS += |
25 |
|
18 |
|
26 |
-prefix = /usr/local |
19 |
# For now these don't work too well as samtools also needs to know to |
27 |
+prefix = ${STAGEDIR}${PREFIX} |
20 |
# add -lbz2 and -llzma if linking against the static libhts.a library. |
28 |
exec_prefix = $(prefix) |
21 |
@@ -57,16 +50,10 @@ bindir = $(exec_prefix)/bin |
29 |
bindir = $(exec_prefix)/bin |
|
|
30 |
includedir = $(prefix)/include |
22 |
includedir = $(prefix)/include |
31 |
libdir = $(exec_prefix)/lib |
23 |
libdir = $(exec_prefix)/lib |
32 |
-mandir = $(prefix)/share/man |
24 |
datarootdir = $(prefix)/share |
|
|
25 |
-mandir = $(datarootdir)/man |
33 |
+mandir = $(prefix)/man |
26 |
+mandir = $(prefix)/man |
34 |
man1dir = $(mandir)/man1 |
27 |
man1dir = $(mandir)/man1 |
35 |
man5dir = $(mandir)/man5 |
28 |
man5dir = $(mandir)/man5 |
Lines 44-50
Link Here
|
44 |
|
37 |
|
45 |
BUILT_PROGRAMS = \ |
38 |
BUILT_PROGRAMS = \ |
46 |
bgzip \ |
39 |
bgzip \ |
47 |
@@ -62,7 +56,7 @@ BUILT_TEST_PROGRAMS = \ |
40 |
@@ -82,7 +69,7 @@ BUILT_TEST_PROGRAMS = \ |
48 |
test/test-vcf-api \ |
41 |
test/test-vcf-api \ |
49 |
test/test-vcf-sweep |
42 |
test/test-vcf-sweep |
50 |
|
43 |
|
Lines 53-59
Link Here
|
53 |
|
46 |
|
54 |
HTSPREFIX = |
47 |
HTSPREFIX = |
55 |
include htslib_vars.mk |
48 |
include htslib_vars.mk |
56 |
@@ -284,7 +278,7 @@ installdirs: |
49 |
@@ -332,7 +319,7 @@ installdirs: |
57 |
# and libhts.so.NN (used by client executables at runtime). |
50 |
# and libhts.so.NN (used by client executables at runtime). |
58 |
|
51 |
|
59 |
install-so: libhts.so installdirs |
52 |
install-so: libhts.so installdirs |