1
0
mirror of https://github.com/bmartini/zynq-axis.git synced 2024-09-05 19:19:27 +08:00
zynq-axis/app/Makefile
Berin Martini c31b303289 Add app to read raw /dev/mem for debugging
This allows for direct access by the host to the same memory region as the AXIS
ports are accessing. Should be useful for debugging.
2015-01-05 18:05:31 -05:00

30 lines
356 B
Makefile

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