Makefile revision 1.14
1# $OpenBSD: Makefile,v 1.14 2023/08/14 08:56:20 kn Exp $ 2 3PROG= disklabel 4SRCS= disklabel.c dkcksum.c editor.c manual.c 5DPADD= ${LIBUTIL} 6LDADD= -lutil 7 8CLEANFILES += disklabel.cat8 manual.c 9 10.include <bsd.own.mk> 11 12.ifdef NOMAN 13manual.c: 14 (echo 'const unsigned char manpage[] = {'; \ 15 echo 'no manual' | gzip -9c | hexdump -ve '"0x" 1/1 "%02x,"'; \ 16 echo '};'; echo 'const int manpage_sz = sizeof(manpage);') > manual.c 17.else 18disklabel.cat8: disklabel.8 19 mandoc -Tascii ${.ALLSRC} > ${.TARGET} 20 21manual.c: disklabel.cat8 22 (echo 'const unsigned char manpage[] = {'; \ 23 cat disklabel.cat8 | gzip -9c | hexdump -ve '"0x" 1/1 "%02x,"'; \ 24 echo '};'; echo 'const int manpage_sz = sizeof(manpage);') > manual.c 25.endif 26 27.if ${MACHINE} == "sparc64" 28CFLAGS+= -DSUN_CYLCHECK -DSUN_AAT0 29.endif 30 31.ifdef NOPIC 32CFLAGS+= -DSTATICLINKING 33.endif 34 35.PATH: ${.CURDIR}/../../../sbin/disklabel 36.include <bsd.prog.mk> 37