From a519d2ab828517fda323f6421fd98cf73603fc0e Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 14 Feb 2016 13:47:27 +0100 Subject: Added/improved support for mxe-based win32 cross builds --- icepack/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'icepack/Makefile') diff --git a/icepack/Makefile b/icepack/Makefile index 256c339..78701db 100644 --- a/icepack/Makefile +++ b/icepack/Makefile @@ -3,16 +3,17 @@ 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 -all: icepack iceunpack +all: icepack$(EXE) iceunpack$(EXE) -icepack: icepack.o - -icepack.exe: icepack.cc - $(MXEGCC) -std=c++11 -o icepack.exe -Os icepack.cc -lm -lstdc++ +icepack$(EXE): icepack.o + $(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS) iceunpack: icepack ln -sf icepack iceunpack +iceunpack.exe: + # no iceunpack.exe, use icepack -u + install: all mkdir -p $(DESTDIR)$(PREFIX)/bin cp icepack $(DESTDIR)$(PREFIX)/bin/icepack -- cgit v1.2.3