diff options
author | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-04-04 17:48:02 +0000 |
---|---|---|
committer | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-04-04 17:48:02 +0000 |
commit | 756097f16a3b687008151fc2d0d61f443fbc7621 (patch) | |
tree | 8e1bdbba68e1d6aac756d8d19a4a8de327ca9b05 /usr.sbin/xntpd/parse/util/Makefile | |
parent | d9e7919357b420a8c7d666168c48396e453eae8c (diff) |
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>
Notes
Notes:
svn path=/head/; revision=7622
Diffstat (limited to 'usr.sbin/xntpd/parse/util/Makefile')
-rw-r--r-- | usr.sbin/xntpd/parse/util/Makefile | 61 |
1 files changed, 18 insertions, 43 deletions
diff --git a/usr.sbin/xntpd/parse/util/Makefile b/usr.sbin/xntpd/parse/util/Makefile index 99caacffa6df..ad9c0eb45470 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> |