?? makefile.ms
字號(hào):
#
# This makefile will build standalone ERTFS for microsoft 'C'.
# It will build the library rtfs.lib and the application RTFSDEM.EXE
# This is for ERTFS_STAND_ALONE only. Not used in RTIP enviroment
#
# Use this for UCOS borland
#targ = "UCOS"
# Use this for Nucleus plus microsoft
#targ = "PLUS"
# Use this for RTPX microsoft
#targ = "RTPX"
# Use this for POLLED microsoft
targ = "POLLOS"
# Use this to create the library and the mkrom tool using MSC for WIN32
#targ = "MKROM"
# Set to "Y" to build cdfs set to "N" not to
docdfs = "N"
!IF ($(targ) == "MKROM")
docdfs = "N"
all: mkrom.exe
!else
all: rtfsdem.exe
!endif
tstsh.obj: tstsh.c
rtfsdem.obj: rtfsdem.c
api.obj: api.c
apiutil.obj: apiutil.c
block.obj: block.c
devio.obj: devio.c
chkmedia.obj: chkmedia.c
pcmctrl.obj: pcmctrl.c
drobj.obj: drobj.c
pcmcia.obj: pcmcia.c
lowl.obj: lowl.c
pc_enum.obj: pc_enum.c
format.obj: format.c
ramdisk.obj: ramdisk.c
pcmsram.obj: pcmsram.c
hostdisk.obj: hostdisk.c
romdisk.obj: romdisk.c
bss.obj: bss.c
ide_drv.obj: ide_drv.c
pc_memry.obj: pc_memry.c
rtfsinit.obj: rtfsinit.c
fl_drver.obj: fl_drver.c
criterr.obj: criterr.c
pcconst.obj: pcconst.c
util.obj: util.c
chkdsk.obj: chkdsk.c
portio.obj: portio.c
portisr.obj: portisr.c
portkern.obj: portkern.c
rtpx.obj: rtpx.c
rtpxport.obj: rtpxport.c
rtpxrm.obj: rtpxrm.asm
!if ($(docdfs) == "Y")
cdapi.obj: cdapi.c
cdglobal.obj: cdglobal.c
cdblock.obj: cdblock.c
cdlowl.obj: cdlowl.c
cdapimsc.obj: cdapimsc.c
cdportme.obj: cdportme.c
cdmemory.obj: cdmemory.c
cdutil.obj: cdutil.c
cdfsobj = cdapi.obj cdglobal.obj cdblock.obj cdlowl.obj cdapimsc.obj cdportme.obj cdmemory.obj cdutil.obj
cdfslib = -+cdapi -+cdglobal -+cdblock -+cdlowl -+cdapimsc -+cdportme -+cdmemory -+cdutil
!else
cdfsobj =
cdfslib =
!endif
rtpxobj =
rtpxlib =
!IF ($(targ) == "RTPX")
# use these if rtpx
rtpxobj = rtpx.obj rtpxport.obj rtpxrm.obj
rtpxlib = -+rtpx -+rtpxport -+rtpxrm
!ENDIF
rtfsobj = portio.obj portisr.obj portkern.obj api.obj apiutil.obj block.obj devio.obj chkmedia.obj pcmctrl.obj \
drobj.obj pcmcia.obj lowl.obj format.obj \
hostdisk.obj ramdisk.obj pcmsram.obj romdisk.obj bss.obj \
ide_drv.obj rtfsinit.obj pc_memry.obj fl_drver.obj criterr.obj pc_enum.obj \
pcconst.obj util.obj chkdsk.obj $(rtpxobj) $(cdfsobj)
rtfslib = -+portio -+portisr -+portkern -+api -+apiutil -+block -+devio -+chkmedia -+pcmctrl \
-+drobj -+pcmcia -+lowl -+format \
-+hostdisk -+ramdisk -+pcmsram -+romdisk -+bss \
-+ide_drv -+rtfsinit -+pc_memry -+fl_drver -+criterr -+pc_enum \
-+pcconst -+util -+chkdsk $(rtpxlib) $(cdfslib)
!IF ($(targ) == "PLUS")
# compile and link flags. The default flags exclude debug information
# if you wish to build the package to include debugging the comment out
# the next two lines and uncomment the two lines containing
# dbcompile = /Zi and dblink = /CO
#dbcompile =
#dblink =
dbcompile = /Zi
dblink = /CO
# NUCLEUS PLUS
.c.obj:
echo compileing $< > con
cl /c -o$*.obj -Alfw /Gs /Zp $(dbcompile) -DERTFS_SA -DPLUS /W4 -I.\ -I\nucleus $< > con
rtfs.lib: $(rtfsobj)
lib @<<
rtfs.lib /NOI $(rtfslib);
<<
# NUCLEUS PLUS
rtfsdem.exe: rtfsdem.obj tstsh.obj rtfs.lib
LINK @<<
/DOSSEG $(dblink) /M /SEG:196 \nucleus\ndata.obj \nucleus\dos.obj rtfsdem.obj tstsh.obj,rtfsdem,map,rtfs.lib \nucleus\nucleus.lib,;
<<
!ENDIF
!IF ($(targ) == "MKROM")
#dbcompile =
#dblink =
dbcompile = /Zi
dblink = /CO
.c.obj:
echo compileing $< > con
cl386 /c -o$*.obj /Gs /Zp $(dbcompile) -DERTFS_SA -DPOLLOS /W4 -I.\ $<
rtfs.lib: $(rtfsobj)
lib @<<
/OUT:rtfs.lib *.obj
<<
# POLLOS
mkrom.exe: mkrom.obj rtfs.lib
link /STACK:4096 /DEBUG:FULL mkrom.obj rtfs.lib
!endif
!IF ($(targ) == "POLLOS")
#dbcompile =
#dblink =
dbcompile = /Zi
dblink = /CO
# POLLOS
.c.obj:
echo compileing $< > con
cl /c -o$*.obj -Alfw /Gs /G2 /Zp $(dbcompile) -DERTFS_SA -DPOLLOS /W4 -I.\ $<
rtfs.lib: $(rtfsobj)
lib @<<
rtfs.lib /NOI $(rtfslib);
<<
# POLLOS
rtfsdem.exe: rtfsdem.obj tstsh.obj rtfs.lib
link /ST:4096 /DOSSEG $(dblink) /M /SEG:196 rtfsdem.obj tstsh.obj,rtfsdem,map,rtfs.lib,;
!ENDIF
!IF ($(targ) == "RTPX")
# RTPX
.c.obj:
echo compileing $< > con
cl /c -o$*.obj -Alfw /Gs /G2 /Ze /Zp $(dbcompile) -DERTFS_SA -DRTPX -DRTPXMSP0 /W4 -I.\ -I\nucleus $< >con
.asm.obj:
echo assembling $< > con
ml /c /Cx /DMicrosoft /Zm $*.asm
rtfs.lib: $(rtfsobj)
lib @<<
rtfs.lib /NOI $(rtfslib);
<<
# RTPX
rtfsdem.exe: rtfsdem.obj tstsh.obj rtfs.lib
link /DOSSEG $(dblink) /M rtfsdem.obj tstsh.obj,rtfsdem,map,rtfs.lib,;
!ENDIF
!IF ($(targ) == "UCOS")
# UCOS - Borland
# debug version - turn on to debug
dbcompile = -Odi -v -r-
dblink = /m/v/c/i
# optimized version turn on for opimized
#dbcompile = -O -Os -Z
#dblink = /m/c/i
includes = -I.\;-I\software\ucos\source;\software\ucos\ix86l;\software\ucos\ebs
compile_flags = -c -f- -g9 -j9 -H- -1 -ml -N- -w -w-aus -w-par -w-pia
cn = -DUCOS=1 -DERTFS_SA=1 $(compile_flags) $(dbcompile) $(includes) $*.c
.c.obj:
echo compileing $< > con
bcc @&&<
$(cn)
<
# UCOS borland
rtfsdem.exe: rtfsdem.obj tstsh.obj rtfs.lib
echo LINKING $(app)$(v) > con
tlink $(dblink) @&&<
$(MAKEDIR)\..\lib\c0L rtfsdem.obj tstsh.obj
rtfsdem,rtfsdem,rtfs.lib \software\ucos\ebs\ucosl.lib cl
<
rtfs.lib: $(rtfsobj)
tlib /C /P64 rtfs.lib @&&<
$(rtfslib)
<
# end UCOS
!endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -