litex/tools/Makefile
Tim 'mithro' Ansell 12f5858850 Allow installing tools to a prefix.
(Defaults to /usr/local.)
2015-09-08 08:16:34 -07:00

18 lines
261 B
Makefile

TARGETS=flterm byteswap
CC=gcc
RM ?= rm -f
PREFIX ?= /usr/local
all: $(TARGETS)
%: %.c
$(CC) -O2 -Wall -I../common -s -o $@ $<
install: flterm
install -d $(PREFIX)/bin
install -m755 -t $(PREFIX)/bin $^
.PHONY: all clean install
clean:
$(RM) $(TARGETS)