OpenCores
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] - Blame information for rev 29

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 v.karak
 
2
#
3
# Detect operation system
4
#
5
 
6
#GPROF := -pg
7
 
8
#
9
# Setup common Makefile rules and defines
10
#
11
 
12
CC := $(CSTOOL_PREFIX)g++
13
LD := $(CSTOOL_PREFIX)g++
14
 
15
CFLAGS += -fPIC -Wall -g $(GPROF)
16
 
17
%.o: %.cpp
18
        $(CC) $(CFLAGS) -c -MD $<
19
 
20
%.o: %.c
21
        $(CC) $(CFLAGS) -c -MD $<
22
 
23
include $(wildcard *.d)
24
 
25
distclean:
26
        rm -f *.o *~ core
27
        rm -f *.d *~ core
28
        rm -f *.so
29
        rm -f *.0
30
 
31
clean:
32
        rm -f *.o *~ core
33
        rm -f *.d *~ core
34
        rm -f *.so
35
        rm -f *.0
36
 
37
SYSLIBDIR := /usr/local/lib/board
38
 
39
#
40
# в каталоге /etc/ld.so.conf.d/
41
# создать файл board.conf
42
# в котором прописать путь к библиотекам
43
# /usr/local/lib/board
44
# и выполнить ldconfig -v -n
45
#
46
 
47
install:
48
        mkdir -p $(SYSLIBDIR)
49
        chmod 777 $(SYSLIBDIR)
50
        cp -af $(LIBNAME) $(SYSLIBDIR)
51
        ln -sf $(SYSLIBDIR)/$(LIBNAME) $(SYSLIBDIR)/$(SONAME)
52
        ln -sf $(SYSLIBDIR)/$(SONAME) $(SYSLIBDIR)/$(BASENAME)
53
        echo '/usr/local/lib/board' > /etc/ld.so.conf.d/board.conf
54
        /sbin/ldconfig
55
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.