1 # $Id: Makefile,v 1.1.48.1 2005/08/08 12:05:25 honor Exp $
2 # Makefile for LNS handlers
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
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
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
$@
$^
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