Home | History | Annotate | Line # | Download | only in ntp
Makefile.inc revision 1.11
      1  1.11    kardel #	$NetBSD: Makefile.inc,v 1.11 2012/02/01 20:48:01 kardel Exp $
      2   1.1    kardel 
      3   1.1    kardel .if !defined(NTP_MAKEFILE_INC)
      4   1.1    kardel NTP_MAKEFILE_INC=yes
      5   1.1    kardel 
      6   1.1    kardel USE_FORT?= yes	# network client/server
      7   1.1    kardel 
      8   1.9     joerg CWARNFLAGS+=	-Wno-missing-noreturn
      9   1.6     joerg CWARNFLAGS.clang+=	-Wno-unneeded-internal-declaration \
     10   1.7     joerg 			-Wno-format-security \
     11   1.6     joerg 			-Wno-parentheses -Wno-constant-logical-operand
     12   1.6     joerg 
     13  1.11    kardel WARNS?=	4
     14  1.11    kardel 
     15   1.1    kardel 
     16   1.1    kardel .include <bsd.own.mk>
     17   1.1    kardel 
     18   1.1    kardel IDIST=		${NETBSDSRCDIR}/external/bsd/ntp/dist
     19   1.1    kardel NTP_SRCDIR=	${NETBSDSRCDIR}/external/bsd/ntp
     20   1.1    kardel NTP_HTMLDIR=	/usr/share/doc/html/ntp
     21   1.1    kardel 
     22   1.1    kardel SYSCONFDIR=/etc
     23   1.1    kardel LOCALSTATEDIR=/var
     24   1.1    kardel 
     25   1.1    kardel CPPFLAGS+=-DHAVE_CONFIG_H
     26   1.1    kardel CPPFLAGS+=-I${NTP_SRCDIR}/include \
     27   1.1    kardel 	  -I${IDIST}/include \
     28   1.1    kardel 	  -I${IDIST}/lib/isc/include \
     29   1.1    kardel 	  -I${IDIST}/lib/isc/unix/include \
     30   1.1    kardel 	  -I${IDIST}/lib/isc/nothreads/include
     31   1.1    kardel 
     32   1.1    kardel .if defined(PROG)
     33   1.1    kardel LIBNTP!=	cd ${.CURDIR}/../../lib/libntp && ${PRINTOBJDIR}
     34   1.1    kardel LIBISC!=	cd ${.CURDIR}/../../lib/libiscntp && ${PRINTOBJDIR}
     35   1.1    kardel LIBOPTS!=	cd ${.CURDIR}/../../lib/libopts && ${PRINTOBJDIR}
     36   1.1    kardel LIBPARSE!=	cd ${.CURDIR}/../../lib/libparse && ${PRINTOBJDIR}
     37   1.1    kardel 
     38   1.1    kardel LDADD+=		-L${LIBNTP} -lntp -L${LIBOPTS} -lopts
     39   1.1    kardel DPADD+=		${LIBNTP}/libntp.a ${LIBOPTS}/libopts.a
     40   1.1    kardel 
     41   1.1    kardel .if (${MKCRYPTO} != "no")
     42   1.1    kardel LDADD+=		-lcrypto -lcrypt
     43   1.1    kardel DPADD+=		${LIBCRYPTO} ${LIBCRYPT}
     44   1.1    kardel .endif
     45   1.1    kardel 
     46   1.3    kardel .if ("${MKMDNS}" != "no")
     47   1.3    kardel CPPFLAGS+=-DHAVE_DNSREGISTRATION=1
     48   1.3    kardel LDADD+=-ldns_sd
     49   1.3    kardel .endif
     50   1.3    kardel 
     51   1.1    kardel SRCS+=	version.c
     52   1.1    kardel 
     53   1.1    kardel CLEANFILES+=version.c version.o
     54   1.1    kardel version.c: ${LIBNTP}/libntp.a ${.CURDIR}/../../scripts/mkver ${.CURDIR}/../../importdate
     55   1.1    kardel 	${_MKTARGET_CREATE}
     56   1.1    kardel 	${HOST_SH} ${.CURDIR}/../../scripts/mkver ${PROG} > /dev/null
     57   1.1    kardel 
     58   1.1    kardel .endif # defined(PROG)
     59   1.1    kardel 
     60   1.3    kardel .if (${MKCRYPTO} != "no")
     61   1.3    kardel CPPFLAGS+=-DOPENSSL
     62   1.3    kardel .endif
     63   1.3    kardel 
     64   1.3    kardel .if ("${MKINET6}" != "no")
     65   1.4    kardel CPPFLAGS+=-DWANT_IPV6
     66   1.4    kardel .else
     67   1.4    kardel CPPFLAGS+=-DISC_PLATFORM_NEEDIN6ADDRANY
     68   1.3    kardel .endif
     69   1.3    kardel 
     70   1.1    kardel .if exists(${.CURDIR}/../../Makefile.inc)
     71   1.1    kardel .include "${.CURDIR}/../../Makefile.inc"
     72   1.1    kardel .endif
     73   1.1    kardel 
     74   1.2  christos .endif
     75