icestorm/icebram/Makefile

32 lines
622 B
Makefile
Raw Permalink Normal View History

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