mirror of
https://github.com/bmartini/zynq-axis.git
synced 2024-09-05 19:19:27 +08:00
11ec4ddca7
Attempts to mmap the axis AXI4Lite memory region.
35 lines
532 B
Makefile
35 lines
532 B
Makefile
CC = gcc
|
|
CFLAGS := -c -fpic -Wall -Werror
|
|
INCLUDES := -I.
|
|
LIBOPTS := -shared
|
|
|
|
|
|
.PHONY : all
|
|
all : interface
|
|
|
|
|
|
interface.o :
|
|
$(CC) $(CFLAGS) $(INCLUDES) interface.c
|
|
|
|
|
|
interface : interface.o
|
|
$(CC) *.o $(LIBOPTS) -o libinterface.so
|
|
|
|
|
|
install :
|
|
sudo cp ${PWD}/libinterface.so /usr/lib
|
|
sudo cp ${PWD}/interface.h /usr/include
|
|
sudo chmod 0755 /usr/lib/libinterface.so
|
|
sudo ldconfig
|
|
|
|
|
|
uninstall :
|
|
sudo rm /usr/lib/libinterface.so
|
|
sudo rm /usr/include/interface.h
|
|
sudo ldconfig
|
|
|
|
|
|
.PHONY : clean
|
|
clean :
|
|
rm -f *.o libinterface.so
|