# 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 = mod_entry.c \ fpga_bus.c \ init_drv.c \ gianfar.c \ gianfar_ethtool.c \ gianfar_sysfs.c \ hook_p1010.c \ debug_info.c \ log.c # gcc CFLAGS PLAT_P1010_CFLAGS := -DUSED_1000M_HZ #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...