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