Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / rp-l2tp / handlers / Makefile.in
blob5fe21dc4e7c1c8e21648f303909235931966ba6a
1 # $Id: Makefile.in,v 1.1.48.1 2005/08/08 12:05:25 honor Exp $
2 # Makefile for LNS handlers
3 # LIC: GPL
5 prefix=@prefix@
6 exec_prefix=@exec_prefix@
7 mandir=@mandir@
8 docdir=@prefix@/doc/rp-pppoe-$(VERSION)
9 install=@INSTALL@
10 install_dir=@INSTALL@ -d
11 sbindir=@sbindir@
13 HANDLERS=sync-pppd.so cmd.so
15 OBJS=pty.o sync-pppd.o dstring.o
16 SRCS=$(OBJS:.o=.c)
17 CFLAGS=-g -O2 -I.. -I../libevent -I../../libevent -I. -Wall
19 all: $(HANDLERS) l2tp-control
21 l2tp-control: cmd-control.o
22 @CC@ -o l2tp-control cmd-control.o
24 cmd-control.o: cmd-control.c
25 @CC@ -c -o $@ $^
27 %.o: %.c
28 @CC@ $(CFLAGS) -fPIC -c -o $@ $<
30 sync-pppd.so: pty.o sync-pppd.o
31 @CC@ -shared -o $@ $^
33 cmd.so: cmd.o dstring.o
34 @CC@ -shared -o $@ $^
36 clean:
37 rm -f *.so *.o *~
38 rm -f l2tp-control
40 install: all
41 -mkdir -p $(RPM_INSTALL_ROOT)$(sbindir)
42 -mkdir -p $(RPM_INSTALL_ROOT)$(prefix)/lib/l2tp/plugins
43 $(install) -m 755 -s l2tp-control $(RPM_INSTALL_ROOT)$(sbindir)
44 $(install) -m 755 $(HANDLERS) $(RPM_INSTALL_ROOT)$(prefix)/lib/l2tp/plugins
45 distclean: clean