From d5cabecb6a8369fb2bd883b43205035dd87187a5 Mon Sep 17 00:00:00 2001 From: a7ypically Date: Sat, 3 Jun 2017 21:33:20 +0300 Subject: [PATCH] Update Makefile --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index cc1587e4..7425fa76 100644 --- a/Makefile +++ b/Makefile @@ -26,11 +26,11 @@ tags: *.c *.h ctags -R $(CONF): - @case `uname` in \ - Linux*) \ + @case `$(CC) -dumpmachine` in \ + *linux*) \ echo "#define USE_IPTABLES" >$(CONF) \ ;; \ - OpenBSD) \ + *openbsd*) \ echo "#define USE_PF" >$(CONF) \ ;; \ *) \ @@ -66,7 +66,7 @@ gen/.build: base.c: $(CONF) $(DEPS): $(SRCS) - gcc -MM $(SRCS) 2>/dev/null >$(DEPS) || \ + $(CC) -MM $(SRCS) 2>/dev/null >$(DEPS) || \ ( \ for I in $(wildcard *.h); do \ export $${I//[-.]/_}_DEPS="`sed '/^\#[ \t]*include \?"\(.*\)".*/!d;s//\1/' $$I`"; \