Reach-over Makefile machinery for ntp4 build.
This commit is contained in:
parent
ac8fa9c43d
commit
b6ce3cdec4
9
usr.sbin/ntp/Makefile
Normal file
9
usr.sbin/ntp/Makefile
Normal file
@ -0,0 +1,9 @@
|
||||
# $NetBSD: Makefile,v 1.1 2000/03/29 13:13:42 simonb Exp $
|
||||
|
||||
SUBDIR= libntp ntpd ntpdate ntpdc ntpq ntptimeset ntptrace
|
||||
|
||||
all-ntpd all-ntpdate all-ntpdc all-ntpq all-ntptimeset all-ntptrace: all-libntp
|
||||
depend-ntpd depend-ntpdate depend-ntpdc depend-ntpq depend-ntptimeset \
|
||||
depend-ntptrace: depend-libntp
|
||||
|
||||
.include <bsd.subdir.mk>
|
23
usr.sbin/ntp/Makefile.inc
Normal file
23
usr.sbin/ntp/Makefile.inc
Normal file
@ -0,0 +1,23 @@
|
||||
# $NetBSD: Makefile.inc,v 1.1 2000/03/29 13:13:42 simonb Exp $
|
||||
|
||||
.if !defined(NTP_MAKEFILE_INC)
|
||||
NTP_MAKEFILE_INC=1
|
||||
|
||||
DIST= ${.CURDIR}/../../../dist/ntp
|
||||
|
||||
CPPFLAGS+= -I${.CURDIR}/../include -I${DIST}/include -DHAVE_CONFIG_H
|
||||
|
||||
.if !defined(LIB) || empty(LIB)
|
||||
LIBNTP!=cd ${.CURDIR}/../libntp; make print-objdir
|
||||
LDADD+= -L${LIBNTP} -lntp
|
||||
DPADD+= ${LIBNTP}/libntp.a
|
||||
.endif
|
||||
|
||||
NTPSRCDIR?= ${PROG}
|
||||
.PATH: ${DIST}/${NTPSRCDIR}
|
||||
|
||||
.if exists(${.CURDIR}/../../Makefile.inc)
|
||||
.include "${.CURDIR}/../../Makefile.inc"
|
||||
.endif
|
||||
|
||||
.endif # !defined(NTP_MAKEFILE_INC)
|
27
usr.sbin/ntp/libntp/Makefile
Normal file
27
usr.sbin/ntp/libntp/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# $NetBSD: Makefile,v 1.1 2000/03/29 13:13:43 simonb Exp $
|
||||
|
||||
LIB= ntp
|
||||
SRCS= a_md5encrypt.c adjtime.c atoint.c atolfp.c atouint.c \
|
||||
authencrypt.c authkeys.c authparity.c authreadkeys.c authusekey.c \
|
||||
buftvtots.c caljulian.c calleapwhen.c caltontp.c calyearstart.c \
|
||||
clocktime.c clocktypes.c decodenetnum.c dofptoa.c dolfptoa.c \
|
||||
emalloc.c findconfig.c fptoa.c fptoms.c getopt.c hextoint.c \
|
||||
hextolfp.c humandate.c inttoa.c lib_strbuf.c machines.c md5c.c \
|
||||
memmove.c mfptoa.c mfptoms.c modetoa.c mstolfp.c msutotsf.c \
|
||||
msyslog.c netof.c numtoa.c numtohost.c octtoint.c prettydate.c \
|
||||
ranny.c refnumtoa.c statestr.c syssignal.c systime.c tsftomsu.c \
|
||||
tstotv.c tvtoa.c tvtots.c uglydate.c uinttoa.c utvtoa.c ymd2yd.c \
|
||||
mfp_mul.c binio.c ieee754io.c gpstolfp.c recvbuff.c iosignal.c \
|
||||
icom.c audio.c
|
||||
NTPSRCDIR=lib${LIB}
|
||||
|
||||
MKLINKLIB=no
|
||||
MKMAN= no
|
||||
MKPIC= no
|
||||
MKLINT= no # XXX
|
||||
|
||||
.if defined(CRYPTOPATH)
|
||||
.sinclude "${CRYPTOPATH}/lib/libntp/Makefile.frag"
|
||||
.endif
|
||||
|
||||
.include <bsd.lib.mk>
|
27
usr.sbin/ntp/ntpd/Makefile
Normal file
27
usr.sbin/ntp/ntpd/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# $NetBSD: Makefile,v 1.1 2000/03/29 13:13:43 simonb Exp $
|
||||
|
||||
PROG= ntpd
|
||||
SRCS= jupiter.h map_vme.c ntp_config.c ntp_control.c ntp_filegen.c \
|
||||
ntp_intres.c ntp_io.c ntp_loopfilter.c ntp_monitor.c ntp_peer.c \
|
||||
ntp_proto.c ntp_refclock.c ntp_request.c ntp_restrict.c ntp_timer.c \
|
||||
ntp_util.c ntpd.c refclock_acts.c refclock_arbiter.c refclock_arc.c \
|
||||
refclock_as2201.c refclock_atom.c refclock_bancomm.c \
|
||||
refclock_chronolog.c refclock_chu.c refclock_conf.c refclock_datum.c \
|
||||
refclock_dumbclock.c refclock_fg.c refclock_gpsvme.c refclock_heath.c \
|
||||
refclock_hpgps.c refclock_irig.c refclock_jupiter.c refclock_leitch.c \
|
||||
refclock_local.c refclock_msfees.c refclock_mx4200.c refclock_nmea.c \
|
||||
refclock_oncore.c refclock_palisade.c refclock_palisade.h \
|
||||
refclock_parse.c refclock_pcf.c refclock_pst.c refclock_ptbacts.c \
|
||||
refclock_shm.c refclock_tpro.c refclock_trak.c refclock_true.c \
|
||||
refclock_ulink.c refclock_usno.c refclock_wwv.c refclock_wwvb.c
|
||||
|
||||
SRCS+= version.c
|
||||
CLEANFILES+=version.c version.o .version
|
||||
|
||||
LDADD+= -lm
|
||||
DPADD+= ${LIBM}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
version.c: ${OBJS:S/version.o//} ${LIBNTP}/libntp.a
|
||||
sh ${.CURDIR}/../scripts/mkver ntpd
|
12
usr.sbin/ntp/ntpdate/Makefile
Normal file
12
usr.sbin/ntp/ntpdate/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
# $NetBSD: Makefile,v 1.1 2000/03/29 13:13:44 simonb Exp $
|
||||
|
||||
PROG= ntpdate
|
||||
SRCS= ntpdate.c
|
||||
|
||||
SRCS+= version.c
|
||||
CLEANFILES+=version.c version.o .version
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
version.c: ${OBJS:S/version.o//} ${LIBNTP}/libntp.a
|
||||
sh ${.CURDIR}/../scripts/mkver ntpd
|
12
usr.sbin/ntp/ntpdc/Makefile
Normal file
12
usr.sbin/ntp/ntpdc/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
# $NetBSD
|
||||
|
||||
PROG= ntpdc
|
||||
SRCS= ntpdc.c ntpdc_ops.c
|
||||
|
||||
SRCS+= version.c
|
||||
CLEANFILES+=version.c version.o .version
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
version.c: ${OBJS:S/version.o//} ${LIBNTP}/libntp.a
|
||||
sh ${.CURDIR}/../scripts/mkver ntpd
|
12
usr.sbin/ntp/ntpq/Makefile
Normal file
12
usr.sbin/ntp/ntpq/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
# $NetBSD: Makefile,v 1.1 2000/03/29 13:13:44 simonb Exp $
|
||||
|
||||
PROG= ntpq
|
||||
SRCS= ntpq.c ntpq_ops.c
|
||||
|
||||
SRCS+= version.c
|
||||
CLEANFILES+=version.c version.o .version
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
version.c: ${OBJS:S/version.o//} ${LIBNTP}/libntp.a
|
||||
sh ${.CURDIR}/../scripts/mkver ntpd
|
13
usr.sbin/ntp/ntptimeset/Makefile
Normal file
13
usr.sbin/ntp/ntptimeset/Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
# $NetBSD: Makefile,v 1.1 2000/03/29 13:13:45 simonb Exp $
|
||||
|
||||
PROG= ntptimeset
|
||||
SRCS= ntptimeset.c ntptime_config.c
|
||||
|
||||
SRCS+= version.c
|
||||
NTPSRCDIR=ntpdate
|
||||
CLEANFILES+=version.c version.o .version
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
version.c: ${OBJS:S/version.o//} ${LIBNTP}/libntp.a
|
||||
sh ${.CURDIR}/../scripts/mkver ntpd
|
12
usr.sbin/ntp/ntptrace/Makefile
Normal file
12
usr.sbin/ntp/ntptrace/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
# $NetBSD: Makefile,v 1.1 2000/03/29 13:13:45 simonb Exp $
|
||||
|
||||
PROG= ntptrace
|
||||
SRCS= ntptrace.c
|
||||
|
||||
SRCS+= version.c
|
||||
CLEANFILES+=version.c version.o .version
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
version.c: ${OBJS:S/version.o//} ${LIBNTP}/libntp.a
|
||||
sh ${.CURDIR}/../scripts/mkver ntpd
|
Loading…
Reference in New Issue
Block a user