projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Drop sendccp. If client sends a CCP request for compression just NAK it.
[l2tpns.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
5d61124
..
940a505
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-28,21
+28,27
@@
INCLUDES = -I.
CPPFLAGS = $(INCLUDES) $(DEFINES)
CFLAGS = -Wall $(OPTIM)
LDFLAGS =
CPPFLAGS = $(INCLUDES) $(DEFINES)
CFLAGS = -Wall $(OPTIM)
LDFLAGS =
-LDLIBS =
-lm
+LDLIBS =
INSTALL = install -c -D -o root -g root
INSTALL = install -c -D -o root -g root
+l2tpns.LIBS = -lm -lcli -ldl
+
OBJS = arp.o bgp.o cli.o cluster.o constants.o control.o icmp.o \
l2tpns.o ll.o md5.o ppp.o radius.o tbf.o util.o
OBJS = arp.o bgp.o cli.o cluster.o constants.o control.o icmp.o \
l2tpns.o ll.o md5.o ppp.o radius.o tbf.o util.o
+PROGRAMS = l2tpns nsctl
PLUGINS = garden.so throttlectl.so autothrottle.so snoopctl.so \
autosnoop.so stripdomain.so setrxspeed.so
PLUGINS = garden.so throttlectl.so autothrottle.so snoopctl.so \
autosnoop.so stripdomain.so setrxspeed.so
-T
ARGETS = l2tpns nsctl generateload bounce $(PLUGINS)
+T
ESTS = generateload bounce
-all: $(TARGETS)
+all: programs plugins tests
+programs: $(PROGRAMS)
+plugins: $(PLUGINS)
+tests: $(TESTS)
clean:
clean:
- rm -f *.o test/*.o $(
TARGE
TS) Makefile.tmp Makefile.bak
+ rm -f *.o test/*.o $(
PROGRAMS) $(PLUGINS) $(TES
TS) Makefile.tmp Makefile.bak
depend:
(sed -n 'p; /^## Dependencies: (autogenerated) ##/q' Makefile && \
depend:
(sed -n 'p; /^## Dependencies: (autogenerated) ##/q' Makefile && \
@@
-52,16
+58,16
@@
depend:
mv Makefile.tmp Makefile
l2tpns: $(OBJS)
mv Makefile.tmp Makefile
l2tpns: $(OBJS)
- $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)
-lcli -ldl
+ $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)
$($@.LIBS)
nsctl: nsctl.o control.o
nsctl: nsctl.o control.o
- $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)
+ $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)
$($@.LIBS)
generateload: test/generateload.o
generateload: test/generateload.o
- $(LD) $(LDFLAGS) -o $@ $^
# -lpthread
+ $(LD) $(LDFLAGS) -o $@ $^
$(LDLIBS) $($@.LIBS)
bounce: test/bounce.o
bounce: test/bounce.o
- $(LD) $(LDFLAGS) -o $@ $^
+ $(LD) $(LDFLAGS) -o $@ $^
$(LDLIBS) $($@.LIBS)
%.o: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
%.o: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<