1995-04-28 23:57:04 +00:00
|
|
|
.PATH: /usr/src/sbin/disklabel
|
|
|
|
OBJS= tst01.o blocks.o disklabel.o dkcksum.o chunk.o disk.o change.o \
|
1995-04-30 06:09:29 +00:00
|
|
|
create_chunk.o rules.o write_disk.o data.o
|
1995-04-29 04:00:57 +00:00
|
|
|
CFLAGS+= -Wall -g
|
1995-04-28 23:57:04 +00:00
|
|
|
|
1995-04-30 06:19:32 +00:00
|
|
|
all: tst01
|
|
|
|
|
1995-04-28 23:57:04 +00:00
|
|
|
test: tst01
|
|
|
|
cp tst01 /0
|
1995-04-29 07:21:14 +00:00
|
|
|
./tst01 wd1
|
1995-04-28 23:57:04 +00:00
|
|
|
|
1995-04-30 06:09:29 +00:00
|
|
|
fd: tst01
|
|
|
|
-umount /dev/fd1
|
|
|
|
-umount /mnt
|
|
|
|
mount /dev/fd1 /mnt
|
|
|
|
strip tst01
|
|
|
|
gzip < tst01 > /mnt/stand/disklayout
|
|
|
|
chmod 755 /mnt/stand/disklayout
|
|
|
|
-umount /mnt
|
|
|
|
|
|
|
|
BOOTS=/usr/mdec
|
|
|
|
data.o:
|
|
|
|
file2c 'const unsigned char boot1[] = {' '};' \
|
|
|
|
< ${BOOTS}/boot1 > tmp.c
|
|
|
|
file2c 'const unsigned char boot2[] = {' '};' \
|
|
|
|
< ${BOOTS}/boot2 >> tmp.c
|
|
|
|
cc ${CFLAGS} -o data.o -c tmp.c
|
1995-04-30 22:51:05 +00:00
|
|
|
rm -f tmp.c
|
1995-04-30 06:09:29 +00:00
|
|
|
|
1995-04-28 23:57:04 +00:00
|
|
|
tst01: ${OBJS}
|
1995-04-30 06:09:29 +00:00
|
|
|
#cc ${CFLAGS} -DREADLINE -static -o tst01 ${OBJS} -lreadline -ltermcap
|
|
|
|
cc ${CFLAGS} -static -o tst01 ${OBJS}
|
1995-04-29 04:00:57 +00:00
|
|
|
|
|
|
|
clean:
|
1995-04-30 22:51:05 +00:00
|
|
|
rm -f *.o *.core tst01 tmp.c
|