Skip to content

Commit

Permalink
[Update] Improve the make file
Browse files Browse the repository at this point in the history
  • Loading branch information
choishingwan committed Oct 8, 2019
1 parent 3617933 commit 550d8cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile.win
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ 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/ -isystem lib/eigen-git-mirror/
INCLUDES := -I inc/ -isystem lib/ -isystem window/zlib-1.2.11_${build}/ -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 ${dir}/${build}-w64-mingw32/lib/libpsapi.a
ZLIB := window/zlib-1.2.11_${build}/libz.a ${dir}/${build}-w64-mingw32/lib/libpsapi.a
%.o: src/%.cpp
$(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@

PRSice_win64.exe: $(OBJ)
PRSice_win${build}.exe: $(OBJ)
$(CXX) $(CXXFLAGS) $(INCLUDES) $^ $(ZLIB) -o $@

0 comments on commit 550d8cc

Please sign in to comment.