120125784a
This compiler flag enforces that that people either mark variables static or use an external declarations for the variable, similar to how -Wmissing-prototypes works for functions. Due to the fact that Yacc/Lex generate code that cannot trivially be changed to not warn because of this (lots of yy* variables), add a NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this specific compiler warning. Announced on: toolchain@
48 lines
837 B
Makefile
48 lines
837 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.PATH: ${.CURDIR}/../hastd
|
|
|
|
PROG= hastctl
|
|
SRCS= activemap.c
|
|
SRCS+= crc32.c
|
|
SRCS+= ebuf.c
|
|
SRCS+= hast_checksum.c hast_compression.c hast_proto.c hastctl.c
|
|
SRCS+= lzf.c
|
|
SRCS+= metadata.c
|
|
SRCS+= nv.c
|
|
SRCS+= parse.y pjdlog.c
|
|
SRCS+= proto.c proto_common.c proto_uds.c
|
|
SRCS+= token.l
|
|
SRCS+= subr.c
|
|
SRCS+= y.tab.h
|
|
MAN= hastctl.8
|
|
|
|
NO_WFORMAT=
|
|
NO_WCAST_ALIGN=
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
|
CFLAGS+=-I${.CURDIR}/../hastd
|
|
CFLAGS+=-DHAVE_CAPSICUM
|
|
CFLAGS+=-DINET
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
CFLAGS+=-DINET6
|
|
.endif
|
|
# This is needed to have WARNS > 1.
|
|
CFLAGS+=-DYY_NO_UNPUT
|
|
CFLAGS+=-DYY_NO_INPUT
|
|
|
|
DPADD= ${LIBL} ${LIBUTIL}
|
|
LDADD= -ll -lutil
|
|
.if ${MK_OPENSSL} != "no"
|
|
DPADD+= ${LIBCRYPTO}
|
|
LDADD+= -lcrypto
|
|
CFLAGS+=-DHAVE_CRYPTO
|
|
.endif
|
|
|
|
YFLAGS+=-v
|
|
|
|
CLEANFILES=y.tab.c y.tab.h y.output
|
|
|
|
.include <bsd.prog.mk>
|