makefile
来自「mpc564 时钟中断 时钟中断」· 代码 · 共 71 行
TXT
71 行
#**************************************************************************
#* FILE NAME: tmakefile COPYRIGHT (c) MOTOROLA 2002 *
#* VERSION: 1.0 *
#* *
#* DESCRIPTION: This is the makefile for the TPU TSM example files. *
#*========================================================================*
#* MAKE: GNU make VERSION: 3.79.1 *
#* AUTHOR: Jeff Loeliger *
#* *
#* HISTORY *
#* REV AUTHOR DATE DESCRIPTION OF CHANGE *
#* --- ----------- --------- --------------------- *
#* 1.0 J. Loeliger 03/Aug/02 Initial version of file. *
#**************************************************************************
CC = dcc
AS = das
LD = dld
CFLAGS = -tPPC555EH -g3 -c -Xnested-interrupts
ASFLAGS = -tPPC555EH
LDFLAGS = -tPPC555EH mpc500.dld -m2
LIBS = -li -lchar
OBJS = crt0m500.o mpc500_util.o tpu_tsm.o ex_tbl.o ex_funcs.o
all: tpu_tsm_ex1.elf
tpu_tsm_ex1.elf : tpu_tsm_ex1.o $(OBJS) makefile mpc500.dld
$(LD) $(LDFLAGS) $(OBJS) tpu_tsm_ex1.o $(LIBS) -o ${@F} > tpu_tsm_ex1.map
tpu_tsm_ex1.o : tpu_tsm_ex1.c mpc565.h makefile
$(CC) $(CFLAGS) $< -o $@
tpu_tsm.o : tpu_tsm.c mpc565.h makefile
$(CC) $(CFLAGS) $< -o $@
mpc500_util.o : mpc500_util.c mpc565.h makefile
$(CC) $(CFLAGS) $< -o $@
crt0m500.o : crt0m500.s makefile
$(AS) $(ASFLAGS) $<
ex_tbl.o : ex_tbl.s
$(AS) $(ASFLAGS) $<
ex_funcs.o : ex_funcs.c m_common.h makefile
$(CC) $(CFLAGS) $< -o $@
#mpc555.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
#mpc565.h : m_common.h m_dptram.h m_uc3f.h m_mios14.h m_qadc.h m_qsmcm.h \
# m_calram.h m_toucan.h m_tpu3.h m_uimb.h m_usiu.h m_dlcmd2.h makefile
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:
rm -f *.o *.elf *.map
rm -f *.ou1 *.db *.db2 *.blk
rm -f *.?~ a.out
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?