1
0
mirror of https://github.com/bmartini/zynq-axis.git synced 2024-09-05 19:19:27 +08:00
zynq-axis/lib/Makefile
Berin Martini 11ec4ddca7 Stub of an axis interface library
Attempts to mmap the axis AXI4Lite memory region.
2014-12-31 11:49:12 -05:00

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