Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / rp-l2tp / Makefile.in
blobe5ebf5cee05863399d21efb7bc5cfdf0e04a88fb
1 # @configure_input@
2 #***********************************************************************
4 # Makefile
6 # Makefile for L2TP code.
8 # Copyright (C) 2002 Roaring Penguin Software Inc.
10 # This software may be distributed under the terms of the GNU General
11 # Public License, Version 2, or (at your option) any later version.
13 # LIC: GPL
15 # $Id: Makefile.in,v 1.1.48.1 2005/08/08 12:05:25 honor Exp $
16 #***********************************************************************
18 VERSION=0.4
20 DEFINES=
21 prefix=@prefix@
22 exec_prefix=@exec_prefix@
23 mandir=@mandir@
24 docdir=@prefix@/doc/l2tp-$(VERSION)
25 install=@INSTALL@
26 install_dir=@INSTALL@ -d
27 sbindir=@sbindir@
29 OBJS=auth.o debug.o dgram.o main.o md5.o network.o options.o peer.o session.o tunnel.o utils.o
30 EXTRA_LIBS=@LIBEVENT@/*.o -ldl
32 SRCS=$(OBJS:.o=.c)
33 CFLAGS=@CFLAGS@ -I.. -I@LIBEVENT@ -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(prefix)\"
35 TARGETS=l2tpd libl2tp.a handlers
37 all: $(TARGETS)
39 libl2tp.a: $(OBJS)
40 rm -f $@
41 @AR@ -rc $@ $^
42 @RANLIB@ $@ || true
44 l2tpd: libl2tp.a libevent/libevent.a
45 $(MAKE) -C handlers
46 @CC@ -o l2tpd -rdynamic $(OBJS) $(EXTRA_LIBS)
48 libevent/libevent.a:
49 test -d libevent || ln -s ../libevent .
50 $(MAKE) -C libevent
52 %.o: %.c
53 @CC@ -c -o $@ $(CFLAGS) $<
55 depend: .depend
57 .depend: $(SRCS)
58 @CC@ -M $(CFLAGS) $^ > .depend
60 handlers:
61 $(MAKE) -C handlers
63 # Release requires GNU tar!!
64 release: FORCE
65 rm -f rp-l2tp-$(VERSION).tar.gz
66 make -C libevent/Doc
67 ./make-release.sh $(VERSION)
68 tar cvhf rp-l2tp-$(VERSION).tar rp-l2tp-$(VERSION)
69 gzip -v -9 rp-l2tp-$(VERSION).tar
71 clean:
72 rm -f *.o *.a *~
73 rm -f l2tpd
74 $(MAKE) -C handlers clean
75 test -d libevent && $(MAKE) -C libevent clean
77 distclean: clean
78 rm -f Makefile config.cache .depend
79 $(MAKE) -C handlers distclean
81 -include .depend
83 install: all
84 -mkdir -p $(RPM_INSTALL_ROOT)$(DESTDIR)$(sbindir)
85 $(install) -m 755 -s l2tpd $(RPM_INSTALL_ROOT)$(DESTDIR)$(sbindir)
86 -mkdir -p $(RPM_INSTALL_ROOT)$(DESTDIR)/etc/l2tp
87 $(install) -m 644 l2tp.conf $(RPM_INSTALL_ROOT)$(DESTDIR)/etc/l2tp/l2tp.conf.example
88 -mkdir -p $(RPM_INSTALL_ROOT)$(DESTDIR)$(mandir)/man8
89 -mkdir -p $(RPM_INSTALL_ROOT)$(DESTDIR)$(mandir)/man5
90 $(install) -m 644 man/l2tpd.8 $(RPM_INSTALL_ROOT)$(DESTDIR)$(mandir)/man8
91 $(install) -m 644 man/l2tp.conf.5 $(RPM_INSTALL_ROOT)$(DESTDIR)$(mandir)/man5
93 $(MAKE) -C handlers install
95 FORCE:
97 .PHONY: handlers
99 .PHONY: FORCE