diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-02-14 13:47:27 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-02-14 13:47:27 +0100 |
commit | a519d2ab828517fda323f6421fd98cf73603fc0e (patch) | |
tree | 920be8624bf8a5602c2491cff2e1a637bc40f3d8 /icepack | |
parent | 04e61434577d2b167176832edd72121787f2a2db (diff) | |
download | icestorm-a519d2ab828517fda323f6421fd98cf73603fc0e.tar.gz icestorm-a519d2ab828517fda323f6421fd98cf73603fc0e.tar.bz2 icestorm-a519d2ab828517fda323f6421fd98cf73603fc0e.zip |
Added/improved support for mxe-based win32 cross builds
Diffstat (limited to 'icepack')
-rw-r--r-- | icepack/.gitignore | 1 | ||||
-rw-r--r-- | icepack/Makefile | 11 |
2 files changed, 7 insertions, 5 deletions
diff --git a/icepack/.gitignore b/icepack/.gitignore index c531272..ef4173d 100644 --- a/icepack/.gitignore +++ b/icepack/.gitignore @@ -1,4 +1,5 @@ icepack +icepack.exe iceunpack icepack.o icepack.d 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 |