Timectrl geschrieben.
[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 7SUID_PROGS = setdmzholes setportfw setfilters setxtaccess \
d56fc335 8 squidctrl restartssh ipfirereboot setaliases \
53562849 9 ipsecctrl timectrl dhcpctrl restartsnort \
e989d2d9 10 restartapplejuice rebuildhosts \
53562849 11 restartsyslogd logwatch openvpnctrl \
d95bfe98 12 restartwireless getipstat qosctrl launch-ether-wake \
40b0879d 13 redctrl extrahdctrl sambactrl upnpctrl tripwirectrl \
f7ff12a3 14 smartctrl clamavctrl
cd1a2927
MT
15
16install : all
17 install -m 755 $(PROGS) /usr/local/bin
18 install -m 4750 -g nobody $(SUID_PROGS) /usr/local/bin
19
20all : $(PROGS) $(SUID_PROGS)
21
22clean :
23 -rm -f $(PROGS) $(SUID_PROGS) *.o core
24
25######
26
27% : %.c
28 $(COMPILE) $< setuid.o -o $@
29
30setuid.o: setuid.c setuid.h
31 $(COMPILE) $< -c -o $@
32
33$(SUID_PROGS): setuid.o
34
35$(PROGS): setuid.o
36
37logwatch: logwatch.c setuid.o ../install+setup/libsmooth/varval.o
38 $(COMPILE) -I../install+setup/libsmooth/ logwatch.c setuid.o ../install+setup/libsmooth/varval.o -o $@
39
6e13d0a5
MT
40openvpnctrl: openvpnctrl.c setuid.o ../install+setup/libsmooth/varval.o
41 $(COMPILE) -I../install+setup/libsmooth/ openvpnctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
42
b684b13b
MT
43qosctrl: qosctrl.c setuid.o ../install+setup/libsmooth/varval.o
44 $(COMPILE) -I../install+setup/libsmooth/ qosctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
d95bfe98
MT
45
46redctrl: redctrl.c setuid.o ../install+setup/libsmooth/varval.o
47 $(COMPILE) -I../install+setup/libsmooth/ redctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
aa2870e6
MT
48
49extrahdctrl: extrahdctrl.c setuid.o ../install+setup/libsmooth/varval.o
50 $(COMPILE) -I../install+setup/libsmooth/ extrahdctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
5fd30232
MT
51
52upnpctrl: upnpctrl.c setuid.o ../install+setup/libsmooth/varval.o
53 $(COMPILE) -I../install+setup/libsmooth/ upnpctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
14cc7eac
MT
54
55sambactrl: sambactrl.c setuid.o ../install+setup/libsmooth/varval.o
56 $(COMPILE) -I../install+setup/libsmooth/ sambactrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
b684b13b 57
1cdddb12
MT
58tripwirectrl: tripwirectrl.c setuid.o ../install+setup/libsmooth/varval.o
59 $(COMPILE) -I../install+setup/libsmooth/ tripwirectrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
40b0879d
MT
60
61smartctrl: smartctrl.c setuid.o ../install+setup/libsmooth/varval.o
62 $(COMPILE) -I../install+setup/libsmooth/ smartctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
1cdddb12 63
f7ff12a3
MT
64clamavctrl: clamavctrl.c setuid.o ../install+setup/libsmooth/varval.o
65 $(COMPILE) -I../install+setup/libsmooth/ clamavctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
53562849
MT
66
67timectrl: timectrl.c setuid.o ../install+setup/libsmooth/varval.o
68 $(COMPILE) -I../install+setup/libsmooth/ timectrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
f7ff12a3 69
4e565351
MT
70launch-ether-wake: launch-ether-wake.c setuid.o ../install+setup/libsmooth/varval.o
71 $(COMPILE) -I../install+setup/libsmooth/ launch-ether-wake.c setuid.o ../install+setup/libsmooth/varval.o -o $@
72
cd1a2927
MT
73setaliases: setaliases.c setuid.o ../install+setup/libsmooth/varval.o
74 $(COMPILE) -I../install+setup/libsmooth/ setaliases.c setuid.o ../install+setup/libsmooth/varval.o -o $@
75
76setdmzholes: setdmzholes.c setuid.o ../install+setup/libsmooth/varval.o
77 $(COMPILE) -I../install+setup/libsmooth/ setdmzholes.c setuid.o ../install+setup/libsmooth/varval.o -o $@
78
79setportfw: setportfw.c setuid.o ../install+setup/libsmooth/varval.o
80 $(COMPILE) -I../install+setup/libsmooth/ setportfw.c setuid.o ../install+setup/libsmooth/varval.o -o $@
81
82setfilters: setfilters.c setuid.o ../install+setup/libsmooth/varval.o
83 $(COMPILE) -I../install+setup/libsmooth/ setfilters.c setuid.o ../install+setup/libsmooth/varval.o -o $@
84
85rebuildhosts: rebuildhosts.c setuid.o ../install+setup/libsmooth/varval.o
86 $(COMPILE) -I../install+setup/libsmooth/ rebuildhosts.c setuid.o ../install+setup/libsmooth/varval.o -o $@
87
a79906a4
MT
88restartapplejuice: restartapplejuice.c setuid.o ../install+setup/libsmooth/varval.o
89 $(COMPILE) -I../install+setup/libsmooth/ restartapplejuice.c setuid.o ../install+setup/libsmooth/varval.o -o $@
90
6bdd769d
MT
91dhcpctrl: dhcpctrl.c setuid.o ../install+setup/libsmooth/varval.o
92 $(COMPILE) -I../install+setup/libsmooth/ dhcpctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
cd1a2927 93
cd1a2927
MT
94restartssh: restartssh.c setuid.o ../install+setup/libsmooth/varval.o
95 $(COMPILE) -I../install+setup/libsmooth/ restartssh.c setuid.o ../install+setup/libsmooth/varval.o -o $@
96
d56fc335
MT
97squidctrl: squidctrl.c setuid.o ../install+setup/libsmooth/varval.o
98 $(COMPILE) -I../install+setup/libsmooth/ squidctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
cd1a2927
MT
99
100restartsnort: restartsnort.c setuid.o ../install+setup/libsmooth/varval.o
101 $(COMPILE) -I../install+setup/libsmooth/ restartsnort.c setuid.o ../install+setup/libsmooth/varval.o -o $@
102
103restartsyslogd: restartsyslogd.c setuid.o ../install+setup/libsmooth/varval.o
104 $(COMPILE) -I../install+setup/libsmooth/ restartsyslogd.c setuid.o ../install+setup/libsmooth/varval.o -o $@
105
106restartwireless: restartwireless.c setuid.o ../install+setup/libsmooth/varval.o
107 $(COMPILE) -I../install+setup/libsmooth/ restartwireless.c setuid.o ../install+setup/libsmooth/varval.o -o $@
108
109ipsecctrl: ipsecctrl.c setuid.o ../install+setup/libsmooth/varval.o
110 $(COMPILE) -I../install+setup/libsmooth/ ipsecctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
111
a68fedca
MT
112getipstat: getipstat.c setuid.o ../install+setup/libsmooth/varval.o
113 $(COMPILE) -I../install+setup/libsmooth/ getipstat.c setuid.o ../install+setup/libsmooth/varval.o -o $@