makefile

来自「mpc564 时钟中断 时钟中断」· 代码 · 共 60 行

TXT
60
字号
#**************************************************************************
#* FILE NAME: makefile                        COPYRIGHT (c) MOTOROLA 2002 *
#* VERSION: 1.0                                                           *
#*                                                                        *
#* DESCRIPTION: This is the makefile for the TPU QDEC example files.      *
#*========================================================================*
#* MAKE: GNU make        VERSION: 3.79.1                                  *
#* AUTHOR: Jeff Loeliger                                                  *
#*                                                                        *
#* HISTORY                                                                *
#* REV      AUTHOR      DATE       DESCRIPTION OF CHANGE                  *
#* ---   -----------  ---------    ---------------------                  *
#* 1.0   J. Loeliger  11/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_qdec.o

all: tpu_qdec_example1.elf tpu_qdec_example2.elf

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

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

tpu_qdec.o : tpu_qdec.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 + -
显示快捷键?