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.

34 lines
780 B

  1. From https://github.com/darkk/redsocks/pull/105
  2. commit d5cabecb6a8369fb2bd883b43205035dd87187a5
  3. Author: a7ypically <a7ypically@gmail.com>
  4. Date: Sat Jun 3 21:33:20 2017 +0300
  5. Update Makefile
  6. --- a/Makefile
  7. +++ b/Makefile
  8. @@ -26,11 +26,11 @@ tags: *.c *.h
  9. ctags -R
  10. $(CONF):
  11. - @case `uname` in \
  12. - Linux*) \
  13. + @case `$(CC) -dumpmachine` in \
  14. + *linux*) \
  15. echo "#define USE_IPTABLES" >$(CONF) \
  16. ;; \
  17. - OpenBSD) \
  18. + *openbsd*) \
  19. echo "#define USE_PF" >$(CONF) \
  20. ;; \
  21. *) \
  22. @@ -66,7 +66,7 @@ gen/.build:
  23. base.c: $(CONF)
  24. $(DEPS): $(SRCS)
  25. - gcc -MM $(SRCS) 2>/dev/null >$(DEPS) || \
  26. + $(CC) -MM $(SRCS) 2>/dev/null >$(DEPS) || \
  27. ( \
  28. for I in $(wildcard *.h); do \
  29. export $${I//[-.]/_}_DEPS="`sed '/^\#[ \t]*include \?"\(.*\)".*/!d;s//\1/' $$I`"; \