]> git.ipfire.org Git - ipfire-2.x.git/blob - src/misc-progs/Makefile
Merge branch 'ipsec' into next
[ipfire-2.x.git] / src / misc-progs / Makefile
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 CC = gcc
22 CFLAGS ?= -O2 -Wall
23 LIBS = -lsmooth -lnewt
24
25 PROGS = iowrap
26 SUID_PROGS = squidctrl sshctrl ipfirereboot \
27 ipsecctrl timectrl dhcpctrl snortctrl \
28 applejuicectrl rebuildhosts backupctrl collectdctrl \
29 logwatch wioscan wiohelper openvpnctrl firewallctrl \
30 wirelessctrl getipstat qosctrl launch-ether-wake \
31 redctrl syslogdctrl extrahdctrl sambactrl upnpctrl \
32 smartctrl clamavctrl addonctrl pakfire mpfirectrl wlanapctrl \
33 setaliases urlfilterctrl updxlratorctrl fireinfoctrl rebuildroutes \
34 getconntracktable wirelessclient torctrl ddnsctrl unboundctrl \
35 captivectrl
36 SUID_UPDX = updxsetperms
37
38 OBJS = $(patsubst %,%.o,$(PROGS) $(SUID_PROGS))
39
40 install: all
41 install -m 755 $(PROGS) /usr/local/bin
42 install -m 4750 -g nobody $(SUID_PROGS) /usr/local/bin
43
44 all: $(PROGS) $(SUID_PROGS)
45
46 clean:
47 -rm -f $(PROGS) $(SUID_PROGS) *.o core
48
49 ######
50
51 %.o: %.c
52 $(CC) $(CFLAGS) -c $< -o $@
53
54 setuid.o: setuid.c setuid.h
55 $(CC) $(CFLAGS) -c $< -o $@
56
57 $(PROGS) $(SUID_PROGS): setuid.o | $(OBJS)
58 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $@.o $< $(LIBS)