Lines 1-6
Link Here
|
1 |
--- Makefile.orig 2016-04-22 08:45:12 UTC |
1 |
--- Makefile.orig 2017-10-18 08:03:33 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -22,16 +22,7 @@ |
3 |
@@ -22,41 +22,26 @@ |
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 8-23
Link Here
|
8 |
-AR = ar |
8 |
-AR = ar |
9 |
-RANLIB = ranlib |
9 |
-RANLIB = ranlib |
10 |
- |
10 |
- |
|
|
11 |
-# Default libraries to link if configure is not used |
12 |
-htslib_default_libs = -lz -lm -lbz2 -llzma |
13 |
- |
11 |
-CPPFLAGS = |
14 |
-CPPFLAGS = |
12 |
-# TODO: probably update cram code to make it compile cleanly with -Wc++-compat |
15 |
-# TODO: probably update cram code to make it compile cleanly with -Wc++-compat |
|
|
16 |
-# For testing strict C99 support add -std=c99 -D_XOPEN_SOURCE=600 |
17 |
-#CFLAGS = -g -Wall -O2 -pedantic -std=c99 -D_XOPEN_SOURCE=600 -D__FUNCTION__=__func__ |
13 |
-CFLAGS = -g -Wall -O2 |
18 |
-CFLAGS = -g -Wall -O2 |
14 |
EXTRA_CFLAGS_PIC = -fpic |
19 |
EXTRA_CFLAGS_PIC = -fpic |
15 |
-LDFLAGS = |
20 |
-LDFLAGS = |
16 |
-LIBS = |
21 |
-LIBS = $(htslib_default_libs) |
17 |
|
22 |
|
18 |
# For now these don't work too well as samtools also needs to know to |
23 |
-prefix = /usr/local |
19 |
# add -lbz2 and -llzma if linking against the static libhts.a library. |
24 |
+prefix = ${PREFIX} |
20 |
@@ -58,17 +49,11 @@ includedir = $(prefix)/include |
25 |
exec_prefix = $(prefix) |
|
|
26 |
bindir = $(exec_prefix)/bin |
27 |
includedir = $(prefix)/include |
21 |
libdir = $(exec_prefix)/lib |
28 |
libdir = $(exec_prefix)/lib |
22 |
libexecdir = $(exec_prefix)/libexec |
29 |
libexecdir = $(exec_prefix)/libexec |
23 |
datarootdir = $(prefix)/share |
30 |
datarootdir = $(prefix)/share |
Lines 27-56
Link Here
|
27 |
man5dir = $(mandir)/man5 |
34 |
man5dir = $(mandir)/man5 |
28 |
pkgconfigdir= $(prefix)/libdata/pkgconfig |
35 |
pkgconfigdir= $(prefix)/libdata/pkgconfig |
29 |
|
36 |
|
30 |
-MKDIR_P = mkdir -p |
37 |
MKDIR_P = mkdir -p |
31 |
-INSTALL = install -p |
38 |
-INSTALL = install -p |
32 |
-INSTALL_PROGRAM = $(INSTALL) |
|
|
33 |
-INSTALL_DATA = $(INSTALL) -m 644 |
39 |
-INSTALL_DATA = $(INSTALL) -m 644 |
34 |
-INSTALL_DIR = $(MKDIR_P) -m 755 |
40 |
-INSTALL_DIR = $(MKDIR_P) -m 755 |
35 |
- |
41 |
-INSTALL_LIB = $(INSTALL_DATA) |
|
|
42 |
-INSTALL_MAN = $(INSTALL_DATA) |
43 |
-INSTALL_PROGRAM = $(INSTALL) |
44 |
+INSTALL_DATA = ${BSD_INSTALL_DATA} |
45 |
+INSTALL_DIR = $(MKDIR_P) |
46 |
+INSTALL_LIB = ${BSD_INSTALL_LIB} |
47 |
+INSTALL_MAN = ${BSD_INSTALL_MAN} |
48 |
+INSTALL_PROGRAM = ${BSD_INSTALL_PROGRAM} |
49 |
|
36 |
# Set by config.mk if plugins are enabled |
50 |
# Set by config.mk if plugins are enabled |
37 |
plugindir = |
51 |
plugindir = |
|
|
52 |
@@ -87,7 +72,7 @@ BUILT_THRASH_PROGRAMS = \ |
53 |
test/thrash_threads5 \ |
54 |
test/thrash_threads6 |
38 |
|
55 |
|
39 |
@@ -86,7 +71,7 @@ BUILT_TEST_PROGRAMS = \ |
|
|
40 |
test/test-vcf-api \ |
41 |
test/test-vcf-sweep |
42 |
|
43 |
-all: lib-static lib-shared $(BUILT_PROGRAMS) plugins $(BUILT_TEST_PROGRAMS) |
56 |
-all: lib-static lib-shared $(BUILT_PROGRAMS) plugins $(BUILT_TEST_PROGRAMS) |
44 |
+all: lib-static lib-shared $(BUILT_PROGRAMS) plugins |
57 |
+all: lib-static lib-shared $(BUILT_PROGRAMS) plugins |
45 |
|
58 |
|
46 |
HTSPREFIX = |
59 |
HTSPREFIX = |
47 |
include htslib_vars.mk |
60 |
include htslib_vars.mk |
48 |
@@ -360,7 +345,7 @@ installdirs: |
|
|
49 |
# and libhts.so.NN (used by client executables at runtime). |
50 |
|
51 |
install-so: libhts.so installdirs |
52 |
- $(INSTALL_DATA) libhts.so $(DESTDIR)$(libdir)/libhts.so.$(PACKAGE_VERSION) |
53 |
+ $(INSTALL_LIB) libhts.so $(DESTDIR)$(libdir)/libhts.so.$(PACKAGE_VERSION) |
54 |
ln -sf libhts.so.$(PACKAGE_VERSION) $(DESTDIR)$(libdir)/libhts.so |
55 |
ln -sf libhts.so.$(PACKAGE_VERSION) $(DESTDIR)$(libdir)/libhts.so.$(LIBHTS_SOVERSION) |
56 |
|