From fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 10 Apr 2020 10:05:17 +0200 Subject: Support custom PROGRAM_PREFIX --- icepll/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'icepll/Makefile') 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 -- cgit v1.2.3