2 top_srcdir
= @top_srcdir@
5 exec_prefix = @
exec_prefix@
9 libdir = @
prefix@
/lib
/l2tpns
37 all: l2tpns cluster_master nsctl
$(PLUGINS
)
40 $(CC
) $(CFLAGS
) -o
$@
$^
$(LIBS
) $(DEFS
)
42 cluster_master
: cluster_master.o ll.o cluster.o util.o
43 $(CC
) $(CFLAGS
) -o
$@
$^
$(DEFS
)
45 nsctl
: nsctl.o control.o
46 $(CC
) $(CFLAGS
) -o
$@
$^
$(DEFS
)
49 /bin
/rm -f
*.o
*.so l2tpns cluster_master nsctl
52 /bin
/rm -f Makefile config.h config.status config.cache config.log
55 $(INSTALL
) -D
-o root
-g root
-m
0755 l2tpns
$(bindir)/l2tpns
56 $(INSTALL
) -D
-o root
-g root
-m
0755 cluster_master
$(bindir)/cluster_master
57 $(INSTALL
) -D
-o root
-g root
-m
0755 nsctl
$(bindir)/nsctl
58 $(INSTALL
) -D
-o root
-g root
-m
0600 etc
/l2tpns.cfg.default
$(etcdir
)/l2tpns.cfg
59 $(INSTALL
) -D
-o root
-g root
-m
0644 etc
/ip_pool.default
$(etcdir
)/l2tpns.ip_pool
60 $(INSTALL
) -D
-o root
-g root
-m
0600 etc
/users.default
$(etcdir
)/l2tpns.users
61 for PLUGIN in
$(PLUGINS
); do
62 $(INSTALL
) -o root
-g root
-m
0755 $(PLUGIN
) $(libdir)/$(PLUGIN
)
64 if
[ ! -e
/dev
/net
/tun
]; then
66 mknod
/dev
/net
/tun c
10 200
70 $(CC
) -fPIC
-shared
-o
$@
$^
$(LDFLAGS
) $(LIBS
) $(LIBPATH
)