spbx/roms/srcs/images/ethernet/Makefile

65 lines
1.3 KiB
Makefile
Raw Permalink Normal View History

2019-03-11 00:13:23 +00:00
# target name, the target name must have the same name of c source file
TARGET_NAME=ncd
# target
# for linux module driver: KO
# for application: EXE
# for dynamic library: DLL
TARGET_TYPE = KO
# target object
# for application: APP
# for device driver: DRV
TARGET_OBJ = DRV
TARGET_BOX = rom
#debug mode or release mode
DEBUG = TRUE
PLAT_MPC8309 ?= FALSE
PLAT_P1010 ?= TRUE
PLAT_MV78460 ?= FALSE
PLAT_LINUX32 ?= FALSE
PLAT_WIN32 ?= FALSE
PLAT_WIN64 ?= FALSE
VPATH = ./common/
COMMON_SRCS = hook.c \
debug_info.c \
log.c
# source code
# set the source file, don't used .o because of ...
PLAT_P1010_SRCS = $(COMMON_SRCS) \
./gianfar/mod_entry.c \
./gianfar/fpga_bus.c \
./gianfar/init_drv.c \
./gianfar/gianfar.c \
./gianfar/gianfar_1588.c \
./gianfar/gianfar_ethtool.c \
./gianfar/gianfar_sysfs.c
PLAT_MV78460_SRCS = $(COMMON_SRCS) \
./mv_netdev/mod_entry.c \
./mv_netdev/mv_ethernet.c \
./mv_netdev/mvGpp.c \
./mv_netdev/1ms_irq.c \
./mv_netdev/fpga_bus.c \
./mv_netdev/mv_netdev.c
# gcc CFLAGS
PLAT_P1010_CFLAGS := -I./common/ -I./gianfar/
PLAT_MV78460_CFLAGS := -I./common/ -I./mv_netdev/
#PLAT_MV78460_CFLAGS := -D../common/
include ../../../../drivers/srcs/Makefile.cross
$(shell find ./ -name "*.ko" -delete)
# this line must be at below of thus, because of...