Fixed redirector schedules - This fixes bug #0000685
[people/pmueller/ipfire-2.x.git] / src / misc-progs / Makefile
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
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 CC=gcc
22 CFLAGS=-O2 -Wall
23
24 COMPILE=$(CC) $(CFLAGS)
25
26 PROGS = iowrap
27 SUID_PROGS = setdmzholes setportfw setxtaccess \
28 squidctrl sshctrl ipfirereboot \
29 ipsecctrl timectrl dhcpctrl snortctrl \
30 applejuicectrl rebuildhosts backupctrl \
31 logwatch openvpnctrl outgoingfwctrl \
32 wirelessctrl getipstat getiptstate qosctrl launch-ether-wake \
33 redctrl syslogdctrl extrahdctrl sambactrl upnpctrl tripwirectrl \
34 smartctrl clamavctrl addonctrl pakfire mpfirectrl wlanapctrl \
35 setaliases urlfilterctrl updxlratorctrl
36 SUID_UPDX = updxsetperms
37
38 install : all
39 install -m 755 $(PROGS) /usr/local/bin
40 install -m 4750 -g nobody $(SUID_PROGS) /usr/local/bin
41 install -m 4750 -g squid $(SUID_UPDX) /usr/local/bin
42
43 all : $(PROGS) $(SUID_PROGS) $(SUID_UPDX)
44
45 clean :
46 -rm -f $(PROGS) $(SUID_PROGS) $(SUID_UPDX) *.o core
47
48 ######
49
50 % : %.c
51 $(COMPILE) $< setuid.o -o $@
52
53 setuid.o: setuid.c setuid.h
54 $(COMPILE) $< -c -o $@
55
56 $(SUID_PROGS): setuid.o
57
58 $(PROGS): setuid.o
59
60 $(SUID_UPDX): setuid.o
61
62 logwatch: logwatch.c setuid.o ../install+setup/libsmooth/varval.o
63 $(COMPILE) -I../install+setup/libsmooth/ logwatch.c setuid.o ../install+setup/libsmooth/varval.o -o $@
64
65 openvpnctrl: openvpnctrl.c setuid.o ../install+setup/libsmooth/varval.o
66 $(COMPILE) -I../install+setup/libsmooth/ openvpnctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
67
68 qosctrl: qosctrl.c setuid.o ../install+setup/libsmooth/varval.o
69 $(COMPILE) -I../install+setup/libsmooth/ qosctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
70
71 redctrl: redctrl.c setuid.o ../install+setup/libsmooth/varval.o
72 $(COMPILE) -I../install+setup/libsmooth/ redctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
73
74 extrahdctrl: extrahdctrl.c setuid.o ../install+setup/libsmooth/varval.o
75 $(COMPILE) -I../install+setup/libsmooth/ extrahdctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
76
77 upnpctrl: upnpctrl.c setuid.o ../install+setup/libsmooth/varval.o
78 $(COMPILE) -I../install+setup/libsmooth/ upnpctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
79
80 sambactrl: sambactrl.c setuid.o ../install+setup/libsmooth/varval.o
81 $(COMPILE) -I../install+setup/libsmooth/ sambactrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
82
83 tripwirectrl: tripwirectrl.c setuid.o ../install+setup/libsmooth/varval.o
84 $(COMPILE) -I../install+setup/libsmooth/ tripwirectrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
85
86 smartctrl: smartctrl.c setuid.o ../install+setup/libsmooth/varval.o
87 $(COMPILE) -I../install+setup/libsmooth/ smartctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
88
89 clamavctrl: clamavctrl.c setuid.o ../install+setup/libsmooth/varval.o
90 $(COMPILE) -I../install+setup/libsmooth/ clamavctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
91
92 outgoingfwctrl: outgoingfwctrl.c setuid.o ../install+setup/libsmooth/varval.o
93 $(COMPILE) -I../install+setup/libsmooth/ outgoingfwctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
94
95 timectrl: timectrl.c setuid.o ../install+setup/libsmooth/varval.o
96 $(COMPILE) -I../install+setup/libsmooth/ timectrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
97
98 launch-ether-wake: launch-ether-wake.c setuid.o ../install+setup/libsmooth/varval.o
99 $(COMPILE) -I../install+setup/libsmooth/ launch-ether-wake.c setuid.o ../install+setup/libsmooth/varval.o -o $@
100
101 setdmzholes: setdmzholes.c setuid.o ../install+setup/libsmooth/varval.o
102 $(COMPILE) -I../install+setup/libsmooth/ setdmzholes.c setuid.o ../install+setup/libsmooth/varval.o -o $@
103
104 setportfw: setportfw.c setuid.o ../install+setup/libsmooth/varval.o
105 $(COMPILE) -I../install+setup/libsmooth/ setportfw.c setuid.o ../install+setup/libsmooth/varval.o -o $@
106
107 rebuildhosts: rebuildhosts.c setuid.o ../install+setup/libsmooth/varval.o
108 $(COMPILE) -I../install+setup/libsmooth/ rebuildhosts.c setuid.o ../install+setup/libsmooth/varval.o -o $@
109
110 applejuicectrl: applejuicectrl.c setuid.o ../install+setup/libsmooth/varval.o
111 $(COMPILE) -I../install+setup/libsmooth/ applejuicectrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
112
113 dhcpctrl: dhcpctrl.c setuid.o ../install+setup/libsmooth/varval.o
114 $(COMPILE) -I../install+setup/libsmooth/ dhcpctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
115
116 sshctrl: sshctrl.c setuid.o ../install+setup/libsmooth/varval.o
117 $(COMPILE) -I../install+setup/libsmooth/ sshctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
118
119 squidctrl: squidctrl.c setuid.o ../install+setup/libsmooth/varval.o
120 $(COMPILE) -I../install+setup/libsmooth/ squidctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
121
122 snortctrl: snortctrl.c setuid.o ../install+setup/libsmooth/varval.o
123 $(COMPILE) -I../install+setup/libsmooth/ snortctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
124
125 wirelessctrl: wirelessctrl.c setuid.o ../install+setup/libsmooth/varval.o
126 $(COMPILE) -I../install+setup/libsmooth/ wirelessctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
127
128 ipsecctrl: ipsecctrl.c setuid.o ../install+setup/libsmooth/varval.o
129 $(COMPILE) -I../install+setup/libsmooth/ ipsecctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
130
131 getipstat: getipstat.c setuid.o ../install+setup/libsmooth/varval.o
132 $(COMPILE) -I../install+setup/libsmooth/ getipstat.c setuid.o ../install+setup/libsmooth/varval.o -o $@
133
134 pakfire: pakfire.c setuid.o ../install+setup/libsmooth/varval.o
135 $(COMPILE) -I../install+setup/libsmooth/ pakfire.c setuid.o ../install+setup/libsmooth/varval.o -o $@
136
137 mpfirectrl: mpfirectrl.c setuid.o ../install+setup/libsmooth/varval.o
138 $(COMPILE) -I../install+setup/libsmooth/ mpfirectrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
139
140 backupctrl: backupctrl.c setuid.o ../install+setup/libsmooth/varval.o
141 $(COMPILE) -I../install+setup/libsmooth/ backupctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
142
143 addonctrl: addonctrl.c setuid.o ../install+setup/libsmooth/varval.o
144 $(COMPILE) -I../install+setup/libsmooth/ addonctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
145
146 syslogdctrl: syslogdctrl.c setuid.o ../install+setup/libsmooth/varval.o
147 $(COMPILE) -I../install+setup/libsmooth/ syslogdctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
148
149 wlanapctrl: wlanapctrl.c setuid.o ../install+setup/libsmooth/varval.o
150 $(COMPILE) -I../install+setup/libsmooth/ wlanapctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
151
152 setaliases: setaliases.c setuid.o ../install+setup/libsmooth/varval.o
153 $(COMPILE) -I../install+setup/libsmooth/ setaliases.c setuid.o ../install+setup/libsmooth/varval.o -o $@
154
155 updxsetperms: updxsetperms.c setuid.o ../install+setup/libsmooth/varval.o
156 $(COMPILE) -I../install+setup/libsmooth/ updxsetperms.c setuid.o ../install+setup/libsmooth/varval.o -o $@