icestorm/icebram/Makefile

32 lines
480 B
Makefile
Raw Normal View History

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