From af83fa703c134aa38db0de2662d3a56819a501f9 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 3 May 1995 06:30:59 +0000 Subject: Make the target for tst01 more sensible. Remove bogus targets. Allocate partition letters as follows: lowest offset "flags & CHUNK_IS_ROOT" gets 'a', lowest offset "subtype==FS_SWAP" gets 'b' the rest is allocated in offset order from this sequence "defghab". This will generally make sense. Added rules to complain if more than one CHUNK_IS_ROOT or more than one FS_SWAP per FreeBSD chunk. Set CHUNK_IS_ROOT on the 'a' partition in Open_Disk. Run Fixup_Names in Open_Disk. --- lib/libdisk/Makefile | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'lib/libdisk/Makefile') diff --git a/lib/libdisk/Makefile b/lib/libdisk/Makefile index aaf6116..78ddded 100644 --- a/lib/libdisk/Makefile +++ b/lib/libdisk/Makefile @@ -10,21 +10,8 @@ NOSHARED= yes .include -# Custom weird and funky targets that we'll leave here. -test: tst01 - cp tst01 /0 - ./tst01 wd1 - -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.c: file2c 'const unsigned char boot1[] = {' '};' \ < ${BOOTS}/boot1 > tmp.c @@ -32,5 +19,5 @@ data.c: < ${BOOTS}/boot2 >> tmp.c mv tmp.c data.c -tst01: tst01.o - cc ${CFLAGS} -static tst01.o -o tst01 -L${.CURDIR} -ldisk +tst01: tst01.o libdisk.a + cc ${CFLAGS} -static tst01.o -o tst01 libdisk.a -- cgit v1.1