aboutsummaryrefslogtreecommitdiff
path: root/lib/libdisk/Makefile
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1995-04-30 06:09:29 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1995-04-30 06:09:29 +0000
commit2d5caf92d02f897309ee81ae08a8682d79f805dd (patch)
treef8d26742c300c84c1cf43cea8a683c9bf6851301 /lib/libdisk/Makefile
parentaf9c31e108330a38eb6dd753de2bd3bf77e59ca7 (diff)
Notes
Diffstat (limited to 'lib/libdisk/Makefile')
-rw-r--r--lib/libdisk/Makefile22
1 files changed, 20 insertions, 2 deletions
diff --git a/lib/libdisk/Makefile b/lib/libdisk/Makefile
index 4128a2966cf8..18d1cbae34cd 100644
--- a/lib/libdisk/Makefile
+++ b/lib/libdisk/Makefile
@@ -1,14 +1,32 @@
.PATH: /usr/src/sbin/disklabel
OBJS= tst01.o blocks.o disklabel.o dkcksum.o chunk.o disk.o change.o \
- create_chunk.o rules.o write_disk.o
+ create_chunk.o rules.o write_disk.o data.o
CFLAGS+= -Wall -g
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.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
+
tst01: ${OBJS}
- cc ${CFLAGS} -static -o tst01 ${OBJS} -lreadline -ltermcap
+ #cc ${CFLAGS} -DREADLINE -static -o tst01 ${OBJS} -lreadline -ltermcap
+ cc ${CFLAGS} -static -o tst01 ${OBJS}
clean:
rm -f *.o *.core tst01