projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unfsck 4->8 indenting change
[l2tpns.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
b9007fa
..
8f64ef2
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-27,12
+27,13
@@
OBJS= md5.o \
tbf.o \
bgp.o \
tbf.o \
bgp.o \
-PLUGINS=garden.so autothrottle.so autosnoop.so
+PLUGINS=garden.so autothrottle.so autosnoop.so stripdomain.so
+TARGETS=l2tpns nsctl generateload bounce $(PLUGINS)
-all:
l2tpns nsctl $(PLUGIN
S)
+all:
$(TARGET
S)
clean:
clean:
- /bin/rm -f *.o *.so
l2tpns nsctl
+ /bin/rm -f *.o *.so
$(TARGETS)
depend:
(sed -n 'p; /^## Dependencies: (autogenerated) ##/q' Makefile && \
depend:
(sed -n 'p; /^## Dependencies: (autogenerated) ##/q' Makefile && \
@@
-56,8
+57,8
@@
install: all
else \
echo '***' Installing default config files in $(etcdir) - remember to adjust them; \
$(INSTALL) -D -o root -g root -m 0600 etc/startup-config.default $(etcdir)/startup-config; \
else \
echo '***' Installing default config files in $(etcdir) - remember to adjust them; \
$(INSTALL) -D -o root -g root -m 0600 etc/startup-config.default $(etcdir)/startup-config; \
- $(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; \
+ $(INSTALL) -D -o root -g root -m 0644 etc/ip_pool.default $(etcdir)/ip_pool; \
+ $(INSTALL) -D -o root -g root -m 0600 etc/users.default $(etcdir)/users; \
fi
for plugin in $(PLUGINS); do \
fi
for plugin in $(PLUGINS); do \
@@
-74,6
+75,12
@@
l2tpns: $(OBJS)
nsctl: nsctl.o control.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
nsctl: nsctl.o control.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
+generateload: test/generateload.o
+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
+
+bounce: test/bounce.o
+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
+
%.o: %.c
$(CC) -c $(CFLAGS) -o $@ $<
%.o: %.c
$(CC) -c $(CFLAGS) -o $@ $<