mirror of
https://github.com/bmartini/zynq-axis.git
synced 2024-09-05 19:19:27 +08:00
a2d60896a8
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.
35 lines
431 B
Makefile
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)
|