MTU MRU einstellbar bei PPoE
[people/pmueller/ipfire-2.x.git] / src / misc-progs / Makefile
CommitLineData
cd1a2927
MT
1CC=gcc
2CFLAGS=-O2 -Wall
3
4COMPILE=$(CC) $(CFLAGS)
5
6PROGS = iowrap
5b1396b0
MT
7SUID_PROGS = setdmzholes setportfw setfilters setxtaccess \
8 restartsquid restartssh ipfirereboot setaliases \
9 ipsecctrl restartntpd restartdhcp restartsnort \
a79906a4 10 restartapplejuice setdate rebuildhosts \
a68fedca 11 restartsyslogd logwatch openvpnctrl timecheckctrl \
d95bfe98 12 restartwireless getipstat qosctrl launch-ether-wake \
5fd30232 13 redctrl extrahdctrl sambactrl upnpctrl
cd1a2927
MT
14
15install : all
16 install -m 755 $(PROGS) /usr/local/bin
17 install -m 4750 -g nobody $(SUID_PROGS) /usr/local/bin
18
19all : $(PROGS) $(SUID_PROGS)
20
21clean :
22 -rm -f $(PROGS) $(SUID_PROGS) *.o core
23
24######
25
26% : %.c
27 $(COMPILE) $< setuid.o -o $@
28
29setuid.o: setuid.c setuid.h
30 $(COMPILE) $< -c -o $@
31
32$(SUID_PROGS): setuid.o
33
34$(PROGS): setuid.o
35
36logwatch: logwatch.c setuid.o ../install+setup/libsmooth/varval.o
37 $(COMPILE) -I../install+setup/libsmooth/ logwatch.c setuid.o ../install+setup/libsmooth/varval.o -o $@
38
6e13d0a5
MT
39openvpnctrl: openvpnctrl.c setuid.o ../install+setup/libsmooth/varval.o
40 $(COMPILE) -I../install+setup/libsmooth/ openvpnctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
41
b684b13b
MT
42qosctrl: qosctrl.c setuid.o ../install+setup/libsmooth/varval.o
43 $(COMPILE) -I../install+setup/libsmooth/ qosctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
d95bfe98
MT
44
45redctrl: redctrl.c setuid.o ../install+setup/libsmooth/varval.o
46 $(COMPILE) -I../install+setup/libsmooth/ redctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
aa2870e6
MT
47
48extrahdctrl: extrahdctrl.c setuid.o ../install+setup/libsmooth/varval.o
49 $(COMPILE) -I../install+setup/libsmooth/ extrahdctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
5fd30232
MT
50
51upnpctrl: upnpctrl.c setuid.o ../install+setup/libsmooth/varval.o
52 $(COMPILE) -I../install+setup/libsmooth/ upnpctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
14cc7eac
MT
53
54sambactrl: sambactrl.c setuid.o ../install+setup/libsmooth/varval.o
55 $(COMPILE) -I../install+setup/libsmooth/ sambactrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
b684b13b 56
4e565351
MT
57launch-ether-wake: launch-ether-wake.c setuid.o ../install+setup/libsmooth/varval.o
58 $(COMPILE) -I../install+setup/libsmooth/ launch-ether-wake.c setuid.o ../install+setup/libsmooth/varval.o -o $@
59
cd1a2927
MT
60setaliases: setaliases.c setuid.o ../install+setup/libsmooth/varval.o
61 $(COMPILE) -I../install+setup/libsmooth/ setaliases.c setuid.o ../install+setup/libsmooth/varval.o -o $@
62
63setdmzholes: setdmzholes.c setuid.o ../install+setup/libsmooth/varval.o
64 $(COMPILE) -I../install+setup/libsmooth/ setdmzholes.c setuid.o ../install+setup/libsmooth/varval.o -o $@
65
66setportfw: setportfw.c setuid.o ../install+setup/libsmooth/varval.o
67 $(COMPILE) -I../install+setup/libsmooth/ setportfw.c setuid.o ../install+setup/libsmooth/varval.o -o $@
68
69setfilters: setfilters.c setuid.o ../install+setup/libsmooth/varval.o
70 $(COMPILE) -I../install+setup/libsmooth/ setfilters.c setuid.o ../install+setup/libsmooth/varval.o -o $@
71
72rebuildhosts: rebuildhosts.c setuid.o ../install+setup/libsmooth/varval.o
73 $(COMPILE) -I../install+setup/libsmooth/ rebuildhosts.c setuid.o ../install+setup/libsmooth/varval.o -o $@
74
a79906a4
MT
75restartapplejuice: restartapplejuice.c setuid.o ../install+setup/libsmooth/varval.o
76 $(COMPILE) -I../install+setup/libsmooth/ restartapplejuice.c setuid.o ../install+setup/libsmooth/varval.o -o $@
77
cd1a2927
MT
78restartdhcp: restartdhcp.c setuid.o ../install+setup/libsmooth/varval.o
79 $(COMPILE) -I../install+setup/libsmooth/ restartdhcp.c setuid.o ../install+setup/libsmooth/varval.o -o $@
80
cd1a2927
MT
81restartssh: restartssh.c setuid.o ../install+setup/libsmooth/varval.o
82 $(COMPILE) -I../install+setup/libsmooth/ restartssh.c setuid.o ../install+setup/libsmooth/varval.o -o $@
83
84restartsquid: restartsquid.c setuid.o ../install+setup/libsmooth/varval.o
85 $(COMPILE) -I../install+setup/libsmooth/ restartsquid.c setuid.o ../install+setup/libsmooth/varval.o -o $@
86
87restartsnort: restartsnort.c setuid.o ../install+setup/libsmooth/varval.o
88 $(COMPILE) -I../install+setup/libsmooth/ restartsnort.c setuid.o ../install+setup/libsmooth/varval.o -o $@
89
90restartsyslogd: restartsyslogd.c setuid.o ../install+setup/libsmooth/varval.o
91 $(COMPILE) -I../install+setup/libsmooth/ restartsyslogd.c setuid.o ../install+setup/libsmooth/varval.o -o $@
92
93restartwireless: restartwireless.c setuid.o ../install+setup/libsmooth/varval.o
94 $(COMPILE) -I../install+setup/libsmooth/ restartwireless.c setuid.o ../install+setup/libsmooth/varval.o -o $@
95
96ipsecctrl: ipsecctrl.c setuid.o ../install+setup/libsmooth/varval.o
97 $(COMPILE) -I../install+setup/libsmooth/ ipsecctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
98
39a7cc11
MT
99timecheckctrl: timecheckctrl.c setuid.o ../install+setup/libsmooth/varval.o
100 $(COMPILE) -I../install+setup/libsmooth/ timecheckctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
101
a68fedca
MT
102getipstat: getipstat.c setuid.o ../install+setup/libsmooth/varval.o
103 $(COMPILE) -I../install+setup/libsmooth/ getipstat.c setuid.o ../install+setup/libsmooth/varval.o -o $@