diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-12-15 15:01:58 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-12-15 15:01:58 +0100 |
commit | da99818b81117ea62fc25fbbdae1b1ae56eab8c5 (patch) | |
tree | f799448398f3431f30678f6d5b165e60709e679c /icepack/Makefile | |
parent | f7cb6e8e07c9b314e5052c4b0416db422dbdeb7b (diff) | |
download | icestorm-da99818b81117ea62fc25fbbdae1b1ae56eab8c5.tar.gz icestorm-da99818b81117ea62fc25fbbdae1b1ae56eab8c5.tar.bz2 icestorm-da99818b81117ea62fc25fbbdae1b1ae56eab8c5.zip |
Added mxe-based win32 build
Diffstat (limited to 'icepack/Makefile')
-rw-r--r-- | icepack/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/icepack/Makefile b/icepack/Makefile index 559a66d..a89aa1f 100644 --- a/icepack/Makefile +++ b/icepack/Makefile @@ -2,6 +2,7 @@ CXX ?= clang LDLIBS = -lm -lstdc++ CXXFLAGS = -MD -O0 -ggdb -Wall -std=c++11 -I/usr/local/include +MXEGCC = /usr/local/src/mxe/usr/bin/i686-pc-mingw32-gcc CC = $(CXX) DESTDIR = /usr/local @@ -9,6 +10,9 @@ all: icepack iceunpack icepack: icepack.o +icepack.exe: icepack.cc + $(MXEGCC) -std=c++11 -o icepack.exe -Os icepack.cc -lm -lstdc++ + iceunpack: icepack ln -sf icepack iceunpack @@ -23,6 +27,7 @@ uninstall: clean: rm -f icepack rm -f iceunpack + rm -f icepack.exe rm -f *.o *.d -include *.d |