# # Driver Makefile # AR = m68k-elf-ar CC = m68k-elf-gcc CXX = m68k-elf-g++ LD = m68k-elf-gcc OBJCOPY = m68k-elf-objcopy RANLIB = m68k-elf-ranlib RM = rm -f TARGET_PROC = MCF523x PROJECT_DIR = ../../.. RTXCG_DIR = $(PROJECT_DIR)/Rtxcgen_Files QUADROS_DIR = $(PROJECT_DIR)/../../../../Source incDirs =\ -I$(QUADROS_DIR)/Drivers/$(TARGET_PROC)/Common \ -I$(QUADROS_DIR)/Drivers/$(TARGET_PROC)/Common/mcf523x \ -I$(QUADROS_DIR)/Kernel/Include \ -I$(PROJECT_DIR)/Configuration/Board \ -I$(RTXCG_DIR) oDir = ./obj Bin = ./bin libDirs = LDFLAGS = -m528x LDIBS = DEFS = -DM5282LITE_xse C_FLAGS = -g -O -m528x $(DEFS) EXOBJS =\ $(oDir)/sysinit.o\ $(oDir)/rtxcuart.o ALLOBJS = $(EXOBJS) ALLBIN = $(Bin)/libdrv.a ALLTGT = $(Bin)/libdrv.a # User defines: #@# Targets follow --------------------------------- all: $(ALLTGT) objs: $(ALLOBJS) cleanobjs: $(RM) $(ALLOBJS) cleanbin: $(RM) $(ALLBIN) clean: cleanobjs cleanbin cleanall: cleanobjs cleanbin #@# User Targets follow --------------------------------- #@# Dependency rules follow ----------------------------- $(Bin)/libdrv.a: $(EXOBJS) $(RM) $@ $(AR) cr $@ $^ $(RANLIB) $@ $(oDir)/sysinit.o: \ $(QUADROS_DIR)/Drivers/$(TARGET_PROC)/Common/sysinit.c \ $(QUADROS_DIR)/Kernel/Include/rtxcapi.h \ ../../../Configuration/Board/sysinit.h \ $(QUADROS_DIR)/Kernel/Include/enable.h \ $(RTXCG_DIR)/kproject.h \ ../../../Configuration/Board/m52xxevb.h \ $(QUADROS_DIR)/Drivers/$(TARGET_PROC)/Common/mcf5xxx.h \ $(QUADROS_DIR)/Drivers/$(TARGET_PROC)/Common/mcf523x.h $(CC) $(C_FLAGS) $(incDirs) -c -o $@ $< $(oDir)/rtxcuart.o: \ $(QUADROS_DIR)/Drivers/$(TARGET_PROC)/Common/rtxcuart.c \ $(QUADROS_DIR)/Kernel/Include/rtxcapi.h \ $(QUADROS_DIR)/Kernel/Include/enable.h \ ../../../Configuration/Board/sysinit.h \ ../../../Configuration/Board/m52xxevb.h \ $(QUADROS_DIR)/Drivers/$(TARGET_PROC)/Common/mcf5xxx.h \ $(QUADROS_DIR)/Drivers/$(TARGET_PROC)/Common/mcf523x.h \ ../../../Configuration/Board/rtxcuart.h $(CC) $(C_FLAGS) $(incDirs) -c -o $@ $<