You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2 KiB

  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -107,10 +107,10 @@ BINDIR?=$(DESTDIR)${PREFIX}/bin
  4. MANDIR?=$(DESTDIR)${PREFIX}/share/man
  5. -all: $(EXEC) pfc $(CONTROL_EXEC)
  6. +all: $(EXEC) $(CONTROL_EXEC)
  7. clean:
  8. - rm -f $(OBJS) $(EXEC) pfc.o pfc $(CONTROL_EXEC)
  9. + rm -f $(OBJS) $(EXEC) $(CONTROL_EXEC)
  10. $(EXEC): $(OBJS) $(HDRS)
  11. $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
  12. @@ -118,14 +118,10 @@ $(EXEC): $(OBJS) $(HDRS)
  13. $(CONTROL_EXEC): $(CONTROL_SRCS)
  14. $(CC) $(CFLAGS) $(LDFLAGS) $(CONTROL_SRCS) -o $@
  15. -pfc:
  16. - $(CC) $(CFLAGS) -c contrib/pfc.c
  17. - $(CC) $(LDFLAGS) -o pfc pfc.o -lpcap $(LDLIBS)
  18. -
  19. romfs:
  20. $(ROMFSINST) /bin/$(EXEC)
  21. -install: ${EXEC} pfc ${CONTROL_EXEC}
  22. +install: ${EXEC} ${CONTROL_EXEC}
  23. install -d -m 0755 ${SBINDIR}
  24. install -m 0755 $(EXEC) ${SBINDIR}/$(EXEC)
  25. install -d -m 0755 ${MANDIR}/man5
  26. @@ -133,11 +129,6 @@ install: ${EXEC} pfc ${CONTROL_EXEC}
  27. install -m 0644 doc/xl2tpd.8 ${MANDIR}/man8/
  28. install -m 0644 doc/xl2tpd.conf.5 doc/l2tp-secrets.5 \
  29. ${MANDIR}/man5/
  30. - # pfc
  31. - install -d -m 0755 ${BINDIR}
  32. - install -m 0755 pfc ${BINDIR}/pfc
  33. - install -d -m 0755 ${MANDIR}/man1
  34. - install -m 0644 contrib/pfc.1 ${MANDIR}/man1/
  35. # control exec
  36. install -d -m 0755 ${SBINDIR}
  37. install -m 0755 $(CONTROL_EXEC) ${SBINDIR}/$(CONTROL_EXEC)