URL
https://opencores.org/ocsvn/pcie_ds_dma/pcie_ds_dma/trunk
Subversion Repositories pcie_ds_dma
[/] [pcie_ds_dma/] [trunk/] [soft/] [linux/] [common/] [Mk.Rules] - Rev 35
Go to most recent revision | Compare with Previous | Blame | View Log
#
# Detect operation system
#
#GPROF := -pg
#
# Setup common Makefile rules and defines
#
CC := $(CSTOOL_PREFIX)g++
LD := $(CSTOOL_PREFIX)g++
CFLAGS += -fPIC -Wall -g $(GPROF)
%.o: %.cpp
$(CC) $(CFLAGS) -c -MD $<
%.o: %.c
$(CC) $(CFLAGS) -c -MD $<
include $(wildcard *.d)
distclean:
rm -f *.o *~ core
rm -f *.d *~ core
rm -f *.so
rm -f *.0
clean:
rm -f *.o *~ core
rm -f *.d *~ core
rm -f *.so
rm -f *.0
SYSLIBDIR := /usr/local/lib/board
#
# в каталоге /etc/ld.so.conf.d/
# создать файл board.conf
# в котором прописать путь к библиотекам
# /usr/local/lib/board
# и выполнить ldconfig -v -n
#
install:
mkdir -p $(SYSLIBDIR)
chmod 777 $(SYSLIBDIR)
cp -af $(LIBNAME) $(SYSLIBDIR)
ln -sf $(SYSLIBDIR)/$(LIBNAME) $(SYSLIBDIR)/$(SONAME)
ln -sf $(SYSLIBDIR)/$(SONAME) $(SYSLIBDIR)/$(BASENAME)
echo '/usr/local/lib/board' > /etc/ld.so.conf.d/board.conf
/sbin/ldconfig
Go to most recent revision | Compare with Previous | Blame | View Log