summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/kernel/Makefile.tmpl
blob: c40f810d5e657f0e9e95d1ff0a6e9da8f5f9947b (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
#
# /src/NTP/REPOSITORY/v3/kernel/Makefile.tmpl,v 3.6 1994/01/25 19:04:35 kardel Exp
#
# parse routine that could be used in two places
#
COMPILER= cc
COPTS= -O
AUTHDEFS=-DDES
LIBDEFS= -DBIG_ENDIAN
RANLIB=		ranlib
INSTALL= install
CLOCKDEFS=
DEFS=
DEFS_OPT=
DEFS_LOCAL=
#
INCL=-I../include
CFLAGS=	$(COPTS) $(DEFS) $(DEFS_LOCAL) $(INCL)
CC=		$(COMPILER)
#

all:
	@echo $(DEFS) $(DEFS_LOCAL) $(CLOCKDEFS) | \
		awk '/-DREFCLOCK/ && ( /-D.*CLK/ || /-D.*PPS/ ) { makeit=1; }\
			END { if (makeit) \
				{ print ""; \
				  print "### STREAMS kernel modules ppsclock, ppsclocd or line disciplines must"; \
			 	  print "### be installed manually if needed"; \
				  print "### see kernel/README* for details"; \
				  print "### The parse refclock implementation has their own support in"; \
				  print "### parse/*."; } }'

clean:
	-@rm -f *~ *.o *.out *.ln make.log Makefile.bak \
		lintlib.errs lint.errs

distclean:	clean
	-@rm -f *.orig *.rej .version Makefile
OpenPOWER on IntegriCloud