2000-05-02 16:01:10 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.2 2000/05/02 12:01:10 simonb Exp $
|
2000-03-29 17:13:42 +04:00
|
|
|
|
|
|
|
.if !defined(NTP_MAKEFILE_INC)
|
|
|
|
NTP_MAKEFILE_INC=1
|
|
|
|
|
2000-05-02 16:01:10 +04:00
|
|
|
NTPDOCDIR?= ${HTMLDOCDIR}/ntp
|
2000-03-29 17:13:42 +04:00
|
|
|
|
2000-05-02 16:01:10 +04:00
|
|
|
.if exists(${.CURDIR}/../../../dist/ntp)
|
|
|
|
DIST= ${.CURDIR}/../../../dist/ntp
|
|
|
|
.elif exists(${.CURDIR}/../../../../dist/ntp)
|
|
|
|
DIST= ${.CURDIR}/../../../../dist/ntp
|
|
|
|
.else
|
|
|
|
# error here?
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${.CURDIR}/../include -I${DIST}/include -DHAVE_CONFIG_H
|
2000-03-29 17:13:42 +04:00
|
|
|
|
2000-05-02 16:01:10 +04:00
|
|
|
.if defined(PROG)
|
|
|
|
LIBNTP!= cd ${.CURDIR}/../libntp; make print-objdir
|
|
|
|
LDADD+= -L${LIBNTP} -lntp
|
|
|
|
DPADD+= ${LIBNTP}/libntp.a
|
2000-03-29 17:13:42 +04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
NTPSRCDIR?= ${PROG}
|
2000-05-02 16:01:10 +04:00
|
|
|
.PATH: ${DIST}/${NTPSRCDIR}
|
2000-03-29 17:13:42 +04:00
|
|
|
|
|
|
|
.if exists(${.CURDIR}/../../Makefile.inc)
|
|
|
|
.include "${.CURDIR}/../../Makefile.inc"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif # !defined(NTP_MAKEFILE_INC)
|