litex/tools/Makefile

18 lines
258 B
Makefile

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