📄 makefile
字号:
#/****************************************************************************
#
# MAKEFILE
#
#
# History
# 10/9/96 lvn Initial writeup
# 2/14/97 sgj Modified for RTC Driver
# 2/21/97 sgj Modified for HDLC Driver
# 12/4/97 jay Modified for HDLC Driver with the latest version of
# the metaware compiler.
#
#-----------------------------------------------------------------------------
#
#Description: This is the Makefile for the 860 HDLC Driver
#
# 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\hcppc\bin
LIB = c:\Metaware\hcppc\lib\be\fsoft
HCDIR = c:\Metaware\hcppc
# 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 hdlcint.o
all: hdlcint.out
hdlcint.out: $(OBJECTS)
$(LINK) -o hdlcint.out $(OBJECTS) -Bstart_addr=0x10000 \
$(LIB)\libc.a -m > hdlcint.map
hdlcint.o: hdlcint.c netcomm.h hdlcint.h mpc860.h masks860.h
$(CC) hdlcint.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 + -