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 a2d60896a8 Add program for writing to memory using axis port
The application takes one argument, the number (or length) of data to be
written to the memory.

The physical address in main memory that is going to be written to is the
address of the CMA memory region on my currently running system.
2015-01-08 14:46:19 -05:00

35 lines
431 B
Makefile

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)