Initial revision
This commit is contained in:
commit
3aa4eda8b1
42 changed files with 16139 additions and 0 deletions
70
Makefile.in
Normal file
70
Makefile.in
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
subdirs = @subdirs@
|
||||
top_srcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
bindir = @bindir@
|
||||
infodir = @infodir@
|
||||
etcdir = @sysconfdir@
|
||||
libdir = @prefix@/lib/l2tpns
|
||||
|
||||
CC = @CC@
|
||||
CFLAGS=-Wall @CFLAGS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBS = @LIBS@
|
||||
INSTALL = @INSTALL@
|
||||
DEFS = @DEFS@
|
||||
|
||||
OBJS= md5.o \
|
||||
cli.o \
|
||||
l2tpns.o \
|
||||
ppp.o \
|
||||
radius.o \
|
||||
throttle.o \
|
||||
rl.o \
|
||||
ll.o \
|
||||
cluster.o \
|
||||
cluster_slave.o \
|
||||
arp.o \
|
||||
constants.o \
|
||||
ll.o \
|
||||
control.o \
|
||||
util.o \
|
||||
|
||||
PLUGINS=garden.so
|
||||
|
||||
all: l2tpns cluster_master nsctl $(PLUGINS)
|
||||
|
||||
l2tpns: $(OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(DEFS)
|
||||
|
||||
cluster_master: cluster_master.o ll.o cluster.o util.o
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(DEFS)
|
||||
|
||||
nsctl: nsctl.o control.o
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(DEFS)
|
||||
|
||||
clean:
|
||||
/bin/rm -f *.o *.so l2tpns cluster_master nsctl
|
||||
|
||||
distclean:
|
||||
/bin/rm -f Makefile config.h config.status config.cache config.log
|
||||
|
||||
install: all
|
||||
$(INSTALL) -D -o root -g root -m 0755 l2tpns $(bindir)/l2tpns
|
||||
$(INSTALL) -D -o root -g root -m 0755 cluster_master $(bindir)/cluster_master
|
||||
$(INSTALL) -D -o root -g root -m 0755 nsctl $(bindir)/nsctl
|
||||
$(INSTALL) -D -o root -g root -m 0600 etc/l2tpns.cfg.default $(etcdir)/l2tpns.cfg
|
||||
$(INSTALL) -D -o root -g root -m 0644 etc/ip_pool.default $(etcdir)/l2tpns.ip_pool
|
||||
$(INSTALL) -D -o root -g root -m 0600 etc/users.default $(etcdir)/l2tpns.users
|
||||
for PLUGIN in $(PLUGINS); do
|
||||
$(INSTALL) -o root -g root -m 0755 $(PLUGIN) $(libdir)/$(PLUGIN)
|
||||
done
|
||||
if [ ! -e /dev/net/tun ]; then
|
||||
mkdir /dev/net
|
||||
mknod /dev/net/tun c 10 200
|
||||
fi
|
||||
|
||||
%.so: %.c
|
||||
$(CC) -fPIC -shared -o $@ $^ $(LDFLAGS) $(LIBS) $(LIBPATH)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue