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

Subversion Repositories pcie_ds_dma

[/] [pcie_ds_dma/] [trunk/] [soft/] [linux/] [exam/] [Makefile] - Blame information for rev 2

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 = pex_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
CFLAGS := -D__LINUX__ -g -Wall -I../driver/pexdrv -I../common/board
16
LFLAGS = -Wl
17
 
18
$(TARGET_NAME): $(patsubst %.cpp,%.o, $(wildcard *.cpp))
19
        $(LD) $(LFLAGS) $(notdir $^) -o $(TARGET_NAME)
20
        rm -f *.o *~ core
21
 
22
%.o: %.cpp
23
        $(CC) $(CFLAGS) -c -MD $<
24
 
25
include $(wildcard *.d)
26
 
27
 
28
clean:
29
        rm -f *.o *~ core
30
        rm -f *.d *~ core
31
        rm -f $(TARGET_NAME)
32
 
33
distclean:
34
        rm -f *.o *~ core
35
        rm -f *.d *~ core
36
        rm -f $(TARGET_NAME)

powered by: WebSVN 2.1.0

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