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
73 bin_PROGRAMS += mtimeout
74 mtimeout_SOURCES = mtimeout.c
75 mtimeout_LDADD = $(mLib_LIBS) $(MATH_LIBS)
76 dist_man_MANS += mtimeout.1
82 stamp_SOURCES = stamp.c
83 stamp_LDADD = $(mLib_LIBS)
84 dist_man_MANS += stamp.1
89 bin_PROGRAMS += locking
90 locking_SOURCES = locking.c
91 locking_LDADD = $(mLib_LIBS)
92 dist_man_MANS += locking.1
99 gorp_LDADD = $(catacomb_LIBS)
100 dist_man_MANS += gorp.1
105 sbin_PROGRAMS += qmail-checkspam
106 qmail_checkspam_SOURCES = qmail-checkspam.c
107 qmail_checkspam_LDADD = -lspamc
108 dist_man_MANS += qmail-checkspam.8
113 bin_PROGRAMS += cdb-probe cdb-check-domain
114 cdb_probe_SOURCES = cdb-probe.c
115 cdb_probe_LDADD = -lcdb
116 cdb_check_domain_SOURCES = cdb-check-domain.c
117 cdb_check_domain_LDADD = -lcdb
118 dist_man_MANS += cdb-probe.1 cdb-check-domain.1
121 ## x86 model identification
123 bin_PROGRAMS += x86-model
124 x86_model_SOURCES = x86-model.c
125 x86_model_LDADD = $(mLib_LIBS)
126 dist_man_MANS += x86-model.1
129 ###--------------------------------------------------------------------------
130 ### Tools in scripts.
137 ## Making substitutions.
138 confsubst = $(top_srcdir)/config/confsubst
139 V_SUBST = $(V_SUBST_$(V))
140 V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
141 V_SUBST_0 = @echo " SUBST $@";
142 SUBST = $(V_SUBST)$(confsubst)
144 PACKAGE=$(PACKAGE) VERSION=$(VERSION) \
150 EXTRA_DIST += config/confsubst
153 dist_bin_SCRIPTS += check-sender
154 dist_man_MANS += check-sender.1
156 dist_bin_SCRIPTS += buf
157 dist_man_MANS += buf.1
159 dist_bin_SCRIPTS += create
160 dist_man_MANS += create.1
162 dist_bin_SCRIPTS += z
168 bin_SCRIPTS += inplace
169 CLEANFILES += inplace
170 EXTRA_DIST += inplace.in
171 dist_man_MANS += inplace.1
173 inplace: inplace.in Makefile
174 $(SUBST) $(srcdir)/inplace.in >$@.new $(SUBSTITUTIONS) && \
175 chmod +x $@.new && mv $@.new $@
183 bin_SCRIPTS += cdb-assign
184 dist_man_MANS += cdb-assign.1
187 CLEANFILES += cdb-assign
188 EXTRA_DIST += cdb-assign.in
190 cdb-assign: cdb-assign.in Makefile
191 $(SUBST) $(srcdir)/cdb-assign.in >$@.new $(SUBSTITUTIONS) && \
192 chmod +x $@.new && mv $@.new $@
195 bin_SCRIPTS += cdb-list
196 dist_man_MANS += cdb-list.1
199 CLEANFILES += cdb-list
200 EXTRA_DIST += cdb-list.in
202 cdb-list: cdb-list.in Makefile
203 $(SUBST) $(srcdir)/cdb-list.in >$@.new $(SUBSTITUTIONS) && \
204 chmod +x $@.new && mv $@.new $@
207 bin_SCRIPTS += cdb-map
208 dist_man_MANS += cdb-map.1
211 CLEANFILES += cdb-map
212 EXTRA_DIST += cdb-map.in
214 cdb-map: cdb-map.in Makefile
215 $(SUBST) $(srcdir)/cdb-map.in >$@.new $(SUBSTITUTIONS) && \
216 chmod +x $@.new && mv $@.new $@
223 sbin_SCRIPTS += shadowfix
224 CLEANFILES += shadowfix
225 EXTRA_DIST += shadowfix.in
227 shadowfix: shadowfix.in Makefile
228 $(SUBST) $(srcdir)/shadowfix.in >$@.new $(SUBSTITUTIONS) && \
229 chmod +x $@.new && mv $@.new $@
231 man_MANS += shadowfix.8
232 CLEANFILES += shadowfix.8
234 shadowfix.8: shadowfix.in
235 $(AM_V_GEN)pod2man --section 8 $(srcdir)/shadowfix.in >$@.new && \
240 EXTRA_DIST += unfwd.in
241 dist_man_MANS += unfwd.1
243 unfwd: unfwd.in Makefile
244 $(SUBST) $(srcdir)/unfwd.in >$@.new $(SUBSTITUTIONS) && \
245 chmod +x $@.new && mv $@.new $@
251 dist_perlmod_DATA = MdwOpt.pm
257 bin_SCRIPTS += splitconf
258 CLEANFILES += splitconf
259 EXTRA_DIST += splitconf.in
260 dist_man_MANS += splitconf.1
262 splitconf: splitconf.in Makefile
263 $(SUBST) $(srcdir)/splitconf.in >$@.new $(SUBSTITUTIONS) && \
264 chmod +x $@.new && mv $@.new $@
268 ###--------------------------------------------------------------------------
269 ### Other administrivia.
272 echo $(VERSION) >$(distdir)/RELEASE
274 EXTRA_DIST += config/auto-version
276 ###--------------------------------------------------------------------------
280 EXTRA_DIST += debian/rules
281 EXTRA_DIST += debian/copyright
282 EXTRA_DIST += debian/changelog
283 EXTRA_DIST += debian/control
285 ## What to install where.
286 EXTRA_DIST += debian/inst
288 ###----- That's all, folks --------------------------------------------------