2016-01-04 19:31:17 +01:00
|
|
|
include ../config.mk
|
|
|
|
|
|
2016-03-02 12:34:51 +01:00
|
|
|
ifeq ($(STATIC),1)
|
|
|
|
|
LDFLAGS += -static
|
|
|
|
|
endif
|
|
|
|
|
|
2016-02-14 13:47:27 +01:00
|
|
|
all: icepll$(EXE)
|
2016-01-04 19:31:17 +01:00
|
|
|
|
2016-02-14 13:47:27 +01:00
|
|
|
icepll$(EXE): icepll.o
|
2017-02-12 00:50:15 +01:00
|
|
|
$(CXX) -o $@ $(LDFLAGS) $^ $(LDLIBS)
|
2016-01-04 19:31:17 +01:00
|
|
|
|
|
|
|
|
install: all
|
|
|
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
|
|
|
cp icepll $(DESTDIR)$(PREFIX)/bin/icepll
|
|
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/icepll
|
|
|
|
|
|
|
|
|
|
clean:
|
2016-02-14 13:47:27 +01:00
|
|
|
rm -f icepll
|
|
|
|
|
rm -f icepll.exe
|
|
|
|
|
rm -f *.o *.d
|
2016-01-04 19:31:17 +01:00
|
|
|
|
|
|
|
|
-include *.d
|
|
|
|
|
|
|
|
|
|
.PHONY: all install uninstall clean
|
|
|
|
|
|