1- # ship these headers in the "make dist" target
2-
3- # This is how the header files were originaly being installed.
4- # dist_data_DATA = alignment-file.h vcf.h phylib-of-snp-sites.h snp-sites.h fasta-of-snp-sites.h parse-phylip.h string-cat.h kseq.h
5-
6- # The problem with the above is that the header files end up in /usr/share, which is far from ideal.
7- # They should all be installed to /usr/include/snp-sites/.
8- # Having spoken to John Marshall, this is how it should be done
91snpsitesincludedir =$(includedir ) /snp-sites
10- snpsitesinclude_HEADERS =alignment-file.h vcf.h phylib-of-snp-sites.h snp-sites.h fasta-of-snp-sites.h parse-phylip.h string-cat.h kseq.h
11-
2+ snpsitesinclude_HEADERS =alignment-file.h vcf.h phylib-of-snp-sites.h snp-sites.h fasta-of-snp-sites.h kseq.h
123
13- # snp_sites is our top level progra
144bin_PROGRAMS = snp-sites
155snp_sites_SOURCES = main.c
16- snp_sites_LDADD =-lm libsnp-sites.la -lz -lpthread -lrt
6+
7+
8+ snp_sites_LDADD =-lm libsnp-sites.la -lz -lpthread
9+ if HOST_LINUX
10+ snp_sites_LDADD += -lrt
11+ endif
1712
1813# libsnp_sites.so is our library
1914lib_LTLIBRARIES = libsnp-sites.la
20- libsnp_sites_la_SOURCES = alignment-file.c vcf.c phylib-of-snp-sites.c snp-sites.c fasta-of-snp-sites.c parse-phylip.c string-cat.c
15+ libsnp_sites_la_SOURCES = alignment-file.c vcf.c phylib-of-snp-sites.c snp-sites.c fasta-of-snp-sites.c
2116libsnp_sites_la_LDFLAGS = -version-info 1:0
2217
2318# "make check" target
@@ -29,4 +24,8 @@ run_all_tests_SOURCES = \
2924 ../tests/helper-methods.c \
3025 ../tests/run-all-tests.c
3126run_all_tests_CFLAGS = -I../tests
32- run_all_tests_LDADD = -lm -lcheck -lsubunit libsnp-sites.la -lz -lpthread -lrt
27+
28+ run_all_tests_LDADD = -lm -lcheck libsnp-sites.la -lz -lpthread
29+ if HOST_LINUX
30+ run_all_tests_LDADD += -lrt
31+ endif
0 commit comments