+l2tpns: $(OBJS)
+ $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS) -lcli -ldl
+
+nsctl: nsctl.o control.o
+ $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)
+
+generateload: test/generateload.o
+ $(LD) $(LDFLAGS) -o $@ $^ # -lpthread
+
+bounce: test/bounce.o
+ $(LD) $(LDFLAGS) -o $@ $^
+
+%.o: %.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
+
+%.so: %.c
+ $(CC) -fPIC -shared $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $<
+
+# install config files only if a startup-config does not exist yet
+# this does not interfere when building rpms or debs and makes
+# fast upgrading via make install possible
+