makefile
来自「mpc564 时钟中断 时钟中断」· 代码 · 共 74 行
TXT
74 行
#**************************************************************************
#* FILE NAME: makefile COPYRIGHT (c) MOTOROLA 2002 *
#* VERSION: 1.0 *
#* *
#* DESCRIPTION: This is the makefile for the TPU QOM example files. *
#*========================================================================*
#* MAKE: GNU make VERSION: 3.79.1 *
#* AUTHOR: Jeff Loeliger *
#* *
#* HISTORY *
#* REV AUTHOR DATE DESCRIPTION OF CHANGE *
#* --- ----------- --------- --------------------- *
#* 1.0 J. Loeliger 21/Sep/02 Initial version of file. *
#**************************************************************************
CC = dcc
AS = das
LD = dld
CFLAGS = -tPPC555EH -g3 -c
ASFLAGS = -tPPC555EH
LDFLAGS = -tPPC555EH mpc500.dld -m2
LIBS = -li -lchar
OBJS = crt0m500.o mpc500_util.o tpu_qom.o
all: tpu_qom_example1.elf tpu_qom_example2.elf tpu_qom_example3.elf tpu_qom_example4.elf tpu_qom_example5.elf tpu_qom_example6.elf tpu_qom_example7.elf
tpu_qom_example1.elf : tpu_qom_example1.o $(OBJS) makefile mpc500.dld
$(LD) $(LDFLAGS) $(OBJS) tpu_qom_example1.o $(LIBS) -o ${@F} > tpu_qom_exmaple1.map
tpu_qom_example2.elf : tpu_qom_example2.o $(OBJS) makefile mpc500.dld
$(LD) $(LDFLAGS) $(OBJS) tpu_qom_example2.o $(LIBS) -o ${@F} > tpu_qom_exmaple2.map
tpu_qom_example3.elf : tpu_qom_example3.o $(OBJS) makefile mpc500.dld
$(LD) $(LDFLAGS) $(OBJS) tpu_qom_example3.o $(LIBS) -o ${@F} > tpu_qom_exmaple3.map
tpu_qom_example4.elf : tpu_qom_example4.o $(OBJS) makefile mpc500.dld
$(LD) $(LDFLAGS) $(OBJS) tpu_qom_example4.o $(LIBS) -o ${@F} > tpu_qom_exmaple4.map
tpu_qom_example5.elf : tpu_qom_example5.o $(OBJS) makefile mpc500.dld
$(LD) $(LDFLAGS) $(OBJS) tpu_qom_example5.o $(LIBS) -o ${@F} > tpu_qom_exmaple5.map
tpu_qom_example6.elf : tpu_qom_example6.o $(OBJS) makefile mpc500.dld
$(LD) $(LDFLAGS) $(OBJS) tpu_qom_example6.o $(LIBS) -o ${@F} > tpu_qom_exmaple6.map
tpu_qom_example7.elf : tpu_qom_example7.o $(OBJS) makefile mpc500.dld
$(LD) $(LDFLAGS) $(OBJS) tpu_qom_example7.o $(LIBS) -o ${@F} > tpu_qom_exmaple7.map
tpu_qom.o : tpu_qom.c mpc555.h makefile
$(CC) $(CFLAGS) $< -o $@
mpc500_util.o : mpc500_util.c mpc555.h makefile
$(CC) $(CFLAGS) $< -o $@
crt0m500.o : crt0m500.s makefile
$(AS) $(ASFLAGS) $<
ex_funcs.o : ex_funcs.c m_common.h makefile
$(CC) $(CFLAGS) -Xnested-interrupts $< -o $@
mpc565.h : m_common.h m_flash.h m_mios.h m_qadc64.h m_qsmcm.h \
m_sram.h m_toucan.h m_tpu3.h m_usiu.h makefile
# Dummy targets needed by some versions of make
makefile :
clean:
del *.o *.elf *.map
del *.ou1 *.db *.db2 *.blk
del *.?~ a.out
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?