Edit

IABSD.fr/src/distrib/special/disklabel

Branch :

  • Show log

    Commit

  • Author : bluhm
    Date : 2021-09-21 18:36:09
    Hash : 160d5e5c
    Message : The cflags -DSUN_CYLCHECK -DSUN_AAT0 were removed accidently. Put them back in special like in the main disklabel Makefile. OK deraadt@

  • Makefile
  • #	$OpenBSD: Makefile,v 1.13 2021/09/21 18:36:09 bluhm Exp $
    
    PROG=	disklabel
    SRCS=	disklabel.c dkcksum.c editor.c manual.c
    DPADD=	${LIBUTIL}
    LDADD=	-lutil
    MAN=	disklabel.8 disklabel.5
    
    CLEANFILES += disklabel.cat8 manual.c
    
    .include <bsd.own.mk>
    
    .ifdef NOMAN
    manual.c:
    	(echo 'const unsigned char manpage[] = {'; \
    	echo 'no manual' | gzip -9c | hexdump -ve '"0x" 1/1 "%02x,"'; \
    	echo '};'; echo 'const int manpage_sz = sizeof(manpage);') > manual.c
    .else
    disklabel.cat8:	disklabel.8
    	mandoc -Tascii ${.ALLSRC} > ${.TARGET}
    
    manual.c:	disklabel.cat8
    	(echo 'const unsigned char manpage[] = {'; \
    	cat disklabel.cat8 | gzip -9c | hexdump -ve '"0x" 1/1 "%02x,"'; \
    	echo '};'; echo 'const int manpage_sz = sizeof(manpage);') > manual.c
    .endif
    
    .if ${MACHINE} == "sparc64"
    CFLAGS+= -DSUN_CYLCHECK -DSUN_AAT0
    .endif
    
    .ifdef NOPIC
    CFLAGS+= -DSTATICLINKING
    .endif
    
    .PATH:	${.CURDIR}/../../../sbin/disklabel
    .include <bsd.prog.mk>