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