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 /icebram/Makefile | |
parent | d1cee1d4ae545fdca995cd656ef52d8923aa77e9 (diff) | |
download | icestorm-fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e.tar.gz icestorm-fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e.tar.bz2 icestorm-fe3086a7339f0c2731fb1a14f6ef0e4d93a0377e.zip |
Support custom PROGRAM_PREFIX
Diffstat (limited to 'icebram/Makefile')
-rw-r--r-- | icebram/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/icebram/Makefile b/icebram/Makefile index 34801da..219be59 100644 --- a/icebram/Makefile +++ b/icebram/Makefile @@ -4,24 +4,24 @@ ifeq ($(STATIC),1) LDFLAGS += -static endif -all: icebram$(EXE) +all: $(PROGRAM_PREFIX)icebram$(EXE) -icebram$(EXE): icebram.o +$(PROGRAM_PREFIX)icebram$(EXE): icebram.o $(CXX) -o $@ $(LDFLAGS) $^ $(LDLIBS) -test: icebram +test: $(PROGRAM_PREFIX)icebram bash rundemo.sh install: all mkdir -p $(DESTDIR)$(PREFIX)/bin - cp icebram$(EXE) $(DESTDIR)$(PREFIX)/bin/icebram$(EXE) + cp $(PROGRAM_PREFIX)icebram$(EXE) $(DESTDIR)$(PREFIX)/bin/$(PROGRAM_PREFIX)icebram$(EXE) uninstall: - rm -f $(DESTDIR)$(PREFIX)/bin/icebram$(EXE) + rm -f $(DESTDIR)$(PREFIX)/bin/$(PROGRAM_PREFIX)icebram$(EXE) clean: - rm -f icebram$(EXE) - rm -f icebram.exe + rm -f $(PROGRAM_PREFIX)icebram$(EXE) + rm -f $(PROGRAM_PREFIX)icebram.exe rm -f demo.* demo_*.* rm -f *.o *.d |