forked from insilico/plink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
84 lines (71 loc) · 2.36 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = foreign
AM_CXXFLAGS = @OS_CXX@
lib_LTLIBRARIES=libplink.la
libplink_la_SOURCES=\
options.cpp input.cpp binput.cpp tinput.cpp genome.cpp \
helper.cpp stats.cpp filters.cpp locus.cpp multi.cpp crandom.cpp \
cluster.cpp mds.cpp output.cpp informative.cpp assoc.cpp epi.cpp \
prephap.cpp phase.cpp trio.cpp tdt.cpp sharing.cpp genepi.cpp sets.cpp \
perm.cpp mh.cpp genedrop.cpp gxe.cpp merge.cpp hotel.cpp multiple.cpp \
haploCC.cpp haploTDT.cpp poo.cpp webcheck.cpp qfam.cpp linear.cpp \
bmerge.cpp parse.cpp mishap.cpp legacy.cpp homozyg.cpp segment.cpp \
model.cpp logistic.cpp glm.cpp dcdflib.cpp elf.cpp dfam.cpp fisher.cpp \
linput.cpp sockets.cpp lookup.cpp proxy.cpp pdriver.cpp haploQTL.cpp \
haplohelper.cpp haplowindow.cpp genogroup.cpp nonfounderphasing.cpp \
clumpld.cpp genoerr.cpp em.cpp impute.cpp metaem.cpp profile.cpp \
nlist.cpp whap.cpp simul.cpp gvar.cpp cnv.cpp step.cpp greport.cpp \
flip.cpp qualscores.cpp cnvqt.cpp cfamily.cpp setscreen.cpp idhelp.cpp \
tag.cpp hapglm.cpp lookup2.cpp blox.cpp zed.cpp dosage.cpp annot.cpp \
metaanal.cpp zfstream.cpp plinklibhandler.cpp
libplink_la_HEADERS=\
plink.h options.h helper.h stats.h crandom.h sets.h phase.h \
perm.h model.h linear.h logistic.h dcdflib.h ipmpar.h cdflib.h \
fisher.h sockets.h haplowindow.h genogroup.h clumpld.h nlist.h whap.h \
gvar.h cnv.h cfamily.h idhelp.h zed.h zfstream.h plinklibhandler.h
libplink_la_LDFLAGS = -release 1.0.7
if WITH_R_PLUGINS
libplink_la_SOURCES += r.cpp Rconnection.cpp
libplink_la_HEADERS += sisocks.h Rsrv.h Rconnection.h config.h
AM_CXXFLAGS += -DWITH_R_PLUGINS
LIBS += -ldl
if SYS_UNIX
LIBS += -lcrypt
endif
endif
if WITH_WEBCHECK
if SYS_WIN
LIBS += -lwsock32
endif
else
AM_CXXFLAGS += -DSKIP
endif
if WITH_LAPACK
libplink_la_SOURCES += lapackf.cpp
libplink_la_HEADERS += lapackf.h
AM_CXXFLAGS += -DWITH_LAPACK
endif
if WITH_OPENMP
AM_CXXFLAGS += -fopenmp
endif
if FORCE_32BIT
AM_CXXFLAGS += -m32
endif
if FORCE_DYNAMIC
else
AM_CXXFLAGS += -static
endif
# always build statically on Windows
if SYS_WIN
AM_CXXFLAGS += -static -static-libgcc -static-libstdc++
endif
# OS X flags
if SYS_MAC
AM_CXXFLAGS += -D_FILE_OFFSET_BITS=64 -Dfopen64=fopen
endif
# dir to install headers for plink library
libplink_ladir=$(includedir)/plink
# build plink binary, linking to library built above
bin_PROGRAMS = plink
plink_SOURCES = plink.cpp
plink_LDADD= -lplink