OpenCores
URL https://opencores.org/ocsvn/pcie_ds_dma/pcie_ds_dma/trunk

Subversion Repositories pcie_ds_dma

[/] [pcie_ds_dma/] [trunk/] [soft/] [linux/] [application/] [adm_test/] [src/] [Makefile] - Blame information for rev 9

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

Line No. Rev Author Line
1 2 dsmv
#
2
#change this makefile for your target...
3
#
4
 
5
PHONY = clean
6
TARGET_NAME = adm_test
7
 
8
all: $(TARGET_NAME)
9
 
10
ROOT_DIR = $(shell pwd)
11
 
12
CC = $(CROSS_COMPILE)g++
13
LD = $(CROSS_COMPILE)g++
14
 
15 6 v.karak
INCDIR := . \
16
 ../../../driver/pexdrv \
17
 ../../../common/board \
18
 ../../../common/pex \
19
 ../../../common/utils \
20
 ../../../common/dac \
21
 ../../../common/adc \
22 8 v.karak
 ../../../common/dma \
23
 ../../../common/console
24 6 v.karak
 
25
INCLUDE := $(addprefix -I, $(INCDIR))
26
 
27
CFLAGS := -D__LINUX__ -O2 -Wall $(INCLUDE)
28 8 v.karak
LFLAGS := -Wl -ldl -lrt -lpthread -lm -lncurses
29 6 v.karak
 
30 2 dsmv
SRCFILE := $(wildcard *.cpp)
31 6 v.karak
SRCFILE += $(wildcard ../../../common/board/*.cpp)
32 2 dsmv
SRCFILE += $(wildcard ../../../common/pex/*.cpp)
33 6 v.karak
SRCFILE += $(wildcard ../../../common/utils/*.cpp)
34 8 v.karak
SRCFILE += $(wildcard ../../../common/console/*.cpp)
35 6 v.karak
#SRCFILE += $(wildcard ../../../common/dma/*.cpp)
36
#SRCFILE += $(wildcard ../../../common/adc/*.cpp)
37
#SRCFILE += $(wildcard ../../../common/dac/*.cpp)
38
SRCFILE += $(wildcard ./work/*.cpp)
39 2 dsmv
OBJFILE := $(patsubst %.cpp,%.o, $(SRCFILE))
40
 
41
$(TARGET_NAME): $(OBJFILE)
42
        $(LD) -o $(TARGET_NAME) $(notdir $^) $(LFLAGS)
43
 
44
#       rm -f *.o *.d *~ core
45
        mv $(TARGET_NAME) ../bin
46
        @echo DONE...
47
 
48
%.o: %.cpp
49
        $(CC) $(CFLAGS) -c -MD $<
50
 
51
include $(wildcard *.d)
52
 
53
 
54
clean:
55
        rm -f *.o *~ core
56
        rm -f *.d *~ core
57
        rm -f $(TARGET_NAME)
58
 
59
distclean:
60
        rm -f *.o *~ core
61
        rm -f *.d *~ core
62
        rm -f $(TARGET_NAME)
63
 
64
src:
65
        @echo $(SRCFILE)
66
        @echo $(OBJFILE)

powered by: WebSVN 2.1.0

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