litex/tools/Makefile

14 lines
147 B
Makefile

TARGETS=byteswap
CC=gcc
RM ?= rm -f
all: $(TARGETS)
%: %.c
$(CC) -O2 -Wall -I../common -s -o $@ $<
.PHONY: all clean
clean:
$(RM) $(TARGETS)