Oh GACK! src-clean doesn't quite work that easily since cleandist rebuilds the
[unix-history] / contrib / xntpd / Config
CommitLineData
09169146
GW
1RANLIB= ranlib
2DEFS_LOCAL=-DREFCLOCK
3DEFS= -DSYS_FREEBSD -DSYS_386BSD
4AUTHDEFS= -DDES -DMD5
5CLOCKDEFS= -DLOCAL_CLOCK
6DAEMONLIBS= -lcrypt
7RESLIB=
8COPTS= -O2
9COMPILER= gcc
10LIBDEFS= -DXNTP_LITTLE_ENDIAN
11# This is the local configure file (distribution version).
12# You must modify it to fit your particular configuration
13# and name it Config.local
14# The following configuratiions can be auto-generated:
15#
16# make Config.local.green
17# make a Config.local that supports a local clock
18# (i.e. allow fallback to use of the CPU's own clock)
19# make Config.local.NO.clock
20# make a Config.local that supports no clocks
21#
22#
23# NOTE TO GREENHORNS
24#
25# For plug-'n-play and no radios or other complicated gadgetry,
26# use "make Config.local.green" as above.
27#
28# Following defines can be set in the DEFS_OPT= define:
29#
30# The flag -DDEBUG includes some debugging code. To use this, include
31# the define and start the daemon with one or more -d flags, depending
32# on your calibration of pearannoya. The daemon will not detach your
33# terminal in this case. Judicious use of grep will reduce the speaker
34# volume to bearable levels.
35#
36# To change the location of the configuration file, use a
37# -DCONFIG_FILE=\\"/local/etc/ntp.conf\\" or something similar.
38#
39# The -DSYSLOG_FILE defines allows logging messages that are normally
40# reported via syslof() in a file. The file name can be configured using
41# the configuration line "logfile <filename>" in CONFIG_FILE.
42#
43# There are three serial port system software interfaces, each of
44# which is peculiar to one or more Unix versions. Define
45# -DHAVE_SYSV_TTYS for basic System V compatibility; define -DSTREAM
46# for POSIX compatibility including System V Streams, and
47# HAVE_BSD_TTYS for 4.3bsd compatibility. Only one of these three
48# should be defined. If none are defined, HAVE_BSD_TTYS is assumed.
49# Usually these defines are already set correctly.
50#
51DEFS_OPT=-DDEBUG
52
53#
54# The DEFS_LOCAL define picks up all flags from DEFS_OPT (do not delete that)
55# and one of the following:
56#
57# The flag -DREFCLOCK causes the basic reference clock support to be
58# compiled into the daemon. If you set this you may also want to
59# configure the particular clock drivers you want in the CLOCKDEFS= line
60# below. This flag affects xntpd only. This define is included by
61# default when using the "make makeconfig" script.
62#
63# The next two sets of defines are meaningful only when radio clock
64# drivers or special 1-pps signals are to be used. For systems without
65# these features, these delicious complexities can be avoided. Ordinarily,
66# the "make makeconfig" script figures out which ones to use, but your
67# mileage may vary.
68#
69# There are three ways to utilize external 1-pps signals. Define
70# -DPPS to include just the pps routine, such as used by the DCF77(PARSE)
71# clock driver. Define -DPPSCLK to include a serial device driver
72# which avoids much of the jitter due to upper level port
73# processing. This requires a dedicated serial port and either the
74# tty_clock line discipline or tty_clk_streams module, both of
75# which are in the ./kernel directory. Define -DPPSCD to include a
76# special driver which intercepts carrier-detect transitions
77# generated by the pps signal. This requires a nondedicated serial
78# port and the ppsclock streams module in the ./kernel directory.
79# Only one of these three flags should be defined.
80#
81# The flag KERNEL_PLL causes code to be compiled for a special feature of
82# the kernel that (a) implements the phase-lock loop and (b) provides
83# a user interface to learn time, maximum error and estimated error.
84# See the file README.kern in the doc directory for further info.
85# This code is activated only if the relevant kernel features have
86# been configured; it does not affect operation of unmodified kernels.
87# To compile it, however, requires a few header files from the
88# special distribution.
89#
90# Note: following line must always start with DEFS_LOCAL= $(DEFS_OPT)
91DEFS_LOCAL= $(DEFS_OPT) -DREFCLOCK -DPPSPPS -DKERNEL_PLL
92
93#
94# Radio clock support definitions (these only make sense if -DREFCLOCK
95# used), which is normally the case. Note that a configuration can include
96# no clocks, more than one type of clock and even multiple clocks of the
97# same type.
98#
99# For most radio clocks operating with serial ports, accuracy can
100# be considerably improved through use of the tty_clk line
101# discipline or tty_clk_STREAMS streams module found in the
102# ./kernel directory. These gizmos capture a timestamp upon
103# occurrence of an intercept character and stuff it in the data
104# stream for the clock driver to munch. To select this mode,
105# postfix the driver name with the string CLK; that is, WWVB
106# becomes WWVBCLK. If more than one clock is in use, the CLK
107# postfix can be used with any or all of them.
108#
109# Alternatively, for the best accuracy, use the ppsclock streams
110# module in the ./ppsclock directory to steal the carrier-detect
111# transition and capture a precision timestamp. At present this
112# works only with SunOS 4.1.1 or later. To select this mode,
113# postfix the driver name with the string PPS; that is, AS2201
114# becomes AS2201PPS. If more than one clock is in use, the PPS
115# postfix should be used with only one of them. If any PPS
116# postfix is defined, the -DPPSPPS define should be used on the
117# DEFS above.
118#
119# Define -DLOCAL_CLOCK for a local pseudo-clock to masquerade as a
120# reference clock for those subnets without access to the real thing.
121# Works in all systems and requires no hardware support. This is defined
122# by default when using the "make makeconfig" script and greenhorn
123# configuraiton.
124#
125# Define -DPST for a PST/Traconex 1020 WWV/H receiver. The driver
126# supports both the CLK and PPS modes. It should work in all systems
127# with a serial port.
128#
129# Define -DWWVB for a Spectracom 8170 or Netclock/2 WWVB receiver. It
130# should work in all systems with a serial port. The driver supports
131# both the CLK and PPS modes if the requisite kernel support is installed.
132#
133# Define -DCHU for a special CHU receiver using an ordinary shortwave
134# radio. This requires the chu_clk line discipline or chu_clk_STREAMS
135# module in the ./kernel directory. At present, this driver works only
136# on SunOS4.1.x; operation in other systems has not been confirmed.
137# Construction details for a suitable modem can be found in the ./gadget
138# directory. The driver supports # neither the CLK nor PPS modes.
139#
140# Define -DPARSE for a DCF77/GPS(GENERIC) receiver. For best performance
141# this requires a special parsestreams STREAMS (SunOS 4.x) module in the
142# ./parse directory. Define -DPARSEPPS for PPS support via the
143# DCF77/GPS (GENERIC) receiver; also, define -DPPS in the DEFS above.
144# Define: -DCLOCK_MEINBERG for Meinberg clocks
145# -DCLOCK_SCHMID for Schmid receivers
146# -DCLOCK_DCF7000 for ELV DCF7000
147# -DCLOCK_RAWDCF for simple receivers (100/200ms pulses on Rx)
148# -DCLOCK_TRIMSV6 for Trimble SV6 GPS receiver
149#
150# Define -DMX4200PPS for a Magnavox 4200 GPS receiver. At present, this
151# driver works only on SunOS4.1.x with CPU serial ports only. The PPS
152# mode is required.
153#
154# Define -DAS2201 for an Austron 2200A or 2201A GPS receiver. It should
155# work in all systems with a serial port. The driver does not support the
156# CLK mode, but does support the PPS mode. If the radio is connected to
157# more than one machine, the PPS mode is required.
158#
159# Define -DGOES for a Kinemetrics/TrueTime 468-DC GOES receiver. This
160# driver is known to work with some other TrueTime products as well,
161# including the GPS-DC GPS receiver. It should work in all systems with
162# a serial port. The driver does not support the CLK mode, but does
163# support the PPS mode.
164#
165# Define -DOMEGA for a Kinemetrics/TrueTime OM-DC OMEGA receiver. It
166# should work in all systems with a serial port. The driver does not
167# support the CLK mode, but does support the PPS mode.
168#
169# Define -DTPRO for a KSI/Odetics TPRO-S IRIG-B timecode reader. This
170# requires the SunOS interface driver available from KSI. The driver
171# supports neither the CLK nor PPS modes.
172#
173# Define -DLEITCH for a Leitch CSD 5300 Master Clock System Driver for
174# the HP 5061B Cesium Clock. It should work in all systems with a serial
175# port. The driver does not support the CLK mode, but does support the
176# PPS mode.
177#
178# Define -DMSFEESPPS for an EES M201 MSF receiver. It currently only works
179# under SunOS 4.x with the PPSCD (ppsclock) STREAMS module, but the RCS
180# files on cl.cam.ac.uk still has support for CLK and CBREAK modes.
181#
182# Define -DIRIG for a IRIG-B timecode timecode using the audio codec of
183# the Sun SPARCstations. This requires a modified BSD audio driver and
184# exclusive access to the audio port. A memo describing how it works and
185# how to install the driver is in the README.irig file in the ./doc
186# directory.
187#
188# Note: The following defines result in compilation of all the above radio
189# clocks. This works on a Sun 4.1.x system which has tty_clk, chu_clk and
190# ppsclock STREAMS modules installed. If the trailing CLK and PPS suffixes
191# are removed and the IRIG, PARSE* and CLOCK* deleted, all of the rest compile
192# under Ultrix 4.2a/3. If the MX4200 is removed, all the rest compile on a DEC
193# OSF/1 Alpha.
194#
195CLOCKDEFS= -DLOCAL_CLOCK -DAS2201PPS -DCHU -DGOES -DIRIG -DMX4200PPS -DOMEGA -DPSTCLK -DTPRO -DWWVBCLK -DMSFEESPPS -DLEITCH
196
197#
198# Directory into which binaries should be installed (default /usr/local)
199#
200BINDIR= /usr/local/bin