URL
https://opencores.org/ocsvn/pcie_ds_dma/pcie_ds_dma/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 2 |
Rev 6 |
#
|
#
|
#change this makefile for your target...
|
#change this makefile for your target...
|
#
|
#
|
|
|
PHONY = clean
|
PHONY = clean
|
TARGET_NAME = wb_test
|
TARGET_NAME = wb_test
|
|
|
all: $(TARGET_NAME)
|
all: $(TARGET_NAME)
|
|
|
ROOT_DIR = $(shell pwd)
|
ROOT_DIR = $(shell pwd)
|
|
|
CC = $(CROSS_COMPILE)g++
|
CC = $(CROSS_COMPILE)g++
|
LD = $(CROSS_COMPILE)g++
|
LD = $(CROSS_COMPILE)g++
|
|
|
CFLAGS := -D__LINUX__ -g -Wall -I./board -I./pex -I./work -I./utils
|
INCDIR := . \
|
LFLAGS := -Wl -ldl -lrt -lpthread
|
../../../driver/pexdrv \
|
SRCDIR := board pex work utils
|
../../../common/board \
|
#SRCFILE := $(wildcard *.cpp) $(wildcard $(SRCDIR)/*.cpp)
|
../../../common/pex \
|
|
../../../common/utils \
|
|
../../../common/dac \
|
|
../../../common/adc \
|
|
../../../common/dma
|
|
|
|
INCLUDE := $(addprefix -I, $(INCDIR))
|
|
|
|
CFLAGS := -D__LINUX__ -O2 -Wall $(INCLUDE)
|
|
LFLAGS := -Wl -ldl -lrt -lpthread -lm
|
|
|
SRCFILE := $(wildcard *.cpp)
|
SRCFILE := $(wildcard *.cpp)
|
SRCFILE += $(wildcard pex/*.cpp) $(wildcard board/*.cpp) $(wildcard work/*.cpp) $(wildcard utils/*.cpp)
|
SRCFILE += $(wildcard ../../../common/board/*.cpp)
|
|
SRCFILE += $(wildcard ../../../common/pex/*.cpp)
|
|
SRCFILE += $(wildcard ../../../common/utils/*.cpp)
|
|
#SRCFILE += $(wildcard ../../../common/dma/*.cpp)
|
|
#SRCFILE += $(wildcard ../../../common/adc/*.cpp)
|
|
#SRCFILE += $(wildcard ../../../common/dac/*.cpp)
|
|
SRCFILE += $(wildcard ./work/*.cpp)
|
OBJFILE := $(patsubst %.cpp,%.o, $(SRCFILE))
|
OBJFILE := $(patsubst %.cpp,%.o, $(SRCFILE))
|
|
|
$(TARGET_NAME): $(OBJFILE)
|
$(TARGET_NAME): $(OBJFILE)
|
$(LD) -o $(TARGET_NAME) $(notdir $^) $(LFLAGS)
|
$(LD) -o $(TARGET_NAME) $(notdir $^) $(LFLAGS)
|
|
|
# rm -f *.o *.d *~ core
|
# rm -f *.o *.d *~ core
|
mv $(TARGET_NAME) ../bin
|
mv $(TARGET_NAME) ../bin
|
@echo DONE...
|
@echo DONE...
|
|
|
%.o: %.cpp
|
%.o: %.cpp
|
$(CC) $(CFLAGS) -c -MD $<
|
$(CC) $(CFLAGS) -c -MD $<
|
|
|
include $(wildcard *.d)
|
include $(wildcard *.d)
|
|
|
|
|
clean:
|
clean:
|
rm -f *.o *~ core
|
rm -f *.o *~ core
|
rm -f *.d *~ core
|
rm -f *.d *~ core
|
rm -f $(TARGET_NAME)
|
rm -f $(TARGET_NAME)
|
|
|
distclean:
|
distclean:
|
rm -f *.o *~ core
|
rm -f *.o *~ core
|
rm -f *.d *~ core
|
rm -f *.d *~ core
|
rm -f $(TARGET_NAME)
|
rm -f $(TARGET_NAME)
|
|
|
src:
|
src:
|
@echo $(SRCFILE)
|
@echo $(SRCFILE)
|
@echo $(OBJFILE)
|
@echo $(OBJFILE)
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.