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

📄 makefile

📁 又一个选择启动分区的程序源码
💻
字号:
# This makefile supports all UNIX-like systems.
# Uncomment one of the SYS definitions below, or
# use a make command like:
#	make SYS=esix
# (For compiling on MS-DOS, see make_msc.bat)
# (To compile on Minix, use:  make minix)
#
# Uncomment for ESIX  Sys.V/386 Rel. 3.2
#SYS=esix
# Uncomment for other Sys.V/386 systems (ISC,SCO,Intel...)
#SYS=i386
# Uncomment for MSDOS with UNIX-style make (i.e. ndmake)
#SYS=msdos
# Uncomment for other UNIX-like systems
SYS=unix

# Compilation options:
CC=cc
CFLAGS=-g

FILES1=	README pfdisk.man Changes Makefile pfdisk.c syscodes.c \
 syscodes.h sysdep.h s_esix.c s_i386.c s_unix.c s_msdos.c
FILES2= bootmenu.doc pfdisk.doc SStor.txt bootmenu.asm bootauto.asm \
 asm2bin.bat make_msc.bat bootmenu.hex bootauto.hex hex2bin.c

OBJS= pfdisk.o syscodes.o s_$(SYS).o
LSRC= pfdisk.c syscodes.c s_$(SYS).c

test: pfdisk
	(echo "g 1222 15 34";\
	 echo "1  4   0  127 MS-LOSS";\
	 echo "4 99 128 1221 ESIX";\
	 echo "a 4"; echo l; echo wq \
	) | pfdisk /dev/null

all: pfdisk bootmenu.bin bootauto.bin

pfdisk: $(OBJS)
	$(CC) $(CFLAGS) -o $@ $(OBJS)

minix: bootmenu.bin bootauto.bin
	$(CC) $(CFLAGS) -o pfdisk $(LSRC)

pfdisk.o : syscodes.h sysdep.h
syscodes.o : syscodes.h
s_$(SYS).o : sysdep.h

lint: $(LSRC)
	lint $(CFLAGS) $(LSRC)

bootmenu.bin: hex2bin
	hex2bin <bootmenu.hex >bootmenu.bin
bootauto.bin: hex2bin
	hex2bin <bootauto.hex >bootauto.bin

pfdisk.doc: pfdisk.man
	nroff tmac.an pfdisk.man |col -bh >pfdisk.doc

clean:
	rm -f *.o

Shar1.out: Head1.txt $(FILES1)
	(cat Head1.txt ; shar -v -c $(FILES1)) > $@
Shar2.out: Head2.txt $(FILES2)
	(cat Head2.txt ; shar -v -c $(FILES2)) > $@

⌨️ 快捷键说明

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