summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/Makefile
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-05-03 06:30:59 +0000
committerphk <phk@FreeBSD.org>1995-05-03 06:30:59 +0000
commitaf83fa703c134aa38db0de2662d3a56819a501f9 (patch)
tree85625b62bb713949dc08bb262bb93941e5c861bb /lib/libdisk/Makefile
parent8f856ffcfd3b5de2138f01c117f1b30a60e0cf7d (diff)
downloadFreeBSD-src-af83fa703c134aa38db0de2662d3a56819a501f9.zip
FreeBSD-src-af83fa703c134aa38db0de2662d3a56819a501f9.tar.gz
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.
Diffstat (limited to 'lib/libdisk/Makefile')
-rw-r--r--lib/libdisk/Makefile19
1 files changed, 3 insertions, 16 deletions
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 <bsd.lib.mk>
-# 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
OpenPOWER on IntegriCloud