aboutsummaryrefslogtreecommitdiffstats
path: root/icepack
diff options
context:
space:
mode:
Diffstat (limited to 'icepack')
-rw-r--r--icepack/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/icepack/Makefile b/icepack/Makefile
index 78701db..cfe48be 100644
--- a/icepack/Makefile
+++ b/icepack/Makefile
@@ -3,6 +3,10 @@ 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
+ifeq ($(STATIC),1)
+LDFLAGS += -static
+endif
+
all: icepack$(EXE) iceunpack$(EXE)
icepack$(EXE): icepack.o