]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - Makefile.am
Add the two patches from the port in net/ntp/files to fix compilation
[FreeBSD/FreeBSD.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I sntp/m4 -I sntp/libevent/m4 -I sntp/libopts/m4
2
3 NULL =
4
5 SUBDIRS =               \
6         scripts         \
7         include         \
8         libntp          \
9         libparse        \
10         ntpd            \
11         ntpdate         \
12         ntpdc           \
13         ntpq            \
14         ntpsnmpd        \
15         parseutil       \
16         adjtimed        \
17         clockstuff      \
18         kernel          \
19         util            \
20         sntp            \
21         tests           \
22         $(NULL)
23
24 DISTCHECK_CONFIGURE_FLAGS = -C --with-sntp
25
26 EXTRA_DIST =                    \
27         $(srcdir)/COPYRIGHT     \
28         ChangeLog               \
29         CommitLog               \
30         CommitLog-4.1.0         \
31         NEWS                    \
32         NOTES.y2kfixes          \
33         README.bk               \
34         README.hackers          \
35         README.patches          \
36         README.refclocks        \
37         README.versions         \
38         TODO                    \
39         WHERE-TO-START          \
40         bootstrap               \
41         build                   \
42         config.h.in             \
43         dot.emacs               \
44         flock-build             \
45         packageinfo.sh          \
46         readme.y2kfixes         \
47         results.y2kfixes        \
48         \
49         conf                    \
50         html                    \
51         lib/isc                 \
52         libjsmn                 \
53         ports                   \
54         \
55         deps-ver                \
56         \
57         $(NULL)
58
59 CLEANFILES =
60 DISTCLEANFILES = .gcc-warning
61
62 # HMS: Keep .gcc-warning first, as that way it gets printed first.
63 BUILT_SOURCES =                         \
64         .gcc-warning                    \
65         libtool                         \
66         html/.datecheck                 \
67         sntp/built-sources-only         \
68         $(srcdir)/COPYRIGHT             \
69         $(srcdir)/.checkChangeLog       \
70         $(NULL)
71
72 .gcc-warning:
73         @echo "Compiling with GCC now generates lots of new warnings."
74         @echo " "
75         @echo "Don't be concerned. They're just warnings."
76         @echo " "
77         @echo "Don't send bug reports about the warnings, either."
78         @echo " "
79         @echo "Feel free to send patches that fix these warnings, though."
80         @echo " "
81         @sleep 1
82         @touch $@
83
84 html/.datecheck: FRC.html
85         cd $(srcdir)/html && \
86         ../scripts/build/checkHtmlFileDates
87
88 libtool: $(LIBTOOL_DEPS)
89         ./config.status --recheck
90
91 sntp/built-sources-only: FRC.sntp
92         @cd sntp && $(MAKE) $(AM_MAKEFLAGS) built-sources-only
93
94 $(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html
95         { echo "This file is automatically generated from html/copyright.html" ; \
96           lynx -dump $(srcdir)/html/copyright.html ;} > COPYRIGHT.new \
97         && mv -f COPYRIGHT.new $(srcdir)/COPYRIGHT
98
99 COPYRIGHT-please: $(srcdir)/COPYRIGHT
100         @: do-nothing action to prevent default \
101            This target is needed by sntp/Makefile.am on decrepit \
102            FreeBSD 6.x make which fails with "make COPYRIGHT" \
103            configured in $(srcdir) but "make ./COPYRIGHT" succeeds. \
104            Rather than determine our $(srcdir) from sntp/Makefile.am \
105            COPYRIGHT-please serves as a fixed target.
106
107 $(srcdir)/.checkChangeLog: $(srcdir)/ChangeLog $(srcdir)/scripts/build/checkChangeLog
108         cd $(srcdir) && \
109         ./scripts/build/checkChangeLog
110
111 dist-hook:
112         @find $(distdir) -type d -name SCCS -print | xargs rm -rf
113
114 install-data-local:
115         ( cd $(srcdir) && find html -name SCCS -prune -o -type d \
116                 -exec $(INSTALL) -d $(DESTDIR)$(htmldir)/{} ";" )
117         ( cd $(srcdir) && find html -name SCCS -prune -o -type f \
118                 -exec $(INSTALL_DATA) {} $(DESTDIR)$(htmldir)/{} ";" )
119
120 uninstall-local:
121                 rm -rf $(DESTDIR)$(htmldir)/html
122
123 CommitLog: FRC.CommitLog
124         cd $(srcdir)                                    \
125         && $(PATH_TEST) -e CommitLog                    \
126                 -a SCCS/s.ChangeSet -ot CommitLog       \
127         || scripts/build/genCommitLog
128
129 # HMS: The following seems to be a work-in-progress...
130
131 CVO=`$(srcdir)/sntp/libevent/build-aux/config.guess`
132
133 .buildcvo:
134         echo "$(CVO)" > .buildcvo
135
136 .checkcvo: .buildcvo FRC.checkcvo
137         @if [ "`cat .buildcvo`" != "$(CVO)" ];then      \
138                 echo "This directory was configured for `cat .buildcvo`"; \
139                 echo "but this machine is a $(CVO)";    \
140                 exit 1; \
141         fi
142
143 BHOST=`(hostname || uname -n)`
144
145 .buildhost:
146         echo "$(BHOST)" > .buildhost
147
148 .checkhost: .buildhost FRC.checkhost
149         @if [ "`cat .buildhost`" != "$(BHOST)" ];then   \
150                 echo "Built on `cat .buildhost` but this is $(BHOST)"; \
151                 echo " "; \
152         fi
153
154 FRC.CommitLog FRC.checkcvo FRC.checkhost FRC.distwarn FRC.html FRC.sntp:
155         @: do-nothing action prevents any default
156
157 # HMS: what was I trying to do with this?
158 #dot.emacs: FRC.distwarn