MAKEFILE
资源名称:bootmenu.zip [点击查看]
上传用户:yeshiping1
上传日期:2007-01-06
资源大小:29k
文件大小:2k
源码类别:
磁盘编程
开发平台:
Others
- # 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)) > $@