File: Makefile

package info (click to toggle)
fpga-icestorm 0~20190913git0ec00d8-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 7,468 kB
  • sloc: python: 27,893; cpp: 4,598; sh: 2,590; ansic: 1,116; makefile: 643; xml: 16
file content (27 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
include ../config.mk

ifeq ($(STATIC),1)
LDFLAGS += -static
endif

all: icemulti$(EXE)

icemulti$(EXE): icemulti.o
	$(CXX) -o $@ $(LDFLAGS) $^ $(LDLIBS)

install: all
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	cp icemulti$(EXE) $(DESTDIR)$(PREFIX)/bin/icemulti$(EXE)

uninstall:
	rm -f $(DESTDIR)$(PREFIX)/bin/icemulti$(EXE)

clean:
	rm -f icemulti$(EXE)
	rm -f icemulti.exe
	rm -f *.o *.d

-include *.d

.PHONY: all install uninstall clean