1995-05-01 09:08:02 +01:00
|
|
|
LIB= disk
|
|
|
|
SRCS= blocks.c disklabel.c dkcksum.c chunk.c disk.c change.c \
|
|
|
|
create_chunk.c rules.c write_disk.c data.c
|
1995-04-29 00:57:04 +01:00
|
|
|
|
1995-05-01 09:08:02 +01:00
|
|
|
CFLAGS+= -Wall -g
|
1995-05-04 08:00:57 +01:00
|
|
|
CLEANFILES+= tmp.c tst01 tst01.o data.c
|
1995-05-01 09:08:02 +01:00
|
|
|
VPATH= ${.CURDIR}/../../sbin/disklabel
|
|
|
|
NOPROFILE= yes
|
|
|
|
NOSHARED= yes
|
1995-04-30 07:19:32 +01:00
|
|
|
|
1995-05-01 09:08:02 +01:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
1995-04-30 07:09:29 +01:00
|
|
|
BOOTS=/usr/mdec
|
1995-05-03 07:30:59 +01:00
|
|
|
|
1995-05-10 06:57:04 +01:00
|
|
|
data.c: libdisk.h ${BOOTS}/boot1 ${BOOTS}/boot2
|
1995-04-30 07:09:29 +01:00
|
|
|
file2c 'const unsigned char boot1[] = {' '};' \
|
|
|
|
< ${BOOTS}/boot1 > tmp.c
|
|
|
|
file2c 'const unsigned char boot2[] = {' '};' \
|
|
|
|
< ${BOOTS}/boot2 >> tmp.c
|
1995-05-01 09:08:02 +01:00
|
|
|
mv tmp.c data.c
|
1995-04-29 05:00:57 +01:00
|
|
|
|
1995-05-03 07:30:59 +01:00
|
|
|
tst01: tst01.o libdisk.a
|
|
|
|
cc ${CFLAGS} -static tst01.o -o tst01 libdisk.a
|