3 ### Build script for nsict-utils
5 ### (c) 2008 Mark Wooding
8 ###----- Licensing notice ---------------------------------------------------
10 ### This program is free software; you can redistribute it and/or modify
11 ### it under the terms of the GNU General Public License as published by
12 ### the Free Software Foundation; either version 2 of the License, or
13 ### (at your option) any later version.
15 ### This program is distributed in the hope that it will be useful,
16 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ### GNU General Public License for more details.
20 ### You should have received a copy of the GNU General Public License
21 ### along with this program; if not, write to the Free Software Foundation,
22 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 ###--------------------------------------------------------------------------
36 AM_CFLAGS = $(mLib_CFLAGS) $(catacomb_CFLAGS)
40 space_SOURCES = space.c
41 dist_man_MANS += space.1
46 dist_man_MANS += not.1
49 bin_PROGRAMS += if-mtu
50 if_mtu_SOURCES = if-mtu.c
51 dist_man_MANS += if-mtu.1
54 bin_PROGRAMS += getpass
55 getpass_SOURCES = getpass.c
56 dist_man_MANS += getpass.1
59 bin_PROGRAMS += xtitle
60 xtitle_SOURCES = xtitle.c
66 pause_SOURCES = pause.c
67 pause_LDADD = $(mLib_LIBS) $(MATH_LIBS)
68 dist_man_MANS += pause.1
74 stamp_SOURCES = stamp.c
75 stamp_LDADD = $(mLib_LIBS)
76 dist_man_MANS += stamp.1
81 bin_PROGRAMS += locking
82 locking_SOURCES = locking.c
83 locking_LDADD = $(mLib_LIBS)
84 dist_man_MANS += locking.1
91 gorp_LDADD = $(catacomb_LIBS)
92 dist_man_MANS += gorp.1
97 sbin_PROGRAMS += qmail-checkspam
98 qmail_checkspam_SOURCES = qmail-checkspam.c
99 qmail_checkspam_LDADD = -lspamc
100 dist_man_MANS += qmail-checkspam.8
105 bin_PROGRAMS += cdb-probe cdb-check-domain
106 cdb_probe_SOURCES = cdb-probe.c
107 cdb_probe_LDADD = -lcdb
108 cdb_check_domain_SOURCES = cdb-check-domain.c
109 cdb_check_domain_LDADD = -lcdb
110 dist_man_MANS += cdb-probe.1 cdb-check-domain.1
113 ## x86 model identification
115 bin_PROGRAMS += x86-model
116 x86_model_SOURCES = x86-model.c
117 x86_model_LDADD = $(mLib_LIBS)
118 dist_man_MANS += x86-model.1
121 ###--------------------------------------------------------------------------
122 ### Tools in scripts.
129 ## Making substitutions.
130 confsubst = $(top_srcdir)/config/confsubst
131 V_SUBST = $(V_SUBST_$(V))
132 V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
133 V_SUBST_0 = @echo " SUBST $@";
134 SUBST = $(V_SUBST)$(confsubst)
136 PACKAGE=$(PACKAGE) VERSION=$(VERSION) \
142 EXTRA_DIST += config/confsubst
145 dist_bin_SCRIPTS += check-sender
146 dist_man_MANS += check-sender.1
148 dist_bin_SCRIPTS += buf
149 dist_man_MANS += buf.1
151 dist_bin_SCRIPTS += create
152 dist_man_MANS += create.1
154 dist_bin_SCRIPTS += z
160 bin_SCRIPTS += inplace
161 CLEANFILES += inplace
162 EXTRA_DIST += inplace.in
163 dist_man_MANS += inplace.1
165 inplace: inplace.in Makefile
166 $(SUBST) $(srcdir)/inplace.in >$@.new $(SUBSTITUTIONS) && \
167 chmod +x $@.new && mv $@.new $@
175 bin_SCRIPTS += cdb-assign
176 dist_man_MANS += cdb-assign.1
179 CLEANFILES += cdb-assign
180 EXTRA_DIST += cdb-assign.in
182 cdb-assign: cdb-assign.in Makefile
183 $(SUBST) $(srcdir)/cdb-assign.in >$@.new $(SUBSTITUTIONS) && \
184 chmod +x $@.new && mv $@.new $@
187 bin_SCRIPTS += cdb-list
188 dist_man_MANS += cdb-list.1
191 CLEANFILES += cdb-list
192 EXTRA_DIST += cdb-list.in
194 cdb-list: cdb-list.in Makefile
195 $(SUBST) $(srcdir)/cdb-list.in >$@.new $(SUBSTITUTIONS) && \
196 chmod +x $@.new && mv $@.new $@
199 bin_SCRIPTS += cdb-map
200 dist_man_MANS += cdb-map.1
203 CLEANFILES += cdb-map
204 EXTRA_DIST += cdb-map.in
206 cdb-map: cdb-map.in Makefile
207 $(SUBST) $(srcdir)/cdb-map.in >$@.new $(SUBSTITUTIONS) && \
208 chmod +x $@.new && mv $@.new $@
215 sbin_SCRIPTS += shadowfix
216 CLEANFILES += shadowfix
217 EXTRA_DIST += shadowfix.in
219 shadowfix: shadowfix.in Makefile
220 $(SUBST) $(srcdir)/shadowfix.in >$@.new $(SUBSTITUTIONS) && \
221 chmod +x $@.new && mv $@.new $@
223 man_MANS += shadowfix.8
224 CLEANFILES += shadowfix.8
226 shadowfix.8: shadowfix.in
227 $(AM_V_GEN)pod2man --section 8 $(srcdir)/shadowfix.in \
228 >$@.new && mv $@.new $@
232 EXTRA_DIST += unfwd.in
233 dist_man_MANS += unfwd.1
235 unfwd: unfwd.in Makefile
236 $(SUBST) $(srcdir)/unfwd.in >$@.new $(SUBSTITUTIONS) && \
237 chmod +x $@.new && mv $@.new $@
243 dist_perlmod_DATA = MdwOpt.pm
249 bin_SCRIPTS += splitconf
250 CLEANFILES += splitconf
251 EXTRA_DIST += splitconf.in
252 dist_man_MANS += splitconf.1
254 splitconf: splitconf.in Makefile
255 $(SUBST) $(srcdir)/splitconf.in >$@.new $(SUBSTITUTIONS) && \
256 chmod +x $@.new && mv $@.new $@
260 ###--------------------------------------------------------------------------
261 ### Other administrivia.
264 echo $(VERSION) >$(distdir)/RELEASE
266 EXTRA_DIST += config/auto-version
268 ###--------------------------------------------------------------------------
272 EXTRA_DIST += debian/rules
273 EXTRA_DIST += debian/copyright
274 EXTRA_DIST += debian/changelog
275 EXTRA_DIST += debian/control
277 ## What to install where.
278 EXTRA_DIST += debian/inst
280 ###----- That's all, folks --------------------------------------------------