diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2020-04-10 10:05:17 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2020-04-10 10:05:17 +0200 |
commit | fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e (patch) | |
tree | 47dbe6b20205c9faecee0217a863486e68ef253e /icepll | |
parent | d1cee1d4ae545fdca995cd656ef52d8923aa77e9 (diff) | |
download | icestorm-fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e.tar.gz icestorm-fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e.tar.bz2 icestorm-fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e.zip |
Support custom PROGRAM_PREFIX
Diffstat (limited to 'icepll')
-rw-r--r-- | icepll/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/icepll/Makefile b/icepll/Makefile index 13a1d81..6e9467b 100644 --- a/icepll/Makefile +++ b/icepll/Makefile @@ -4,21 +4,21 @@ ifeq ($(STATIC),1) LDFLAGS += -static endif -all: icepll$(EXE) +all: $(PROGRAM_PREFIX)icepll$(EXE) -icepll$(EXE): icepll.o +$(PROGRAM_PREFIX)icepll$(EXE): icepll.o $(CXX) -o $@ $(LDFLAGS) $^ $(LDLIBS) install: all mkdir -p $(DESTDIR)$(PREFIX)/bin - cp icepll$(EXE) $(DESTDIR)$(PREFIX)/bin/icepll$(EXE) + cp $(PROGRAM_PREFIX)icepll$(EXE) $(DESTDIR)$(PREFIX)/bin/$(PROGRAM_PREFIX)icepll$(EXE) uninstall: - rm -f $(DESTDIR)$(PREFIX)/bin/icepll$(EXE) + rm -f $(DESTDIR)$(PREFIX)/bin/$(PROGRAM_PREFIX)icepll$(EXE) clean: - rm -f icepll$(EXE) - rm -f icepll.exe + rm -f $(PROGRAM_PREFIX)icepll$(EXE) + rm -f $(PROGRAM_PREFIX)icepll.exe rm -f *.o *.d -include *.d |