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/] [board_exam/] [Makefile] - Rev 39

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


PHONY = clean
TARGET_NAME = pex_board_test

all: $(TARGET_NAME)

BINPATH  := ../..
BINDIR  := $(BINPATH)/bin
LIBPATH  := ../..
LIBDIR := $(LIBPATH)/lib

CC := $(CROSS_COMPILE)g++
LD := $(CROSS_COMPILE)g++

INCDIR := . \
 ../../driver/pexdrv \
 ../../common/board \
 ../../common/utils

INCLUDE := $(addprefix -I, $(INCDIR))

#CFLAGS := -D__linux__ -D__VERBOSE__ -g -Wall $(INCLUDE)
CFLAGS := -D__linux__ -O2 -Wall $(INCLUDE)
LFLAGS := -Wl,-rpath $(LIBDIR) -L"$(LIBDIR)" -lboard -ldl -lpthread

#EXTFILES := ../common/net/net_board.cpp
#EXTFILES := ../common/net/netcmn.cpp

$(TARGET_NAME): $(patsubst %.cpp,%.o, $(wildcard *.cpp)) $(EXTFILES)
        $(LD) -o $(TARGET_NAME) $(notdir $^) $(LFLAGS)
        cp $(TARGET_NAME) $(BINDIR)
        rm -f *.o *~ core

%.o: %.cpp
        $(CC) $(CFLAGS) -c -MD $<
        
include $(wildcard *.d)


test:
        @echo $(SRC)

clean:
        rm -f *.o *~ core
        rm -f *.d *~ core
        rm -f $(TARGET_NAME)
        
distclean:
        rm -f *.o *~ core
        rm -f *.d *~ core
        rm -f $(TARGET_NAME)

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

powered by: WebSVN 2.1.0

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