]>
Commit | Line | Data |
---|---|---|
5ca9dc30 MT |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2012-2013 IPFire Network Development Team # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} | |
22 | AM_MAKEFLAGS = --no-print-directory | |
23 | AUTOMAKE_OPTIONS = color-tests | |
24 | ||
25 | # remove target it the command fails | |
26 | .DELETE_ON_ERROR: | |
27 | ||
28 | # keep itermediate files | |
29 | .SECONDARY: | |
30 | ||
f166708b | 31 | configdir = $(sysconfdir)/network |
bae37360 | 32 | bashcompletiondir= $(datadir)/bash-completion/completions |
5ca9dc30 | 33 | libexecdir = $(prefix)/lib |
01f2b2e4 | 34 | pkgconfigdir = $(libdir)/pkgconfig |
5ca9dc30 | 35 | pppdir = $(sysconfdir)/ppp |
5e84cd41 | 36 | systemconfigdir = $(datadir)/network |
5ca9dc30 MT |
37 | sysctldir = $(prefix)/lib/sysctl.d |
38 | tmpfilesdir = $(prefix)/lib/tmpfiles.d | |
39 | udevrulesdir = $(udevdir)/rules.d | |
40 | ||
41 | networkdir = $(libexecdir)/network | |
42 | helpersdir = $(networkdir)/helpers | |
43 | ||
44 | macrosdir = $(libexecdir)/firewall/macros | |
45 | ||
46 | hooksdir = $(networkdir)/hooks | |
7d2cb6d3 | 47 | hooks_configsdir = $(hooksdir)/configs |
5ca9dc30 MT |
48 | hooks_portsdir = $(hooksdir)/ports |
49 | hooks_zonesdir = $(hooksdir)/zones | |
50 | ||
de3cecef MT |
51 | triggersdir = $(networkdir)/triggers |
52 | ||
9c9d0585 | 53 | logdir = $(localestatedir)/log/network |
e145b2f3 | 54 | utildir = $(networkdir) |
9c9d0585 | 55 | |
5ca9dc30 MT |
56 | CLEANFILES = |
57 | DISTCLEANFILES = | |
58 | EXTRA_DIST = | |
59 | INSTALL_DIRS = | |
60 | INSTALL_EXEC_HOOKS = | |
61 | UNINSTALL_EXEC_HOOKS = | |
62 | noinst_DATA = | |
63 | ||
01f2b2e4 MT |
64 | AM_CPPFLAGS = \ |
65 | $(OUR_CPPFLAGS) \ | |
66 | -include $(top_builddir)/config.h \ | |
67 | -I${top_srcdir}/src/libnetwork | |
68 | ||
69 | AM_CFLAGS = \ | |
70 | $(OUR_CFLAGS) \ | |
71 | -fvisibility=hidden \ | |
72 | -ffunction-sections \ | |
73 | -fdata-sections | |
74 | ||
75 | AM_LDFLAGS = \ | |
76 | $(OUR_LDFLAGS) \ | |
77 | -Wl,--gc-sections \ | |
78 | -Wl,--as-needed | |
e708653f | 79 | |
5ca9dc30 MT |
80 | DISTCHECK_CONFIGURE_FLAGS = \ |
81 | --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) \ | |
82 | --with-udevdir=$$dc_install_base/$(udevdir) | |
83 | ||
84 | install-directories-hook: | |
85 | $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS)) | |
86 | ||
87 | INSTALL_EXEC_HOOKS += \ | |
88 | install-directories-hook | |
89 | ||
90 | # ------------------------------------------------------------------------------ | |
91 | ||
92 | AM_V_XSLT = $(AM_V_XSLT_$(V)) | |
93 | AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY)) | |
94 | AM_V_XSLT_0 = @echo " XSLT " $@; | |
95 | ||
96 | # ------------------------------------------------------------------------------ | |
97 | ||
98 | dist_doc_DATA = \ | |
1337eee2 | 99 | README \ |
dd46582c | 100 | docs/CODING_STYLE \ |
1337eee2 | 101 | docs/COPYING |
5ca9dc30 MT |
102 | |
103 | dist_sbin_SCRIPTS = \ | |
104 | src/dhclient-script \ | |
105 | src/firewall-config \ | |
106 | src/firewall4 \ | |
107 | src/firewall6 \ | |
108 | src/network | |
109 | ||
110 | network_SCRIPTS = \ | |
111 | src/functions/functions | |
112 | ||
113 | CLEANFILES += \ | |
114 | src/functions/functions | |
115 | ||
116 | EXTRA_DIST += \ | |
117 | src/functions/functions.in | |
118 | ||
119 | dist_network_SCRIPTS = \ | |
5ca9dc30 MT |
120 | src/functions/functions.at \ |
121 | src/functions/functions.auth \ | |
5ca9dc30 MT |
122 | src/functions/functions.bonding \ |
123 | src/functions/functions.bridge \ | |
124 | src/functions/functions.cli \ | |
125 | src/functions/functions.cli.firewall \ | |
126 | src/functions/functions.colors \ | |
127 | src/functions/functions.config \ | |
128 | src/functions/functions.conntrack \ | |
129 | src/functions/functions.constants \ | |
130 | src/functions/functions.constants-firewall \ | |
131 | src/functions/functions.db \ | |
5ccc7299 | 132 | src/functions/functions.description \ |
5ca9dc30 MT |
133 | src/functions/functions.device \ |
134 | src/functions/functions.dhclient \ | |
135 | src/functions/functions.dhcpd \ | |
136 | src/functions/functions.distro \ | |
137 | src/functions/functions.dns \ | |
138 | src/functions/functions.dummy \ | |
e524986c | 139 | src/functions/functions.editor \ |
5ca9dc30 MT |
140 | src/functions/functions.firewall \ |
141 | src/functions/functions.firewall-policy \ | |
142 | src/functions/functions.firewall-zones \ | |
143 | src/functions/functions.he \ | |
144 | src/functions/functions.hook \ | |
145 | src/functions/functions.hostapd \ | |
b8026986 | 146 | src/functions/functions.hotplug \ |
5ca9dc30 | 147 | src/functions/functions.http \ |
de72bd91 | 148 | src/functions/functions.interrupts \ |
5ca9dc30 | 149 | src/functions/functions.ip \ |
be844b7b | 150 | src/functions/functions.ipsec \ |
4e78b7ad | 151 | src/functions/functions.ipsec-pool \ |
5ca9dc30 MT |
152 | src/functions/functions.iptables \ |
153 | src/functions/functions.ip-tunnel \ | |
154 | src/functions/functions.ipv4 \ | |
155 | src/functions/functions.ipv6 \ | |
5ca9dc30 MT |
156 | src/functions/functions.list \ |
157 | src/functions/functions.lock \ | |
158 | src/functions/functions.logging \ | |
159 | src/functions/functions.macros \ | |
5ca9dc30 MT |
160 | src/functions/functions.modem \ |
161 | src/functions/functions.phy \ | |
162 | src/functions/functions.ports \ | |
163 | src/functions/functions.ppp \ | |
164 | src/functions/functions.pppoe-server \ | |
165 | src/functions/functions.radvd \ | |
5ca9dc30 MT |
166 | src/functions/functions.route \ |
167 | src/functions/functions.routing \ | |
168 | src/functions/functions.serial \ | |
169 | src/functions/functions.service \ | |
e9df08ad | 170 | src/functions/functions.settings \ |
5ca9dc30 | 171 | src/functions/functions.stp \ |
5ca9dc30 | 172 | src/functions/functions.sysctl \ |
de72bd91 | 173 | src/functions/functions.system \ |
de3cecef | 174 | src/functions/functions.triggers \ |
5ca9dc30 MT |
175 | src/functions/functions.usb \ |
176 | src/functions/functions.util \ | |
177 | src/functions/functions.vlan \ | |
2da98f56 | 178 | src/functions/functions.vpn \ |
3eae7bed | 179 | src/functions/functions.vpn-security-policies \ |
5ca9dc30 | 180 | src/functions/functions.wireless \ |
81bf9898 | 181 | src/functions/functions.wireless-mesh \ |
49958b8c | 182 | src/functions/functions.wireless-networks \ |
5ca9dc30 MT |
183 | src/functions/functions.wpa_supplicant \ |
184 | src/functions/functions.zone \ | |
185 | src/network-radvd-config \ | |
186 | src/dhclient-helper \ | |
187 | src/header-config \ | |
188 | src/header-port \ | |
189 | src/header-zone \ | |
190 | src/ppp/dialer \ | |
191 | src/ppp/pppoe-server | |
192 | ||
193 | dist_helpers_SCRIPTS = \ | |
5ca9dc30 MT |
194 | src/helpers/dhcpd-config-helper \ |
195 | src/helpers/firewall-kernel-init \ | |
196 | src/helpers/hostapd-config-helper \ | |
67baa452 | 197 | src/helpers/ipsec-updown \ |
5ca9dc30 | 198 | src/helpers/pppd-angel \ |
02807ad2 | 199 | src/helpers/wpa_supplicant |
5ca9dc30 | 200 | |
13a6e69f MT |
201 | bin_PROGRAMS = \ |
202 | src/inetcalc | |
203 | ||
204 | src_inetcalc_SOURCES = \ | |
205 | src/inetcalc.c | |
206 | ||
01f2b2e4 MT |
207 | src_inetcalc_LDADD = \ |
208 | src/libnetwork.la | |
209 | ||
7d2cb6d3 | 210 | dist_hooks_configs_SCRIPTS = \ |
9353a4e4 | 211 | src/hooks/configs/dhcp \ |
7d2cb6d3 | 212 | src/hooks/configs/ipv4-static \ |
b73e9d43 MT |
213 | src/hooks/configs/ipv6-auto \ |
214 | src/hooks/configs/ipv6-static \ | |
7d2cb6d3 MT |
215 | src/hooks/configs/pppoe-server |
216 | ||
5ca9dc30 | 217 | dist_hooks_ports_SCRIPTS = \ |
5ca9dc30 MT |
218 | src/hooks/ports/bonding \ |
219 | src/hooks/ports/dummy \ | |
220 | src/hooks/ports/ethernet \ | |
5ca9dc30 | 221 | src/hooks/ports/vlan \ |
727248f0 MT |
222 | src/hooks/ports/wireless-ap \ |
223 | src/hooks/ports/wireless-mesh | |
5ca9dc30 MT |
224 | |
225 | dist_hooks_zones_SCRIPTS = \ | |
5ca9dc30 | 226 | src/hooks/zones/6to4-tunnel \ |
5ca9dc30 | 227 | src/hooks/zones/bridge \ |
5ca9dc30 MT |
228 | src/hooks/zones/modem \ |
229 | src/hooks/zones/pppoe \ | |
5ca9dc30 MT |
230 | src/hooks/zones/wireless |
231 | ||
f166708b MT |
232 | INSTALL_DIRS += \ |
233 | $(configdir) \ | |
234 | $(configdir)/ports \ | |
235 | $(configdir)/vpn \ | |
236 | $(configdir)/vpn/ipsec/connections \ | |
237 | $(configdir)/vpn/security-policies \ | |
238 | $(configdir)/wireless \ | |
239 | $(configdir)/wireless/networks \ | |
240 | $(configdir)/zones | |
241 | ||
5ca9dc30 MT |
242 | # ------------------------------------------------------------------------------ |
243 | ||
01f2b2e4 MT |
244 | LIBNETWORK_CURRENT=0 |
245 | LIBNETWORK_REVISION=0 | |
246 | LIBNETWORK_AGE=0 | |
247 | ||
248 | pkginclude_HEADERS = \ | |
248629ae | 249 | src/libnetwork/network/interface.h \ |
6f4814db | 250 | src/libnetwork/network/libnetwork.h \ |
9cb2f0c0 MT |
251 | src/libnetwork/network/logging.h \ |
252 | src/libnetwork/network/phy.h | |
01f2b2e4 MT |
253 | |
254 | lib_LTLIBRARIES = \ | |
255 | src/libnetwork.la | |
256 | ||
257 | src_libnetwork_la_SOURCES = \ | |
248629ae | 258 | src/libnetwork/interface.c \ |
01f2b2e4 | 259 | src/libnetwork/libnetwork-private.h \ |
9cb2f0c0 MT |
260 | src/libnetwork/libnetwork.c \ |
261 | src/libnetwork/phy.c | |
01f2b2e4 | 262 | |
db0a2d76 MT |
263 | src_libnetwork_la_LIBADD = \ |
264 | $(LIBNL_LIBS) | |
265 | ||
6f4814db MT |
266 | src_libnetwork_la_CPPFLAGS = \ |
267 | $(AM_CPPFLAGS) \ | |
db0a2d76 | 268 | $(LIBNL_CPPFLAGS) \ |
6f4814db MT |
269 | -D_GNU_SOURCE \ |
270 | -DNETWORK_PRIVATE | |
271 | ||
db0a2d76 MT |
272 | src_libnetwork_la_CFLAGS = \ |
273 | $(AM_CFLAGS) \ | |
274 | $(LIBNL_CFLAGS) | |
275 | ||
01f2b2e4 MT |
276 | src_libnetwork_la_LDFLAGS = \ |
277 | $(AM_LDFLAGS) \ | |
278 | -version-info $(LIBNETWORK_CURRENT):$(LIBNETWORK_REVISION):$(LIBNETWORK_AGE) \ | |
279 | -Wl,--version-script=$(top_srcdir)/src/libnetwork/libnetwork.sym | |
280 | ||
281 | src_libnetwork_la_DEPENDENCIES = \ | |
282 | src/libnetwork/libnetwork.sym | |
283 | ||
284 | EXTRA_DIST += \ | |
285 | src/libnetwork/libnetwork.sym | |
286 | ||
287 | # ------------------------------------------------------------------------------ | |
e145b2f3 MT |
288 | |
289 | util_PROGRAMS = \ | |
290 | src/utils/network-phy-list-ht-caps | |
291 | ||
292 | src_utils_network_phy_list_ht_caps_SOURCES = \ | |
293 | src/utils/network-phy-list-ht-caps.c | |
294 | ||
295 | src_utils_network_phy_list_ht_caps_LDADD = \ | |
296 | src/libnetwork.la | |
297 | ||
298 | # ------------------------------------------------------------------------------ | |
01f2b2e4 | 299 | |
5ca9dc30 MT |
300 | ppp_SCRIPTS = \ |
301 | src/ppp/ip-updown | |
302 | ||
303 | CLEANFILES += \ | |
304 | src/ppp/ip-updown | |
305 | ||
306 | EXTRA_DIST += \ | |
307 | src/ppp/ip-updown.in | |
308 | ||
309 | INSTALL_DIRS += \ | |
9c9d0585 SS |
310 | $(pppdir) \ |
311 | $(logdir) | |
5ca9dc30 MT |
312 | |
313 | ppp-install-hook: | |
314 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-pre-up | |
315 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-up | |
316 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ip-down | |
317 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ipv6-up | |
318 | ln -svf ip-updown $(DESTDIR)$(pppdir)/ipv6-down | |
319 | ||
320 | ppp-uninstall-hook: | |
321 | rm -f $(DESTDIR)$(pppdir)/ip-{down,pre-up,up} | |
322 | rm -f $(DESTDIR)$(pppdir)/ipv6-{down,up} | |
323 | ||
324 | INSTALL_EXEC_HOOKS += ppp-install-hook | |
325 | UNINSTALL_EXEC_HOOKS += ppp-uninstall-hook | |
326 | ||
327 | # ------------------------------------------------------------------------------ | |
328 | ||
329 | if HAVE_SYSTEMD | |
330 | systemdsystemunit_DATA = \ | |
331 | src/systemd/firewall4.service \ | |
332 | src/systemd/firewall6.service \ | |
333 | src/systemd/firewall-init.service \ | |
334 | src/systemd/network-init.service \ | |
335 | src/systemd/network@.service | |
336 | ||
337 | CLEANFILES += \ | |
338 | $(systemdsystemunit_DATA) | |
339 | ||
340 | INSTALL_DIRS += \ | |
341 | $(systemdsystemunitdir) | |
342 | endif | |
343 | ||
344 | EXTRA_DIST += \ | |
345 | src/systemd/firewall4.service.in \ | |
346 | src/systemd/firewall6.service.in \ | |
347 | src/systemd/firewall-init.service.in \ | |
348 | src/systemd/network-init.service.in \ | |
349 | src/systemd/network@.service.in | |
350 | ||
351 | # ------------------------------------------------------------------------------ | |
352 | ||
5e84cd41 MT |
353 | systemconfig_vpndir = $(systemconfigdir)/vpn |
354 | ||
355 | dist_systemconfig_vpn_security_policies_DATA = \ | |
56d5efa7 | 356 | config/vpn/security-policies/performance \ |
5e84cd41 MT |
357 | config/vpn/security-policies/system |
358 | ||
359 | systemconfig_vpn_security_policiesdir = $(systemconfig_vpndir)/security-policies | |
360 | ||
361 | # ------------------------------------------------------------------------------ | |
362 | ||
5ca9dc30 MT |
363 | dist_sysctl_DATA = \ |
364 | src/sysctl/network.conf | |
365 | ||
366 | # ------------------------------------------------------------------------------ | |
367 | ||
bae37360 MT |
368 | dist_bashcompletion_SCRIPTS = \ |
369 | src/bash-completion/network | |
370 | ||
371 | # ------------------------------------------------------------------------------ | |
372 | ||
5ca9dc30 | 373 | dist_tmpfiles_DATA = \ |
f9dac5a0 | 374 | src/tmpfiles/network.conf |
5ca9dc30 MT |
375 | |
376 | # ------------------------------------------------------------------------------ | |
377 | ||
378 | if HAVE_UDEV | |
379 | dist_udev_SCRIPTS = \ | |
380 | src/udev/network-hotplug \ | |
381 | src/udev/network-hotplug-rename \ | |
382 | src/udev/network-hotplug-serial | |
383 | ||
384 | dist_udevrules_DATA = \ | |
385 | src/udev/rules.d/50-serial-whitelist.rules \ | |
386 | src/udev/rules.d/60-net.rules | |
387 | ||
388 | INSTALL_DIRS += \ | |
389 | $(udevdir) \ | |
390 | $(udevrulesdir) | |
391 | endif | |
392 | ||
393 | # ------------------------------------------------------------------------------ | |
394 | ||
01f2b2e4 | 395 | pkgconfig_DATA = \ |
5ca9dc30 MT |
396 | src/network.pc |
397 | ||
398 | CLEANFILES += \ | |
01f2b2e4 | 399 | $(pkgconfig_DATA) |
5ca9dc30 MT |
400 | |
401 | EXTRA_DIST += \ | |
402 | src/network.pc.in | |
403 | ||
404 | # ------------------------------------------------------------------------------ | |
405 | ||
406 | dist_macros_DATA = \ | |
407 | src/macros/DHCP \ | |
408 | src/macros/HTTP \ | |
409 | src/macros/HTTPS \ | |
410 | src/macros/WWW | |
411 | ||
412 | # ------------------------------------------------------------------------------ | |
413 | ||
ec3fe5b7 | 414 | INSTALL_DIRS += \ |
de3cecef MT |
415 | $(triggersdir) |
416 | ||
417 | # ------------------------------------------------------------------------------ | |
418 | ||
5ca9dc30 | 419 | MANPAGES = \ |
2b0ff832 | 420 | man/firewall-settings.8 \ |
5ca9dc30 | 421 | man/network.8 \ |
89c81bcf | 422 | man/network-color.8 \ |
6135a5b3 | 423 | man/network-description.8 \ |
5ca9dc30 | 424 | man/network-device.8 \ |
427f5ae2 | 425 | man/network-dhcp.8 \ |
5ca9dc30 | 426 | man/network-dns-server.8 \ |
de72bd91 | 427 | man/network-performance-tuning.8 \ |
7a302fa7 | 428 | man/network-port.8 \ |
94eab754 | 429 | man/network-quick-start.8 \ |
5ca9dc30 | 430 | man/network-route.8 \ |
e023191b | 431 | man/network-route-static.8 \ |
2b0ff832 | 432 | man/network-settings.8 \ |
bec94f95 MT |
433 | man/network-vpn.8 \ |
434 | man/network-vpn-security-policies.8 \ | |
5ca9dc30 | 435 | man/network-zone.8 \ |
5ca9dc30 | 436 | man/network-zone-6to4-tunnel.8 \ |
5ca9dc30 MT |
437 | man/network-zone-bridge.8 \ |
438 | man/network-zone-config-pppoe-server.8 \ | |
7a302fa7 | 439 | man/network-zone-modem.8 \ |
2fb7ae4d MT |
440 | man/network-zone-pppoe.8 \ |
441 | man/network-zone-wireless.8 | |
5ca9dc30 MT |
442 | |
443 | MANPAGES_XML = $(patsubst %.8,%.xml,$(MANPAGES)) | |
444 | MANPAGES_HTML = $(patsubst %.xml,%.html,$(MANPAGES_XML)) | |
445 | ||
446 | .PHONY: man | |
447 | man: $(MANPAGES) $(MANPAGES_HTML) | |
448 | ||
449 | man_MANS = \ | |
450 | $(MANPAGES) | |
451 | ||
452 | noinst_DATA += \ | |
453 | $(MANPAGES_HTML) | |
454 | ||
455 | CLEANFILES += \ | |
456 | $(man_MANS) \ | |
457 | $(MANPAGES_HTML) | |
458 | ||
459 | EXTRA_DIST += \ | |
460 | $(MANPAGES_XML) \ | |
461 | man/custom-html.xsl | |
462 | ||
463 | XSLTPROC_FLAGS = \ | |
464 | --nonet \ | |
465 | --stringparam man.output.quietly 1 \ | |
466 | --stringparam funcsynopsis.style ansi \ | |
467 | --stringparam man.th.extra1.suppress 1 \ | |
468 | --stringparam man.authors.section.enabled 1 \ | |
469 | --stringparam man.copyright.section.enabled 1 | |
470 | ||
471 | XSLTPROC_COMMAND_MAN = \ | |
472 | $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \ | |
473 | http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< | |
474 | ||
475 | XSLTPROC_COMMAND_HTML = \ | |
476 | $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< | |
477 | ||
478 | man/%.8: man/%.xml | |
479 | $(XSLTPROC_COMMAND_MAN) | |
480 | ||
481 | man/%.html: man/%.xml man/custom-html.xsl | |
482 | $(XSLTPROC_COMMAND_HTML) | |
483 | ||
484 | # ------------------------------------------------------------------------------ | |
485 | ||
486 | substitutions = \ | |
487 | '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ | |
488 | '|PACKAGE_URL=$(PACKAGE_URL)|' \ | |
489 | '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ | |
490 | '|prefix=$(prefix)|' \ | |
491 | '|exec_prefix=$(exec_prefix)|' \ | |
492 | '|sbindir=$(sbindir)|' \ | |
c6525a63 MT |
493 | '|networkdir=$(networkdir)|' \ |
494 | '|helpersdir=$(helpersdir)|' | |
5ca9dc30 MT |
495 | |
496 | SED_PROCESS = \ | |
497 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | |
498 | $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \ | |
499 | < $< > $@ | |
500 | ||
501 | src/functions/functions: src/functions/functions.in Makefile | |
502 | $(SED_PROCESS) | |
503 | ||
504 | src/ppp/ip-updown: src/ppp/ip-updown.in Makefile | |
505 | $(SED_PROCESS) | |
506 | ||
507 | src/systemd/%: src/systemd/%.in Makefile | |
508 | $(SED_PROCESS) | |
509 | ||
510 | src/%.pc: src/%.pc.in Makefile | |
511 | $(SED_PROCESS) | |
512 | ||
513 | INSTALL_DIRS += \ | |
514 | $(sbindir) | |
515 | ||
516 | install-exec-hook: $(INSTALL_EXEC_HOOKS) | |
517 | ||
518 | uninstall-hook: $(UNINSTALL_EXEC_HOOKS) | |
519 | ||
520 | # - testsuite ------------------------------------------------------------------ | |
521 | ||
522 | TESTS_ENVIRONMENT = \ | |
071d3416 | 523 | LD_LIBRARY_PATH=$(top_builddir)/src/.libs:$(LD_LIBRARY_PATH) \ |
8744a476 MT |
524 | PATH=$(top_builddir)/src:$(PATH) \ |
525 | functions=$(abs_builddir)/src/functions/functions \ | |
526 | networkdir=$(abs_srcdir)/src/functions \ | |
527 | testdir=$(top_srcdir)/test | |
528 | ||
529 | dist_check_DATA = \ | |
ee86c73f MT |
530 | test/constants.sh \ |
531 | test/test-functions | |
5ca9dc30 MT |
532 | |
533 | dist_check_SCRIPTS = \ | |
8744a476 | 534 | $(TESTS) |
5ca9dc30 MT |
535 | |
536 | TESTS = \ | |
bb8304ec | 537 | test/load-library \ |
bb8304ec | 538 | test/functions/ip/ip_detect_protocol \ |
bb8304ec | 539 | test/functions/ip/ip_get_prefix \ |
8b0958b2 | 540 | test/functions/ip/ip_net_is_valid \ |
b7fd8067 | 541 | test/functions/ip/ip_is_valid \ |
b862734c | 542 | test/functions/ip/ip_network_is_subnet_of \ |
b7fd8067 MT |
543 | test/functions/ip/ip_prefix_is_valid \ |
544 | test/functions/ip/ip_protocol_is_supported \ | |
545 | test/functions/ip/ip_split_prefix |