1996-08-30 03:51:09 +02:00
|
|
|
# $Id: Makefile,v 1.16 1996/06/23 13:11:51 bde Exp $
|
1996-05-08 01:19:49 +02:00
|
|
|
|
1995-05-01 10:08:02 +02: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 01:57:04 +02:00
|
|
|
|
1996-06-23 15:11:59 +02:00
|
|
|
CFLAGS+= -Wall
|
1995-05-04 09:00:57 +02:00
|
|
|
CLEANFILES+= tmp.c tst01 tst01.o data.c
|
1995-05-01 10:08:02 +02:00
|
|
|
VPATH= ${.CURDIR}/../../sbin/disklabel
|
|
|
|
NOPROFILE= yes
|
|
|
|
NOSHARED= yes
|
1996-03-17 20:02:07 +01:00
|
|
|
NOPIC= yes
|
1995-04-30 08:19:32 +02:00
|
|
|
|
1996-03-18 00:20:09 +01:00
|
|
|
MAN3= libdisk.3
|
1996-03-18 16:15:42 +01:00
|
|
|
MLINKS+= libdisk.3 Open_Disk.3 \
|
1996-03-18 00:20:09 +01:00
|
|
|
libdisk.3 Clone_Disk.3 \
|
|
|
|
libdisk.3 Free_Disk.3 \
|
|
|
|
libdisk.3 Debug_Disk.3 \
|
|
|
|
libdisk.3 Set_Bios_Geom.3 \
|
|
|
|
libdisk.3 Delete_Chunk.3 \
|
|
|
|
libdisk.3 Collapse_Disk.3 \
|
|
|
|
libdisk.3 Collapse_Chunk.3 \
|
|
|
|
libdisk.3 Create_Chunk.3 \
|
|
|
|
libdisk.3 All_FreeBSD.3 \
|
|
|
|
libdisk.3 CheckRules.3 \
|
|
|
|
libdisk.3 Disk_Names.3 \
|
|
|
|
libdisk.3 Set_Boot_Mgr.3 \
|
|
|
|
libdisk.3 Set_Boot_Blocks.3 \
|
|
|
|
libdisk.3 Write_Disk.3 \
|
|
|
|
libdisk.3 Cyl_Aligned.3 \
|
|
|
|
libdisk.3 Next_Cyl_Aligned.3 \
|
|
|
|
libdisk.3 Prev_Cyl_Aligned.3 \
|
|
|
|
libdisk.3 Track_Aligned.3 \
|
|
|
|
libdisk.3 Next_Track_Aligned.3 \
|
|
|
|
libdisk.3 Prev_Track_Aligned.3 \
|
|
|
|
libdisk.3 Create_Chunk_DWIM.3 \
|
|
|
|
libdisk.3 MakeDev.3 \
|
|
|
|
libdisk.3 MakeDevDisk.3 \
|
|
|
|
libdisk.3 ShowChunkFlags.3 \
|
|
|
|
libdisk.3 ChunkCanBeRoot.3
|
|
|
|
|
1995-05-01 10:08:02 +02:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
1995-04-30 08:09:29 +02:00
|
|
|
BOOTS=/usr/mdec
|
1995-05-03 08:30:59 +02:00
|
|
|
|
1996-03-18 00:20:09 +01:00
|
|
|
data.c: ${.CURDIR}/libdisk.h ${BOOTS}/boot1 ${BOOTS}/boot2
|
1995-04-30 08:09:29 +02:00
|
|
|
file2c 'const unsigned char boot1[] = {' '};' \
|
|
|
|
< ${BOOTS}/boot1 > tmp.c
|
|
|
|
file2c 'const unsigned char boot2[] = {' '};' \
|
|
|
|
< ${BOOTS}/boot2 >> tmp.c
|
1996-05-08 01:19:49 +02:00
|
|
|
mv -f tmp.c data.c
|
1995-04-29 06:00:57 +02:00
|
|
|
|
1996-03-18 00:20:09 +01:00
|
|
|
beforeinstall:
|
1996-08-30 03:51:09 +02:00
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/libdisk.h \
|
1996-03-18 00:20:09 +01:00
|
|
|
${DESTDIR}/usr/include/libdisk.h
|
|
|
|
|
|
|
|
|
1995-05-03 08:30:59 +02:00
|
|
|
tst01: tst01.o libdisk.a
|
|
|
|
cc ${CFLAGS} -static tst01.o -o tst01 libdisk.a
|