aboutsummaryrefslogtreecommitdiff
path: root/lib/libdisk/Makefile
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1996-03-17 23:20:09 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1996-03-17 23:20:09 +0000
commit6db03f75e492142103348d28df4b1bed04c67275 (patch)
tree91e6ca17fa9bb679cd22162b87ebd1b6aae493db /lib/libdisk/Makefile
parent3176ba80c82a5e0825e0580fa31253e580c34206 (diff)
Notes
Diffstat (limited to 'lib/libdisk/Makefile')
-rw-r--r--lib/libdisk/Makefile39
1 files changed, 38 insertions, 1 deletions
diff --git a/lib/libdisk/Makefile b/lib/libdisk/Makefile
index 328ab2b88fab..b5be7b030cbe 100644
--- a/lib/libdisk/Makefile
+++ b/lib/libdisk/Makefile
@@ -9,16 +9,53 @@ NOPROFILE= yes
NOSHARED= yes
NOPIC= yes
+MAN3= libdisk.3
+MLINKS+= libdisk.3 \
+ libdisk.3 Open_Disk.3 \
+ 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
+
.include <bsd.lib.mk>
BOOTS=/usr/mdec
-data.c: libdisk.h ${BOOTS}/boot1 ${BOOTS}/boot2
+data.c: ${.CURDIR}/libdisk.h ${BOOTS}/boot1 ${BOOTS}/boot2
file2c 'const unsigned char boot1[] = {' '};' \
< ${BOOTS}/boot1 > tmp.c
file2c 'const unsigned char boot2[] = {' '};' \
< ${BOOTS}/boot2 >> tmp.c
mv tmp.c data.c
+beforeinstall:
+ @${ECHO} installing libdisk.h
+ @cd ${.CURDIR}; \
+ cmp -s libdisk.h ${DESTDIR}/usr/include/libdisk.h || \
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 libdisk.h \
+ ${DESTDIR}/usr/include/libdisk.h
+
+
tst01: tst01.o libdisk.a
cc ${CFLAGS} -static tst01.o -o tst01 libdisk.a