📄 makefile
字号:
#/****************************************************************************
#
# MAKEFILE
#
#
# History
# AUG 1998 jes Initial writeup
# 15 SEP 1998 ggh Modified for 8260 Fast Enet example
#
#-----------------------------------------------------------------------------
#
# Description: This is the Makefile for the 8xxSAR AALx sample code.
# It was used solely in a windows environment.
#
# To build the object, simply type make in the
# directory where this Makefile is located (make sure you change the
# BIN path).
#
#****************************************************************************/
# MKS Makefile
##########################################################################
#Tool path
BIN = c:\diab\4.4a\win32\bin#Compiler
CC=$(BIN)\dcc
#Assembler
DAS=$(BIN)\das
#Linker
DLD=$(BIN)\dld
#Dump
DDUMP=$(BIN)\ddump
#CFLAGS = -S -g -tPPC603EN:simple -Xlint -Xpass-source -@E=err.txt -Xfar-data-relative
CFLAGS = -S -g -tPPC603EN:simple -Xlint -Xpass-source -@E=err.txt
#ASMFLAGS = -g -Xlabel-colon -tPPC603EN:simple -l
ASMFLAGS = -g -Xlabel-colon -tPPC603EN:simple -l
LNKFLAGS = -tPPC603EN:simple $(NAME).lnx -lc -m2 -@O=$(NAME).map
NAME = FEnetPQ2
OBJ_NAME = $(NAME).out
OBJECTS = FEnetPQ2.o startup.o
all: $(OBJ_NAME)
#-------------
# Build Rules
#-------------
%.s:%.c
$(CC) $(CFLAGS) $<
%.o:%.s
$(DAS) $(ASMFLAGS) $<
$(OBJ_NAME):$(OBJECTS)
$(DLD) -o $(NAME).out $(LNKFLAGS) $<
$(DDUMP) -R +d 2 -o $(NAME).s3 $@
#Dependencies:
startup.o: startup.s
FEnetPQ2.o: FEnetPQ2.c ethernet.h mpc8260.h netcomm.h
FEnetPQ2.out: FEnetPQ2.o startup.o
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -