-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathMakefile
19 lines (16 loc) · 903 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CXXFLAGS=-Wall -O3 -std=c++11 -DNDEBUG #-march=native
ZLIB=/mnt/lustre/groups/ukbiobank/Edinburgh_Data/Software/PRSice-cpp_development/PRSice.code/lib/zlib-1.2.11/build/libz.a
CXX=/opt/apps/compilers/gcc/6.2.0/bin/g++
INCLUDES := -I inc/ -isystem lib/ -isystem lib/zlib-1.2.11/ -isystem lib/eigen-git-mirror
THREAD := -Wl,--whole-archive -lpthread
SERVER := -L /usr/lib/x86_64-redhat-linux5E/lib64
GCC := -Wl,--no-whole-archive -static-libstdc++ -static-libgcc -static
CSRC := src/*.c
CPPSRC := src/*.cpp
OBJ := gzstream.o bgen_lib.o binaryplink.o genotype.o misc.o dcdflib.o regression.o snp.o binarygen.o commander.o main.o plink_common.o prsice.o region.o reporter.o fastlm.o prset.o
%.o: src/%.c
$(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@
%.o: src/%.cpp
$(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@
PRSice: $(OBJ)
$(CXX) $(CXXFLAGS) $(INCLUDES) $(SERVER) $^ $(ZLIB) $(THREAD) $(GCC) -o $@