summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-04-04 17:48:02 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-04-04 17:48:02 +0000
commit329838744ce93564672143b61e8424abbacac162 (patch)
tree8e1bdbba68e1d6aac756d8d19a4a8de327ca9b05 /usr.sbin/xntpd
parent05fe559358c921dbcacaf2736bfe0faa84d0a66c (diff)
downloadFreeBSD-src-329838744ce93564672143b61e8424abbacac162.zip
FreeBSD-src-329838744ce93564672143b61e8424abbacac162.tar.gz
Bring down the old version of Makefile from the Attic and replace with this
bmake version of Makefile to build and install dcfd. Submitted by: Vincenzo Capuano <VCAPUANO@vmprofs.esoc.esa.de>
Diffstat (limited to 'usr.sbin/xntpd')
-rw-r--r--usr.sbin/xntpd/parse/util/Makefile61
1 files changed, 18 insertions, 43 deletions
diff --git a/usr.sbin/xntpd/parse/util/Makefile b/usr.sbin/xntpd/parse/util/Makefile
index 99caacf..ad9c0eb 100644
--- a/usr.sbin/xntpd/parse/util/Makefile
+++ b/usr.sbin/xntpd/parse/util/Makefile
@@ -1,49 +1,24 @@
#
-# /src/NTP/REPOSITORY/v3/parse/util/Makefile.tmpl,v 3.11 1993/11/17 13:34:12 kardel Exp
+# $Id$
#
-COMPILER= gcc
-DEFS= -DSYS_FREEBSD -DSYS_386BSD
-DEFS_OPT=-DDEBUG
-DEFS_LOCAL= $(DEFS_OPT) -DREFCLOCK -DPPSPPS -DKERNEL_PLL
-CLOCKDEFS= -DLOCAL_CLOCK -DAS2201PPS -DCHU -DGOES -DIRIG -DMX4200PPS -DOMEGA -DPSTCLK -DTPRO -DWWVBCLK -DMSFEESPPS -DLEITCH
-INCL=
-COPTS= -O2
-INSTALL= install
-BINDIR= /usr/local/bin
-#
-CFLAGS= $(COPTS) $(DEFS) $(DEFS_LOCAL) $(INCL) -I../../include
-CC= $(COMPILER)
-TOP=../../
-#
-EXECS=parsetest testdcf dcfd
-all:
- @echo $(DEFS) $(DEFS_LOCAL) $(CLOCKDEFS) | \
- awk '/-DSTREAM/ && /-DPARSE/ && /-DCLOCK_RAWDCF/ && ( /-DSYS_SUNOS/ || /-DSYS_SOLARIS/ ) { makeit = 1 } \
- END { if (makeit) \
- { print "$(MAKE) $(MFLAGS) MFLAGS=\"$(MFLAGS)\" parsetest"; } \
- }' | \
- sh
- @echo $(DEFS) $(DEFS_LOCAL) $(CLOCKDEFS) | \
- awk '/-DPARSE/ && /-DCLOCK_RAWDCF/ && ( /-DSYS_SUNOS/ || /-DSYS_SOLARIS/ ) { makeit = 1 } \
- END { if (makeit) \
- { print "$(MAKE) $(MFLAGS) MFLAGS=\"$(MFLAGS)\" testdcf"; } \
- }' | \
- sh
- @echo $(DEFS) $(DEFS_LOCAL) $(CLOCKDEFS) | \
- awk '/-DPARSE/ && /-DCLOCK_RAWDCF/ && ( /-DSYS_SUNOS/ || /-DSYS_SOLARIS/ ) { makeit = 1 } \
- END { if (makeit) \
- { print "$(MAKE) $(MFLAGS) MFLAGS=\"$(MFLAGS)\" dcfd"; } \
- }' | \
- sh
+CFLAGS+= -I${.CURDIR}/../../include
+CFLAGS+= -DNTP_POSIX_SOURCE -DUSE_PROTOTYPES
+CFLAGS+= -DSYS_FREEBSD -DBOEDER -DHAVE_TERMIOS -DHAVE_BSD_NICE
+
+.if exists(${.CURDIR}/../../lib/obj)
+LDADD+= -L${.CURDIR}/../../lib/obj
+DPADD+= -L${.CURDIR}/../../lib/obj/libntp.a
+.else
+LDADD+= -L${.CURDIR}/../../lib
+DPADD+= -L${.CURDIR}/../../lib/libntp.a
+.endif
-clean:
- -@rm -f $(EXECS) *.o
+LDADD+= -lntp
+BINDIR= /usr/sbin
+PROG= dcfd
-distclean: clean
- -@rm -f *.orig *.rej .version Makefile
+SRCS= dcfd.c
+NOMAN=
-install:
- @echo "--- DCF77 utilities should be installed manually"
- @#[ -f testdcf ] && $(INSTALL) -c -m 0755 testdcf $(BINDIR) || true
- @#[ -f dcfd ] && $(INSTALL) -c -m 0755 dcfd $(BINDIR) || true
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud