From 6178dfbbd612d15a46c7d2a439b2252d6d0a87ba Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 2 Mar 2016 12:34:51 +0100 Subject: Added Makefile support for "make STATIC=1" --- icepack/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'icepack') 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 -- cgit v1.2.3