summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/conf/Config.TIGER
blob: c757ad90e186af7e6923a4bfcf8ac0e8d36452c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# Edit this file to reflect information specific to your installation.
# Then run 'make makeconfig' to propagate the information to all the makefiles,
# Config.TIGER,v 3.1 1993/07/06 01:03:45 jbj Exp

#
# Definitions for the library:
#
# You must define one of -DXNTP_BIG_ENDIAN, -DXNTP_LITTLE_ENDIAN
#	or -DXNTP_AUTO_ENDIAN depending on which way your machine's
#	bytes go for the benefit of the DES routine.  Most things
#	sold by DEC, the NS32x32 and the 80386 deserve a
#	-DXNTP_LITTLE_ENDIAN.  Most of the rest of the world does
#	it the other way.  If in doubt, pick one, compile
#	everything and run authstuff/authcert < authstuff/certdata.
#	If everything fails, do it the other way.
#
#	Under BSD, you may define -DXNTP_NETINET_ENDIAN to use
#	netinet/in.h to determine which of -DXNTP_BIG_ENDIAN and
#	XNTP_LITTLE_ENDIAN should be used.
#
LIBDEFS= -DXNTP_LITTLE_ENDIAN

#
# Library loading:
#
# If you don't want your library ranlib'ed, chose the second line
#
RANLIB=		ranlib
#RANLIB=	: # ar does the work of ranlib under System V

#
# Definitions for programs:
# 
# If your compiler doesn't understand the declaration `signed char',
#       add -DNO_SIGNED_CHAR_DECL.  Your `char' data type had better be
#	signed.  If you don't know what the compiler knows, try it
#	without the flag.  If you get a syntax error on line 13 of
#	ntp.h, add it.  Note that `signed char' is an ANSIism.  Most
#	older, pcc-derived compilers will need this flag.
#
# If your library already has 's_char' defined, add -DS_CHAR_DEFINED.
#
# For SunOS 3.x, add -DSUN_3_3_STINKS (otherwise it will complain
#	about broadaddr and will hang if you run without a -d flag
#	on the command line.  I actually can't believe the latter
#	bug.  If it hangs on your system with the flag defined, peruse
#	xntpd/ntp_io.c for some rude comments about SunOS 3.5 and try it
#	the other way).  This flag affects xntpd only.
#
# For Ultrix 2.0, add -DULT_2_0_SUCKS.  This OS has the same hanging
#	bug as SunOS 3.5 (is this an original 4.2 bug?) and in addition
#	has some strangeness concerning signal masks.  Ultrix 2.3 doesn't
#	have these problems.  If you're running something in between
#	you're on your own.  This flag affects xntpd only.
#
# For SunOS 4.x, add -DDOSYNCTODR_SUCKS to include the code in ntp_util.c
#	that sets the battery clock at the same time that it updates
#	the driftfile. It does this by revving up the niceness, then
#	sets the time of day to the current time of day. Ordinarily,
#	you would need this only on non-networked machines.
#
# There are three ways to pry loose the kernel variables tick and tickadj
#	needed by ntp_unixclock.c.  One reads kmem and and is enabled
#	with -DREADKMEM.  One uses Sun's libkvm and is enabled with
#	-DUSELIBKVM. The last one uses builtin defaults and is enabled
#	with -DNOKMEM. Therefore, one of -DUSELIBKVM, -DREADKMEM or
#	-DNOKMEM must be defined. Suns and recent BSD should use
#	-DUSELIBKVM; others should use -DREADKMEM. If -DUSELIBKVM, use
#	the DAEMONLIBS below to get the kernel routines.
#
# If your gethostbyname() routine isn't based on the DNS resolver (and,
#	in particular, h_errno doesn't exist) add a -DNODNS.  There
#	doesn't seem to be a good way to detect this automatically which
#	works in all cases.  This flag affects xntpres only.
#
# The flag -DDEBUG includes some debugging code.
#
# The flag -DREFCLOCK causes the basic reference clock support to be
#	compiled into the daemon.  If you set this you will also want
#	to configure the particular clock drivers you want in the
#	CLOCKDEFS= line below.  This flag affects xntpd only.
#
# There is an occurance of a call to rindex() in the daemon.  You may
#	have to include a -Drindex=strrchr to get this to load right.
#
# To change the location of the configuration file, use a
#	-DCONFIG_FILE=\\"/local/etc/ntp.conf\\" or something similar.
#
# Under HP-UX, you must use either -Dhpux70 or -Dhpux80 as,
#	well as -DNOKMEM
#
# If your library doesn't include the vsprintf() routine, define
#	NEED_VSPRINTF.
#
# Define -DPPS to include support for a 1-pps signal. Define -DPPSDEV
#	to include a device driver for it. The latter requires a
#	serial port and either a line discipline or STREAMS module.
#	The PPS signal may also be generated via a reference clock
#	module like DCF77. In that case a special define is required for
#	the reference clock module (only one source of PPS signal should
#	be used)
#
DEFS= -DREFCLOCK -DS_CHAR_DEFINED -DREADKMEM -DDEBUG -DPLL -DXNTP_RETROFIT_STDLIB -DHAVE_UNISTD_H

