aboutsummaryrefslogtreecommitdiffstats
path: root/icepack/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'icepack/Makefile')
-rw-r--r--icepack/Makefile5
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