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

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 = libboard.so
6
SONAME   = $(BASENAME).0
7
LIBNAME  = $(BASENAME).0.0
8
 
9
ROOT_DIR := $(shell pwd)
10
LIBDIR  := ../../lib
11
 
12
SRC := $(wildcard *.cpp)
13
SOURCE := $(SRC)
14
OBJ_FILES := $(SOURCE:.cpp=.o)
15
 
16
all: $(LIBNAME)
17
 
18
CFLAGS += -I. -I../utils
19
 
20
$(LIBNAME): $(OBJ_FILES)
21
        $(LD) -g -shared -rdynamic -Wl,-soname,$(SONAME) \
22
        -o $(LIBNAME) $(notdir $(OBJ_FILES)) -ldl -lrt -lc -lpthread
23
        chmod 666 $(LIBNAME)
24
        ln -sf $(LIBNAME) $(SONAME)
25
        ln -sf $(SONAME) $(BASENAME)
26
        cp -vfa $(BASENAME) $(SONAME) $(LIBNAME) $(LIBDIR)
27
        rm *.o *.d
28
 
29
include ../Mk.Rules

powered by: WebSVN 2.1.0

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