home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
pc
/
bootutil
/
bootmenu.lzh
/
bootmenu13.1
/
Makefile
< prev
next >
Wrap
Makefile
|
1991-03-12
|
2KB
|
70 lines
# 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 Everex Systems (ESIX) Sys.V/386 Rel. 3.2
#SYS=esix
# Uncomment for Interactive Systems (ISC) Sys.V/386
#SYS=i386
# Uncomment for MSDOS with UNIX-style make (i.e. ndmake)
#SYS=msdos
# Uncomment for other UNIX-compatible systems (for testing)
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 "2 129 128 255 Minix";\
echo "4 99 256 1221 ESIX";\
echo "a 4"; echo l; echo 'q!' \
) | 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 $(FILES1)) > $@
Shar2.out: Head2.txt $(FILES2)
(cat Head2.txt ; shar $(FILES2)) > $@
Dist.tar: HeadTar.txt $(FILES1) $(FILES2)
tar cf $@ HeadTar.txt $(FILES1) $(FILES2)