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/] [pex/] [Makefile] - Blame information for rev 30

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

Line No. Rev Author Line
1 6 v.karak
#
2
#change this makefile for your target...
3
#
4
 
5
BASENAME = libpex_board.so
6
SONAME   = $(BASENAME).0
7
LIBNAME  = $(BASENAME).0.0
8
 
9
ROOT_DIR := $(shell pwd)
10
LIBDIR  := ../../lib
11
 
12
CC := $(CROSS_COMPILE)g++
13
LD := $(CROSS_COMPILE)g++
14
 
15
INCDIR := . \
16
 ../../driver/pexdrv \
17
 ../board \
18
 ../utils \
19
 ../dma
20
 
21
INCLUDE := $(addprefix -I, $(INCDIR))
22
 
23
CFLAGS := -D__LINUX__ -O2 -Wall $(INCLUDE)
24
LFLAGS := -ldl -lrt -lpthread -lm
25
 
26
SRCFILE := $(wildcard *.cpp)
27
SRCFILE += $(wildcard ../board/*.cpp)
28
#SRCFILE += $(wildcard ../dma/*.cpp)
29
OBJFILE := $(patsubst %.cpp,%.o, $(SRCFILE))
30
 
31
all: $(LIBNAME)
32
 
33
$(LIBNAME): $(OBJFILE)
34
        $(LD) -shared -rdynamic -Wl,-soname,$(SONAME) \
35
        -o $(LIBNAME) $(notdir $(OBJFILE)) $(LFLAGS)
36
        chmod 666 $(LIBNAME)
37
        ln -sf $(LIBNAME) $(SONAME)
38
        ln -sf $(SONAME) $(BASENAME)
39
        cp -fa $(BASENAME) $(SONAME) $(LIBNAME) $(LIBDIR)
40
        rm *.o *.d
41
 
42
include ../Mk.Rules
43
 
44
src:
45
        echo $(SRCFILE)

powered by: WebSVN 2.1.0

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