HinzugefĆ¼gt:
[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 restartdhcp restartsnort \
8 restartsquid restartssh ipfirereboot \
9 ipfirebkcfg ipfirerscfg installpackage installfcdsl ipsecctrl \
10 setaliases ipfirebackup restartntpd \
11 restartapplejuice setdate rebuildhosts \
12 restartsyslogd logwatch openvpnctrl
13 # restartwireless
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 setaliases: setaliases.c setuid.o ../install+setup/libsmooth/varval.o
43 $(COMPILE) -I../install+setup/libsmooth/ setaliases.c setuid.o ../install+setup/libsmooth/varval.o -o $@
44
45 setdmzholes: setdmzholes.c setuid.o ../install+setup/libsmooth/varval.o
46 $(COMPILE) -I../install+setup/libsmooth/ setdmzholes.c setuid.o ../install+setup/libsmooth/varval.o -o $@
47
48 setportfw: setportfw.c setuid.o ../install+setup/libsmooth/varval.o
49 $(COMPILE) -I../install+setup/libsmooth/ setportfw.c setuid.o ../install+setup/libsmooth/varval.o -o $@
50
51 setfilters: setfilters.c setuid.o ../install+setup/libsmooth/varval.o
52 $(COMPILE) -I../install+setup/libsmooth/ setfilters.c setuid.o ../install+setup/libsmooth/varval.o -o $@
53
54 rebuildhosts: rebuildhosts.c setuid.o ../install+setup/libsmooth/varval.o
55 $(COMPILE) -I../install+setup/libsmooth/ rebuildhosts.c setuid.o ../install+setup/libsmooth/varval.o -o $@
56
57 restartapplejuice: restartapplejuice.c setuid.o ../install+setup/libsmooth/varval.o
58 $(COMPILE) -I../install+setup/libsmooth/ restartapplejuice.c setuid.o ../install+setup/libsmooth/varval.o -o $@
59
60 restartdhcp: restartdhcp.c setuid.o ../install+setup/libsmooth/varval.o
61 $(COMPILE) -I../install+setup/libsmooth/ restartdhcp.c setuid.o ../install+setup/libsmooth/varval.o -o $@
62
63 restartssh: restartssh.c setuid.o ../install+setup/libsmooth/varval.o
64 $(COMPILE) -I../install+setup/libsmooth/ restartssh.c setuid.o ../install+setup/libsmooth/varval.o -o $@
65
66 restartsquid: restartsquid.c setuid.o ../install+setup/libsmooth/varval.o
67 $(COMPILE) -I../install+setup/libsmooth/ restartsquid.c setuid.o ../install+setup/libsmooth/varval.o -o $@
68
69 restartsnort: restartsnort.c setuid.o ../install+setup/libsmooth/varval.o
70 $(COMPILE) -I../install+setup/libsmooth/ restartsnort.c setuid.o ../install+setup/libsmooth/varval.o -o $@
71
72 restartsyslogd: restartsyslogd.c setuid.o ../install+setup/libsmooth/varval.o
73 $(COMPILE) -I../install+setup/libsmooth/ restartsyslogd.c setuid.o ../install+setup/libsmooth/varval.o -o $@
74
75 restartwireless: restartwireless.c setuid.o ../install+setup/libsmooth/varval.o
76 $(COMPILE) -I../install+setup/libsmooth/ restartwireless.c setuid.o ../install+setup/libsmooth/varval.o -o $@
77
78 ipsecctrl: ipsecctrl.c setuid.o ../install+setup/libsmooth/varval.o
79 $(COMPILE) -I../install+setup/libsmooth/ ipsecctrl.c setuid.o ../install+setup/libsmooth/varval.o -o $@
80
81 ipfirebackup: ipfirebackup.c setuid.o
82 $(COMPILE) -lcrypt ipfirebackup.c setuid.o -o $@