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

📄 makefile

📁 MPC860开发板的简单的网卡驱动程序
💻
字号:
#/****************************************************************************
#
#        MAKEFILE
#
#
# History
# 09 OCT 96	    lvn    Initial writeup
# 14 FEB 97     sgj    Modified for RTC Driver
# 21 FEB 97     sgj    Modified for HDLC Driver 
# 04 DEC 97     jay    Modified for HDLC Driver with the latest version of
#		           the metaware compiler. 
# 12 JAN 98	    ecg    Modified for MPC860 Transparent Mode Example.
# 27 JAN 98     ecg    Modified for MPC860 Ethernet Example.
#-----------------------------------------------------------------------------
#
# Description:  This is the Makefile for the MPC860 Ethernet Example
#
# DOS Usage: make [all] [rtc.out] [zip]
# UNIX Usage: make [all] [rtc.out] [zip] [depend]
#
#****************************************************************************/

# For Unix
#BIN = /home/hd0/hcppc/bin
#LIB = /home/hd0/hcppc/lib/be/fsoft

# For DOS
BIN = c:\Metaware\bin
LIB = c:\Metaware\lib\be\fsoft
HCDIR = c:\Metaware

# To generate assembly

#CC = $(BIN)\hcppc -c -HB -g -DMetaWare -Hefile=err.txt -Hsds -fsoft -Hanno -S

# Normal Compile

CC = $(BIN)\hcppc -c -HB -g -DMetaWare -Hefile=err.txt -Hsds -fsoft -Humake \
     -Hon=Use_eieio -Hsyslib
     

# Optimization

# CC = $(BIN)\hcppc -c -HB -O -DMetaWare	 

ASM = $(BIN)\asppc -be

LINK = $(BIN)\ldppc 

OBJECTS = startup.o ethernet.o

all: ethernet.out

ethernet.out: $(OBJECTS)
        $(LINK) -o ethernet.out $(OBJECTS) -Bstart_addr=0x10000 \
        $(LIB)\libc.a -m > ethernet.map

ethernet.o: ethernet.c netcomm.h ethernet.h mpc860.h masks860.h 
        $(CC) ethernet.c	

startup.o: startup.s 
	$(ASM) startup.s

depend: 
	makedepend -I. *.c

# DO NOT DELETE THIS LINE -- make depend depends on it.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -