summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/Makefile
diff options
context:
space:
mode:
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