$NetBSD: patch-Makefile,v 1.3 2012/12/20 21:39:28 joerg Exp $ * Honor user setting CFLAGS. * Do not override FWNAME if passed in --- Makefile.orig 2012-03-05 20:37:13.000000000 +0000 +++ Makefile @@ -11,7 +11,7 @@ # Linux users, please use Makefile.linux : # make -f Makefile.linux -CFLAGS = -pipe -Wall -Os -ansi +CFLAGS += -Wall #CFLAGS = -pipe -Wall -O -g -DDEBUG -ansi CC ?= gcc RM = rm -f @@ -28,7 +28,6 @@ FWNAME = pf .else FWNAME = ipf .endif -.endif # better way to find if we are using ipf or pf .if $(OSNAME) == "FreeBSD" @@ -53,6 +52,8 @@ FWNAME != . /etc/rc.subr; . /etc/rc.conf FWNAME = ipfw .endif +.endif + # Solaris specific CFLAGS .if $(OSNAME) == "SunOS" CFLAGS += -DSOLARIS2=`uname -r | cut -d. -f2`