spbx/roms/srcs/tools/irqCnt/Makefile

58 lines
1.2 KiB
Makefile

# target name, the target name must have the same name of c source file
TARGET_NAME=irqInfo
# 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 = test
#debug mode or release mode
DEBUG = TRUE
PLAT_MPC8309 ?= TRUE
PLAT_P1010 ?= TRUE
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 ...
PLAT_P1010_SRCS = mod_entry.c \
irqCount_drv.c
PLAT_MPC8309_SRCS = $(PLAT_P1010_SRCS)
# MRS Board Source Files
# gcc CFLAGS
PLAT_P1010_CFLAGS := -I../../../../drivers/srcs/common/
PLAT_MPC8309_CFLAGS := $(PLAT_P1010_CFLAGS)
#BOARD_MRS02_CFLAGS := -DUSED_CRS_MODELE
P1010_LIBS := ../../../../drivers/srcs/common/libcomm_drv-1010.a
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