icestorm/icepack/Makefile

38 lines
752 B
Makefile
Raw Normal View History

include ../config.mk
2015-12-15 15:01:58 +01:00
MXEGCC = /usr/local/src/mxe/usr/bin/i686-pc-mingw32-gcc
2015-07-18 13:05:02 +02:00
ifeq ($(STATIC),1)
LDFLAGS += -static
endif
all: icepack$(EXE) iceunpack$(EXE)
2015-07-18 13:05:02 +02:00
icepack$(EXE): icepack.o
2017-02-12 00:50:15 +01:00
$(CXX) -o $@ $(LDFLAGS) $^ $(LDLIBS)
2015-12-15 15:01:58 +01:00
iceunpack$(EXE): icepack$(EXE)
ln -sf icepack$(EXE) iceunpack$(EXE)
2015-07-18 13:05:02 +02:00
iceunpack.exe:
# no iceunpack.exe, use icepack -u
2015-07-18 13:05:02 +02:00
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp icepack$(EXE) $(DESTDIR)$(PREFIX)/bin/icepack$(EXE)
ln -sf icepack$(EXE) $(DESTDIR)$(PREFIX)/bin/iceunpack$(EXE)
2015-07-18 13:05:02 +02:00
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/icepack$(EXE)
rm -f $(DESTDIR)$(PREFIX)/bin/iceunpack$(EXE)
2015-07-18 13:05:02 +02:00
clean:
rm -f icepack$(EXE)
rm -f iceunpack$(EXE)
2015-12-15 15:01:58 +01:00
rm -f icepack.exe
2015-07-18 13:05:02 +02:00
rm -f *.o *.d
-include *.d
2015-07-18 13:05:51 +02:00
.PHONY: all install uninstall clean
2015-07-18 13:05:02 +02:00