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

📄 makefile

📁 可以格式化超过200G硬盘的格式化工具
💻
字号:
# This makefile is for format and Borland Turbo C++ 3.0.
# Changed to use line-initial TAB rather than space: Makes it
# Borland Turbo C 2.01 compatible. Also using no generic rule
# anymore and splitting OBJS into 2 variables, for del command
# line. Plus made command /c explicit for using del!
# Do not forget that all Turbo C must be in PATH and that you
# must have TURBOC.CFG in the current directory.
#
# Minimum CFLAGS: -ms
# Smaller for Turbo C: -M -O -N -Z -w -a- -f- -ms
# !!! changed from -ms to -mc as it seems that I forgot to make
# !!! some pointers explicitly far...

# macros:

CC=tcc
CFLAGS=-M -O -N -Z -ln -w -a- -f- -f87- -DDEBUG -ms
LDFLAGS=
LDLIBS=
RM=command /c del
OBJS1=createfs.obj floppy.obj hdisk.obj main.obj savefs.obj
OBJS2=userint.obj driveio.obj getopt.obj init.obj recordbc.obj uformat.obj

# build targets:

all: format.exe

format.exe: $(OBJS1) $(OBJS2)
	$(CC) $(CFLAGS) $(LDFLAGS) -eformat *.obj $(LDLIBS) 

# compile targets:

# very convenient but not available in Turbo C 2.01 - generic C/OBJ rule:
# .c.obj:
#	$(CC) $(CFLAGS) -c $*.c

createfs.obj:
	$(CC) $(CFLAGS) -c createfs.c

floppy.obj:
	$(CC) $(CFLAGS) -c floppy.c

hdisk.obj:
	$(CC) $(CFLAGS) -c hdisk.c

main.obj:
	$(CC) $(CFLAGS) -c main.c

savefs.obj:
	$(CC) $(CFLAGS) -c savefs.c

userint.obj:
	$(CC) $(CFLAGS) -c userint.c

driveio.obj:
	$(CC) $(CFLAGS) -c driveio.c

getopt.obj:
	$(CC) $(CFLAGS) -c getopt.c

init.obj:
	$(CC) $(CFLAGS) -c init.c

recordbc.obj:
	$(CC) $(CFLAGS) -c recordbc.c

uformat.obj:
	$(CC) $(CFLAGS) -c uformat.c



# clean up:

clean:
	$(RM) *.obj

clobber: 
	$(RM) *.bak
	$(RM) *.dsk
	$(RM) *.exe
	$(RM) *.obj
	$(RM) *.swp

⌨️ 快捷键说明

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