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