Neue UPNP.CGI vom Christian
[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
7SUID_PROGS = setdmzholes setportfw setfilters setxtaccess restartdhcp restartsnort \
a79906a4
MT
8 restartsquid restartssh ipfirereboot \
9 ipfirebkcfg ipfirerscfg installpackage installfcdsl ipsecctrl \
10 setaliases ipfirebackup restartntpd \
11 restartapplejuice setdate rebuildhosts \
a68fedca 12 restartsyslogd logwatch openvpnctrl timecheckctrl \
d95bfe98 13 restartwireless getipstat qosctrl launch-ether-wake \
14cc7eac 14 redctrl extrahdctrl sambactrl
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 $@
14cc7eac
MT
51
52sambactrl: sambactrl.c setuid.o ../install+setup/libsmooth/varval.o
53 $(COMPILE) -I../install+setup/libsmooth/ sambactrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
b684b13b 54
4e565351
MT
55launch-ether-wake: launch-ether-wake.c setuid.o ../install+setup/libsmooth/varval.o
56 $(COMPILE) -I../install+setup/libsmooth/ launch-ether-wake.c setuid.o ../install+setup/libsmooth/varval.o -o $@
57
cd1a2927
MT
58setaliases: setaliases.c setuid.o ../install+setup/libsmooth/varval.o
59 $(COMPILE) -I../install+setup/libsmooth/ setaliases.c setuid.o ../install+setup/libsmooth/varval.o -o $@
60
61setdmzholes: setdmzholes.c setuid.o ../install+setup/libsmooth/varval.o
62 $(COMPILE) -I../install+setup/libsmooth/ setdmzholes.c setuid.o ../install+setup/libsmooth/varval.o -o $@
63
64setportfw: setportfw.c setuid.o ../install+setup/libsmooth/varval.o
65 $(COMPILE) -I../install+setup/libsmooth/ setportfw.c setuid.o ../install+setup/libsmooth/varval.o -o $@
66
67setfilters: setfilters.c setuid.o ../install+setup/libsmooth/varval.o
68 $(COMPILE) -I../install+setup/libsmooth/ setfilters.c setuid.o ../install+setup/libsmooth/varval.o -o $@
69
70rebuildhosts: rebuildhosts.c setuid.o ../install+setup/libsmooth/varval.o
71 $(COMPILE) -I../install+setup/libsmooth/ rebuildhosts.c setuid.o ../install+setup/libsmooth/varval.o -o $@
72
a79906a4
MT
73restartapplejuice: restartapplejuice.c setuid.o ../install+setup/libsmooth/varval.o
74 $(COMPILE) -I../install+setup/libsmooth/ restartapplejuice.c setuid.o ../install+setup/libsmooth/varval.o -o $@
75
cd1a2927
MT
76restartdhcp: restartdhcp.c setuid.o ../install+setup/libsmooth/varval.o
77 $(COMPILE) -I../install+setup/libsmooth/ restartdhcp.c setuid.o ../install+setup/libsmooth/varval.o -o $@
78
cd1a2927
MT
79restartssh: restartssh.c setuid.o ../install+setup/libsmooth/varval.o
80 $(COMPILE) -I../install+setup/libsmooth/ restartssh.c setuid.o ../install+setup/libsmooth/varval.o -o $@
81
82restartsquid: restartsquid.c setuid.o ../install+setup/libsmooth/varval.o
83 $(COMPILE) -I../install+setup/libsmooth/ restartsquid.c setuid.o ../install+setup/libsmooth/varval.o -o $@
84
85restartsnort: restartsnort.c setuid.o ../install+setup/libsmooth/varval.o
86 $(COMPILE) -I../install+setup/libsmooth/ restartsnort.c setuid.o ../install+setup/libsmooth/varval.o -o $@
87
88restartsyslogd: restartsyslogd.c setuid.o ../install+setup/libsmooth/varval.o
89 $(COMPILE) -I../install+setup/libsmooth/ restartsyslogd.c setuid.o ../install+setup/libsmooth/varval.o -o $@
90
91restartwireless: restartwireless.c setuid.o ../install+setup/libsmooth/varval.o
92 $(COMPILE) -I../install+setup/libsmooth/ restartwireless.c setuid.o ../install+setup/libsmooth/varval.o -o $@
93
94ipsecctrl: ipsecctrl.c setuid.o ../install+setup/libsmooth/varval.o
95 $(COMPILE) -I../install+setup/libsmooth/ ipsecctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
96
39a7cc11
MT
97timecheckctrl: timecheckctrl.c setuid.o ../install+setup/libsmooth/varval.o
98 $(COMPILE) -I../install+setup/libsmooth/ timecheckctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
99
a68fedca
MT
100getipstat: getipstat.c setuid.o ../install+setup/libsmooth/varval.o
101 $(COMPILE) -I../install+setup/libsmooth/ getipstat.c setuid.o ../install+setup/libsmooth/varval.o -o $@
102
a79906a4
MT
103ipfirebackup: ipfirebackup.c setuid.o
104 $(COMPILE) -lcrypt ipfirebackup.c setuid.o -o $@