]> git.ipfire.org Git - ipfire-2.x.git/blame - src/misc-progs/Makefile
binutils: update to 2.18.
[ipfire-2.x.git] / src / misc-progs / Makefile
CommitLineData
70df8302
MT
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
cd1a2927
MT
21CC=gcc
22CFLAGS=-O2 -Wall
23
24COMPILE=$(CC) $(CFLAGS)
25
26PROGS = iowrap
903310c4 27SUID_PROGS = setdmzholes setportfw setxtaccess \
900832fa 28 squidctrl sshctrl ipfirereboot \
3ef6c343 29 ipsecctrl timectrl dhcpctrl snortctrl \
98bdae8a 30 applejuicectrl rebuildhosts backupctrl \
61e3d218 31 logwatch openvpnctrl outgoingfwctrl \
f65b2fb8 32 wirelessctrl getipstat getiptstate qosctrl launch-ether-wake \
900832fa 33 redctrl syslogdctrl extrahdctrl sambactrl upnpctrl tripwirectrl \
69fe68ee 34 smartctrl clamavctrl addonctrl pakfire mpfirectrl wlanapctrl \
daf96690 35 setaliases urlfilterctrl updxlratorctrl fireinfoctrl rebuildroutes
f17e1488 36SUID_UPDX = updxsetperms
cd1a2927
MT
37
38install : all
39 install -m 755 $(PROGS) /usr/local/bin
40 install -m 4750 -g nobody $(SUID_PROGS) /usr/local/bin
f17e1488 41 install -m 4750 -g squid $(SUID_UPDX) /usr/local/bin
cd1a2927 42
f17e1488 43all : $(PROGS) $(SUID_PROGS) $(SUID_UPDX)
cd1a2927
MT
44
45clean :
f17e1488 46 -rm -f $(PROGS) $(SUID_PROGS) $(SUID_UPDX) *.o core
cd1a2927
MT
47
48######
49
50% : %.c
51 $(COMPILE) $< setuid.o -o $@
52
53setuid.o: setuid.c setuid.h
54 $(COMPILE) $< -c -o $@
55
56$(SUID_PROGS): setuid.o
57
58$(PROGS): setuid.o
59
f17e1488
CS
60$(SUID_UPDX): setuid.o
61
cd1a2927
MT
62logwatch: 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
6e13d0a5
MT
65openvpnctrl: 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
b684b13b
MT
68qosctrl: 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 $@
d95bfe98
MT
70
71redctrl: 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 $@
aa2870e6
MT
73
74extrahdctrl: 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 $@
5fd30232
MT
76
77upnpctrl: 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 $@
14cc7eac
MT
79
80sambactrl: 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 $@
b684b13b 82
1cdddb12
MT
83tripwirectrl: 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 $@
40b0879d
MT
85
86smartctrl: 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 $@
d81292e0 88
f7ff12a3
MT
89clamavctrl: 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 $@
53562849 91
b4f8d26c
MT
92outgoingfwctrl: 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
53562849
MT
95timectrl: 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 $@
f7ff12a3 97
4e565351
MT
98launch-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
cd1a2927
MT
101setdmzholes: 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
104setportfw: 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
cd1a2927
MT
107rebuildhosts: 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
99e6df8e
MT
110applejuicectrl: 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 $@
a79906a4 112
6bdd769d
MT
113dhcpctrl: 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 $@
cd1a2927 115
900832fa
CS
116sshctrl: 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 $@
cd1a2927 118
d56fc335
MT
119squidctrl: 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 $@
cd1a2927 121
3ef6c343
MT
122snortctrl: 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 $@
cd1a2927 124
900832fa
CS
125wirelessctrl: 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 $@
cd1a2927
MT
127
128ipsecctrl: 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
a68fedca
MT
131getipstat: 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 $@
3b1471da
MT
133
134pakfire: 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 $@
51f3b7f5
MT
136
137mpfirectrl: 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 $@
8e8bbd9d
CS
139
140backupctrl: 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 $@
5b3962de 142
33cb80ed
AF
143addonctrl: 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
900832fa
CS
146syslogdctrl: 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 $@
819aa2b5 148
8215834f 149wlanapctrl: wlanapctrl.c setuid.o ../install+setup/libsmooth/varval.o
819aa2b5 150 $(COMPILE) -I../install+setup/libsmooth/ wlanapctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
69fe68ee
PP
151
152setaliases: 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
f17e1488
CS
155updxsetperms: 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 $@
aebf1b54
MT
157
158fireinfoctrl: fireinfoctrl.c setuid.o ../install+setup/libsmooth/varval.o
159 $(COMPILE) -I../install+setup/libsmooth/ fireinfoctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
160
daf96690
MT
161rebuildroutes: rebuildroutes.c setuid.o ../install+setup/libsmooth/varval.o
162 $(COMPILE) -I../install+setup/libsmooth/ rebuildroutes.c setuid.o ../install+setup/libsmooth/varval.o -o $@