From b86a741dd0aee75cf8131bbe4a59ce0df9b4f719 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 30 Apr 1995 06:09:29 +0000 Subject: Now we do writes too. --- lib/libdisk/Makefile | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'lib/libdisk/Makefile') diff --git a/lib/libdisk/Makefile b/lib/libdisk/Makefile index 4128a29..18d1cba 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 -- cgit v1.1