X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/a17df3e475822332b4bdaee70992b44042316d32..a109954b2c321e4ac88557abf9fbbce27329dae5:/Makefile?ds=inline diff --git a/Makefile b/Makefile index b9007fa..015aa63 100644 --- a/Makefile +++ b/Makefile @@ -27,12 +27,13 @@ OBJS= md5.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 $(PLUGINS) +all: $(TARGETS) clean: - /bin/rm -f *.o *.so l2tpns nsctl + /bin/rm -f *.o *.so $(TARGETS) depend: (sed -n 'p; /^## Dependencies: (autogenerated) ##/q' Makefile && \ @@ -74,6 +75,12 @@ l2tpns: $(OBJS) 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 $@ $<