65 lines
1.2 KiB
Makefile
65 lines
1.2 KiB
Makefile
|
# target name, the target name must have the same name of c source file
|
||
|
TARGET=ncd
|
||
|
|
||
|
# target
|
||
|
# for linux module driver: DRV
|
||
|
# for application: EXE
|
||
|
# for dynamic library: DLL
|
||
|
TARGET_TYPE = DRV
|
||
|
|
||
|
TARGET_BOX = rom
|
||
|
|
||
|
#debug mode or release mode
|
||
|
DEBUG = TRUE
|
||
|
|
||
|
PLAT_MPC8309 ?= TRUE
|
||
|
PLAT_P1010 ?= FALSE
|
||
|
PLAT_MV78460 ?= FALSE
|
||
|
PLAT_LINUX32 ?= FALSE
|
||
|
PLAT_WIN32 ?= FALSE
|
||
|
PLAT_WIN64 ?= FALSE
|
||
|
|
||
|
VPATH = ../common/
|
||
|
|
||
|
# source code
|
||
|
|
||
|
# set the source file, don't used .o because of ...
|
||
|
# MRS Board Source Files
|
||
|
PLAT_P1010_SRCS = mod_entry.c \
|
||
|
./crypto/aes.c \
|
||
|
./crypto/aut.c \
|
||
|
./crc/crc16.c \
|
||
|
./crc/crc32.c \
|
||
|
./log/klog.c \
|
||
|
./fsio/fsio.c \
|
||
|
./proc/debug_info.c \
|
||
|
./inet_udp/sock_udp.c \
|
||
|
./spbx_log/spbx_log.c \
|
||
|
setup_helper.c \
|
||
|
flash_proc.c \
|
||
|
flash_drv.c \
|
||
|
mtd_parttn.c
|
||
|
|
||
|
PLAT_MPC8309_SRCS = mod_entry.c \
|
||
|
ucc_geth.c \
|
||
|
ucc_geth_ethtool.c \
|
||
|
hook.c \
|
||
|
utils.c \
|
||
|
irq.c \
|
||
|
debugfs.c
|
||
|
# gcc CFLAGS
|
||
|
|
||
|
PLAT_P1010_CFLAGS :=
|
||
|
PLAT_MPC8309_CFLAGS :=
|
||
|
|
||
|
# this line must be at below of thus, because of...
|
||
|
include ../../../../../drivers/srcs_v1/Makefile.cross
|
||
|
|
||
|
ifeq ($(MAKECMDGOALS), )
|
||
|
$(shell find ./ -name "$(TARGET)-*.ko" -delete)
|
||
|
else
|
||
|
ifeq ($(MAKECMDGOALS), all)
|
||
|
$(shell find ./ -name "$(TARGET)-*.ko" -delete)
|
||
|
endif
|
||
|
endif
|