icestorm/icepll/Makefile

28 lines
537 B
Makefile
Raw Normal View History

include ../config.mk
ifeq ($(STATIC),1)
LDFLAGS += -static
endif
2020-04-10 10:05:17 +02:00
all: $(PROGRAM_PREFIX)icepll$(EXE)
2020-04-10 10:05:17 +02:00
$(PROGRAM_PREFIX)icepll$(EXE): icepll.o
2017-02-12 00:50:15 +01:00
$(CXX) -o $@ $(LDFLAGS) $^ $(LDLIBS)
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
2020-04-10 10:05:17 +02:00
cp $(PROGRAM_PREFIX)icepll$(EXE) $(DESTDIR)$(PREFIX)/bin/$(PROGRAM_PREFIX)icepll$(EXE)
uninstall:
2020-04-10 10:05:17 +02:00
rm -f $(DESTDIR)$(PREFIX)/bin/$(PROGRAM_PREFIX)icepll$(EXE)
clean:
2020-04-10 10:05:17 +02:00
rm -f $(PROGRAM_PREFIX)icepll$(EXE)
rm -f $(PROGRAM_PREFIX)icepll.exe
rm -f *.o *.d
-include *.d
.PHONY: all install uninstall clean