1
0
mirror of https://github.com/bmartini/zynq-axis.git synced 2024-09-05 19:19:27 +08:00
zynq-axis/app/Makefile

35 lines
431 B
Makefile
Raw Normal View History

CC = gcc
LDFLAGS := -linterface
CFLAGS := -c -Wall -Werror
INCLUDES := -I.
EXECUTABLE = \
write-memory \
read-memory \
test-cfg
.PHONY : all
all : $(EXECUTABLE)
.c.o :
$(CC) $(INCLUDES) $(CFLAGS) $< -o $@
write-memory : write-memory.o
$(CC) $< -o $@ $(LDFLAGS)
read-memory : read-memory.o
$(CC) $< -o $@ $(LDFLAGS)
test-cfg : test-cfg.o
$(CC) $< -o $@ $(LDFLAGS)
.PHONY : clean
clean :
rm -f *.o $(EXECUTABLE)