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