mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 15:44:04 +01:00
24 lines
608 B
Makefile
24 lines
608 B
Makefile
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
|
|
|
|
CFLAGS+= -Wall -g
|
|
CLEANFILES+= tmp.c tst01 tst01.o data.c
|
|
VPATH= ${.CURDIR}/../../sbin/disklabel
|
|
NOPROFILE= yes
|
|
NOSHARED= yes
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
BOOTS=/usr/mdec
|
|
|
|
data.c: 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
|
|
|
|
tst01: tst01.o libdisk.a
|
|
cc ${CFLAGS} -static tst01.o -o tst01 libdisk.a
|