⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 mpc564 时钟中断 时钟中断
💻
字号:
#**************************************************************************
#* FILE NAME: makefile                        COPYRIGHT (c) MOTOROLA 2002 *
#* VERSION: 1.0                                                           *
#*                                                                        *
#* DESCRIPTION: This is the makefile for the TPU DIO example files.       *
#*========================================================================*
#* MAKE: GNU make        VERSION: 3.79.1                                  *
#* AUTHOR: Jeff Loeliger                                                  *
#*                                                                        *
#* HISTORY                                                                *
#* REV      AUTHOR      DATE       DESCRIPTION OF CHANGE                  *
#* ---   -----------  ---------    ---------------------                  *
#* 1.0   J. Loeliger  19/Aug/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_dio.o

all: tpu_dio_example1.elf tpu_dio_example2.elf tpu_dio_example3.elf tpu_dio_example4.elf

tpu_dio_example1.elf : tpu_dio_example1.o $(OBJS) makefile mpc500.dld
	$(LD) $(LDFLAGS) $(OBJS) tpu_dio_example1.o $(LIBS) -o ${@F} > tpu_dio_exmaple1.map

tpu_dio_example2.elf : tpu_dio_example2.o $(OBJS) makefile mpc500.dld
	$(LD) $(LDFLAGS) $(OBJS) tpu_dio_example2.o $(LIBS) -o ${@F} > tpu_dio_exmaple2.map

tpu_dio_example3.elf : tpu_dio_example3.o $(OBJS) makefile mpc500.dld
	$(LD) $(LDFLAGS) $(OBJS) tpu_dio_example3.o $(LIBS) -o ${@F} > tpu_dio_exmaple3.map

tpu_dio_example4.elf : tpu_dio_example4.o $(OBJS) makefile mpc500.dld
	$(LD) $(LDFLAGS) $(OBJS) tpu_dio_example4.o $(LIBS) -o ${@F} > tpu_dio_exmaple4.map

tpu_dio.o : tpu_dio.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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -