]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/misc-progs/Makefile
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into asterisk-update
[people/pmueller/ipfire-2.x.git] / src / misc-progs / Makefile
CommitLineData
70df8302
MT
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
5a2ac8f7
MT
21CC = gcc
22CFLAGS ?= -O2 -Wall
23LIBS = -lsmooth -lnewt
cd1a2927
MT
24
25PROGS = iowrap
9efd8d1c 26SUID_PROGS = squidctrl sshctrl ipfirereboot \
3ef6c343 27 ipsecctrl timectrl dhcpctrl snortctrl \
98bdae8a 28 applejuicectrl rebuildhosts backupctrl \
8039a710 29 logwatch openvpnctrl firewallctrl \
cacc8360 30 wirelessctrl getipstat qosctrl launch-ether-wake \
900832fa 31 redctrl syslogdctrl extrahdctrl sambactrl upnpctrl tripwirectrl \
69fe68ee 32 smartctrl clamavctrl addonctrl pakfire mpfirectrl wlanapctrl \
75bc929e 33 setaliases urlfilterctrl updxlratorctrl fireinfoctrl rebuildroutes \
27cb7805 34 getconntracktable wirelessclient dnsmasqctrl torctrl
61027579 35SUID_UPDX = updxsetperms
cd1a2927 36
5a2ac8f7
MT
37OBJS = $(patsubst %,%.o,$(PROGS) $(SUID_PROGS))
38
39install: all
cd1a2927
MT
40 install -m 755 $(PROGS) /usr/local/bin
41 install -m 4750 -g nobody $(SUID_PROGS) /usr/local/bin
42
5a2ac8f7 43all: $(PROGS) $(SUID_PROGS)
cd1a2927 44
5a2ac8f7 45clean:
a19f3396 46 -rm -f $(PROGS) $(SUID_PROGS) *.o core
cd1a2927
MT
47
48######
49
5a2ac8f7
MT
50%.o: %.c
51 $(CC) $(CFLAGS) -c $< -o $@
cd1a2927
MT
52
53setuid.o: setuid.c setuid.h
5a2ac8f7 54 $(CC) $(CFLAGS) -c $< -o $@
27cb7805 55
5a2ac8f7
MT
56$(PROGS) $(SUID_PROGS): setuid.o | $(OBJS)
57 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $@.o $< $(LIBS)