Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / rp-l2tp / handlers / Makefile
blob7c94a805eaa051804ba218dfd8ec8ec143b84cf3
1 # $Id: Makefile,v 1.1.48.1 2005/08/08 12:05:25 honor Exp $
2 # Makefile for LNS handlers
3 # LIC: GPL
5 prefix=/usr
6 exec_prefix=${prefix}
7 mandir=${prefix}/man
8 docdir=/usr/doc/rp-pppoe-$(VERSION)
9 install=/usr/bin/install -c
10 install_dir=/usr/bin/install -c -d
11 sbindir=${exec_prefix}/sbin
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 -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