1995-05-01 08:08:02 +00:00
|
|
|
LIB= disk
|
|
|
|
SRCS= blocks.c disklabel.c dkcksum.c chunk.c disk.c change.c \
|
|
|
|
create_chunk.c rules.c write_disk.c data.c
|
1995-04-28 23:57:04 +00:00
|
|
|
|
1995-05-01 08:08:02 +00:00
|
|
|
CFLAGS+= -Wall -g
|
|
|
|
CLEANFILES+= tmp.c tst01 tst01.o
|
|
|
|
VPATH= ${.CURDIR}/../../sbin/disklabel
|
|
|
|
NOPROFILE= yes
|
|
|
|
NOSHARED= yes
|
1995-04-30 06:19:32 +00:00
|
|
|
|
1995-05-01 08:08:02 +00:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
|
|
|
# Custom weird and funky targets that we'll leave here.
|
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
|
1995-05-01 08:08:02 +00:00
|
|
|
data.c:
|
1995-04-30 06:09:29 +00:00
|
|
|
file2c 'const unsigned char boot1[] = {' '};' \
|
|
|
|
< ${BOOTS}/boot1 > tmp.c
|
|
|
|
file2c 'const unsigned char boot2[] = {' '};' \
|
|
|
|
< ${BOOTS}/boot2 >> tmp.c
|
1995-05-01 08:08:02 +00:00
|
|
|
mv tmp.c data.c
|
1995-04-29 04:00:57 +00:00
|
|
|
|
1995-05-01 08:08:02 +00:00
|
|
|
tst01: tst01.o
|
|
|
|
cc ${CFLAGS} -static tst01.o -o tst01 -L${.CURDIR} -ldisk
|