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 += xtitle
55 xtitle_SOURCES = xtitle.c
61 pause_SOURCES = pause.c
62 pause_LDADD = $(mLib_LIBS) $(MATH_LIBS)
63 dist_man_MANS += pause.1
69 stamp_SOURCES = stamp.c
70 stamp_LDADD = $(mLib_LIBS)
71 dist_man_MANS += stamp.1
76 bin_PROGRAMS += locking
77 locking_SOURCES = locking.c
78 locking_LDADD = $(mLib_LIBS)
79 dist_man_MANS += locking.1
86 gorp_LDADD = $(catacomb_LIBS)
87 dist_man_MANS += gorp.1
92 sbin_PROGRAMS += qmail-checkspam
93 qmail_checkspam_SOURCES = qmail-checkspam.c
94 qmail_checkspam_LDADD = -lspamc
95 dist_man_MANS += qmail-checkspam.8
100 bin_PROGRAMS += cdb-probe cdb-check-domain
101 cdb_probe_SOURCES = cdb-probe.c
102 cdb_probe_LDADD = -lcdb
103 cdb_check_domain_SOURCES = cdb-check-domain.c
104 cdb_check_domain_LDADD = -lcdb
105 dist_man_MANS += cdb-probe.1 cdb-check-domain.1
108 ###--------------------------------------------------------------------------
109 ### Tools in scripts.
116 ## Making substitutions.
117 confsubst = $(top_srcdir)/config/confsubst
119 PACKAGE=$(PACKAGE) VERSION=$(VERSION) \
124 EXTRA_DIST += config/confsubst
127 dist_bin_SCRIPTS += check-sender
128 dist_man_MANS += check-sender.1
130 dist_bin_SCRIPTS += buf
131 dist_man_MANS += buf.1
133 dist_bin_SCRIPTS += create
134 dist_man_MANS += create.1
136 dist_bin_SCRIPTS += z
142 bin_SCRIPTS += inplace
143 CLEANFILES += inplace
144 EXTRA_DIST += inplace.in
145 dist_man_MANS += inplace.1
147 inplace: inplace.in Makefile
148 $(confsubst) $(srcdir)/inplace.in >$@.new $(SUBSTITUTIONS) && \
149 chmod +x $@.new && mv $@.new $@
157 bin_SCRIPTS += cdb-assign
158 dist_man_MANS += cdb-assign.1
161 CLEANFILES += cdb-assign
162 EXTRA_DIST += cdb-assign.in
164 cdb-assign: cdb-assign.in Makefile
165 $(confsubst) $(srcdir)/cdb-assign.in >$@.new $(SUBSTITUTIONS) && \
166 chmod +x $@.new && mv $@.new $@
169 bin_SCRIPTS += cdb-list
170 dist_man_MANS += cdb-list.1
173 CLEANFILES += cdb-list
174 EXTRA_DIST += cdb-list.in
176 cdb-list: cdb-list.in Makefile
177 $(confsubst) $(srcdir)/cdb-list.in >$@.new $(SUBSTITUTIONS) && \
178 chmod +x $@.new && mv $@.new $@
181 bin_SCRIPTS += cdb-map
182 dist_man_MANS += cdb-map.1
185 CLEANFILES += cdb-map
186 EXTRA_DIST += cdb-map.in
188 cdb-map: cdb-map.in Makefile
189 $(confsubst) $(srcdir)/cdb-map.in >$@.new $(SUBSTITUTIONS) && \
190 chmod +x $@.new && mv $@.new $@
197 sbin_SCRIPTS += shadowfix
198 CLEANFILES += shadowfix
199 EXTRA_DIST += shadowfix.in
201 shadowfix: shadowfix.in Makefile
202 $(confsubst) $(srcdir)/shadowfix.in >$@.new $(SUBSTITUTIONS) && \
203 chmod +x $@.new && mv $@.new $@
205 man_MANS += shadowfix.8
206 CLEANFILES += shadowfix.8
208 shadowfix.8: shadowfix.in
209 pod2man --section 8 $(srcdir)/shadowfix.in >$@.new && mv $@.new $@
213 EXTRA_DIST += unfwd.in
214 dist_man_MANS += unfwd.1
216 unfwd: unfwd.in Makefile
217 $(confsubst) $(srcdir)/unfwd.in >$@.new $(SUBSTITUTIONS) && \
218 chmod +x $@.new && mv $@.new $@
224 dist_perlmod_DATA = MdwOpt.pm
230 bin_SCRIPTS += splitconf
231 CLEANFILES += splitconf
232 EXTRA_DIST += splitconf.in
233 dist_man_MANS += splitconf.1
235 splitconf: splitconf.in Makefile
236 $(confsubst) $(srcdir)/splitconf.in >$@.new $(SUBSTITUTIONS) && \
237 chmod +x $@.new && mv $@.new $@
241 ###----- That's all, folks --------------------------------------------------