mirror of https://github.com/YosysHQ/icestorm.git
34 lines
546 B
Makefile
34 lines
546 B
Makefile
include ../config.mk
|
|
LDLIBS = -lm -lstdc++
|
|
CXXFLAGS = -MD -O0 -ggdb -Wall -std=c++11 -I/usr/local/include
|
|
|
|
ifeq ($(STATIC),1)
|
|
LDFLAGS += -static
|
|
endif
|
|
|
|
all: icebram$(EXE)
|
|
|
|
icebram$(EXE): icebram.o
|
|
$(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS)
|
|
|
|
test: icebram
|
|
bash rundemo.sh
|
|
|
|
install: all
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
cp icebram $(DESTDIR)$(PREFIX)/bin/icebram
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/icebram
|
|
|
|
clean:
|
|
rm -f icebram
|
|
rm -f icebram.exe
|
|
rm -f demo.* demo_*.*
|
|
rm -f *.o *.d
|
|
|
|
-include *.d
|
|
|
|
.PHONY: all test install uninstall clean
|
|
|