1130b656e5
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
29 lines
473 B
Makefile
29 lines
473 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
CFLAGS+= -I${.CURDIR}/../include
|
|
|
|
.if exists(${.OBJDIR}/../lib)
|
|
LDADD+= -L${.OBJDIR}/../lib
|
|
DPADD+= ${.OBJDIR}/../lib/libntp.a
|
|
.else
|
|
LDADD+= -L${.CURDIR}/../lib
|
|
DPADD+= ${.CURDIR}/../lib/libntp.a
|
|
.endif
|
|
|
|
LDADD+= -lntp
|
|
|
|
PROG= ntpdate
|
|
MAN8= ${.CURDIR}/../doc/ntpdate.8
|
|
CLEANFILES+= .version version.c
|
|
|
|
SRCS= ntpdate.c version.c
|
|
|
|
beforedepend: version.c
|
|
|
|
version.c: ${.CURDIR}/../VERSION
|
|
sh -e ${.CURDIR}/../scripts/mkversion ntpdate
|
|
|
|
.include <bsd.prog.mk>
|