1 ### Makefile for firewall scripts
11 ###--------------------------------------------------------------------------
12 ### Local configuration.
14 ## Should set up HOSTS and add stuff to MAIN_M4_SOURCES if necessary.
17 ###--------------------------------------------------------------------------
20 ## The main m4 inputs which construct the firewall. These are read in last
21 ## to allow local configuration to change their environments.
22 MAIN_M4_SOURCES
+= config.m4
23 MAIN_M4_SOURCES
+= prologue.m4
24 MAIN_M4_SOURCES
+= functions.m4
25 MAIN_M4_SOURCES
+= numbers.m4
26 MAIN_M4_SOURCES
+= bookends.m4
27 MAIN_M4_SOURCES
+= classify.m4
28 MAIN_M4_SOURCES
+= icmp.m4
30 ## All of our m4 inputs. The base gets read first to set things up.
32 M4_SOURCES
+= $(MAIN_M4_SOURCES
)
34 ###--------------------------------------------------------------------------
37 TARGETS
= $(addsuffix .sh
,$(HOSTS
))
39 ###--------------------------------------------------------------------------
45 %.sh
: %.m4
$(M4_SOURCES
)
46 m4
-P base.m4
$*.m4
$(MAIN_M4_SOURCES
) >$@.new
50 clean:; rm -f
$(TARGETS
) *.new
53 ###----- That's all, folks --------------------------------------------------