#
#  Authentication types supported.  Choose from DES and MD5.  If you
#  have a 680x0 type CPU and GNU-C, also choose -DFASTMD5
#
AUTHDEFS=-DDES -DMD5

#
# Clock support definitions (these only make sense if -DREFCLOCK used):
#
# Define -DLOCAL_CLOCK to include local pseudo-clock support
#
# Define -DPST to include support for the PST 1020 WWV/H receiver.
#
# Define -DWWVB to include support for the Spectracom 8170 WWVB receiver.
#
# Define -DCHU to include support for a driver to receive the CHU
#	timecode.  Note that to compile in CHU support you must
#	previously have installed the CHU serial line discipline in
#	the kernel of the machine you are doing the compile on.
#
# Define -DDCF to include support for the DCF77 receiver. This code
#	requires a special STREAMS module found in the kernel directory.
# Define -DDCFPPS for PPS support via the DCF77 receiver
#	(see also: -DPPS)
#
# Define -DGOES to support a Kinemetrics TrueTime 468-DC GOES receiver.
#
CLOCKDEFS= -DLOCAL_CLOCK -DPST -DWWVB -DGOES -DCHU

#
# For MIPS 4.3BSD or RISCos 4.0, include a -lmld to get the nlist() routine.
#	If USELIBKVM is defined above, include a -lkvm to get the kernel
#	routines.
#
#DAEMONLIBS= -lmld
#DAEMONLIBS= -lkvm
DAEMONLIBS=

#
# Name resolver library.  Included when loading xntpres, which calls
# gethostbyname().  Define this if you would rather use a different
# version of the routine than the one in libc.a
#
#RESLIB= -lresolv
RESLIB=

#
# Option flags for the C compiler.  A -g if you are uncomfortable
#
COPTS= -O

#
# C compiler to use.  gcc will work, but avoid the -fstrength-reduce option
# if the version is 1.35 or earlier (using this option caused incorrect
# code to be generated in the DES key permutation code, and perhaps
# elsewhere).
#
COMPILER= gcc -Wall -g -O2 -finline-functions -fdelayed-branch -fomit-frame-pointer
#COMPILER= cc

#
# Directory into which binaries should be installed
#
BINDIR=	/usr/local/bin

#
# Special library for adjtime emulation. Used under HP-UX
# (remember to run make in the adjtime directory)
#
#ADJLIB= ../adjtime/libadjtime.a
ADJLIB=

#
# BSD emulation library. In theory, this fixes signal semantics under
# HP-UX, but it doesn't work with 8.0 on a 9000s340, so there is now
# a work-around in the code (compiled when hpux80 is defined). In other
# words, use this for HP-UX prior to 8.0.
#
#COMPAT= -lBSD
COMPAT=

OpenPOWER on IntegriCloud