# target name, the target name must have the same name of c source file TARGET_NAME=mirror # 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 = #debug mode or release mode DEBUG = TRUE PLAT_MPC8309 ?= TRUE #VPATH = ../common/ # source code # set the source file, don't used .o because of ... # MRS Board Source Files PLAT_MPC8309_SRCS = mirror_drv.c \ mod_entry.c \ spi_mpc.c \ bcm_mirror.c # gcc CFLAGS PLAT_MPC8309_CFLAGS := -I../../../../drivers/srcs/common/ MPC8309_LIBS := ../../../../drivers/srcs/common/libcomm_drv-8309.a # this line must be at below of thus, because of... include ../../../../drivers/srcs/Makefile.cross ifeq ($(MAKECMDGOALS), ) $(shell find ./ -name "$(TARGET)-*.ko" -delete) else ifeq ($(MAKECMDGOALS), all) $(shell find ./ -name "$(TARGET)-*.ko" -delete) endif endif