Skip to content

Commit

Permalink
[Update] A more flexible make file
Browse files Browse the repository at this point in the history
  • Loading branch information
choishingwan committed Oct 8, 2019
1 parent bad279b commit 3617933
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile.win
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#CXX=x86_64-w64-mingw32-g++
CXX=/usr/local/Cellar/mingw-w64/6.0.0_1/toolchain-x86_64/bin/x86_64-w64-mingw32-g++
version=6.0.0_2
build?=x86_64
dir=/usr/local/Cellar/mingw-w64/${version}/toolchain-${build}/
CXX=${dir}/bin/${build}-w64-mingw32-g++
CXXFLAGS=-Wall -O3 -std=gnu++11 -DNDEBUG -static -lpthread -lpsapi
INCLUDES := -I inc/ -isystem lib/ -isystem window/zlib-1.2.11/
INCLUDES := -I inc/ -isystem lib/ -isystem window/zlib-1.2.11/ -isystem lib/eigen-git-mirror/
CPPSRC := src/*.cpp
OBJ := bgen_lib.o binaryplink.o genotype.o misc.o regression.o snp.o binarygen.o commander.o main.o plink_common.o prsice.o region.o reporter.o gzstream.o dcdflib.o fastlm.o
ZLIB := window/zlib-1.2.11/libz.a /usr/local/Cellar/mingw-w64/6.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/lib/libpsapi.a
ZLIB := window/zlib-1.2.11/libz.a ${dir}/${build}-w64-mingw32/lib/libpsapi.a
%.o: src/%.cpp
$(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@

Expand Down

0 comments on commit 3617933

Please sign in to comment.