URI:
       Makefile: group flags per OpenBSD or Linux - susmb - fork from usmb 20130204: mount SMB/CIFS shares via FUSE
  HTML git clone git://git.codemadness.org/susmb
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit dfdccace2be9448be27d3b6b3f07997e35fe8968
   DIR parent fc795156750481a45362c97f71506cb0d3d18314
  HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sun, 22 Feb 2026 13:40:28 +0100
       
       Makefile: group flags per OpenBSD or Linux
       
       Diffstat:
         M Makefile                            |      29 ++++++++++++-----------------
       
       1 file changed, 12 insertions(+), 17 deletions(-)
       ---
   DIR diff --git a/Makefile b/Makefile
       @@ -13,33 +13,28 @@ SUSMB_CFLAGS = ${CFLAGS}
        SUSMB_LDFLAGS = ${LDFLAGS}
        SUSMB_CPPFLAGS = -D_DEFAULT_SOURCE
        
       -# test: debug
       -#SUSMB_CFLAGS = -O0 -g -ggdb -Wall -Wextra -pedantic -Wformat-security -Winit-self -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations
       -
       -# Linux
       -#SUSMB_CFLAGS += -D_GNU_SOURCE
       -# Linux: use libbsd (arc4random, etc).
       -#SUSMB_LDFLAGS += -lbsd
       -
       +# OpenBSD
        # pkg-config --cflags smbclient
        SMBCLIENT_CFLAGS = -I/usr/local/include/samba-4.0
       -# Linux:
       -#SMBCLIENT_CFLAGS = -I/usr/include/samba-4.0
        # pkg-config --libs smbclient
        SMBCLIENT_LDFLAGS = -L/usr/local/lib -lsmbclient
       -# Linux:
       -#SMBCLIENT_LDFLAGS = -lsmbclient
       -
        # pkg-config --cflags fuse
        FUSE_CFLAGS = -I/usr/local/include
       -# Linux:
       -#FUSE_CFLAGS = -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse
       -
        # pkg-config --libs fuse
        FUSE_LDFLAGS = -lfuse
       -# Linux:
       +
       +# Linux
       +#SUSMB_CFLAGS += -D_GNU_SOURCE
       +# Linux: use libbsd (for arc4random, etc).
       +#SUSMB_LDFLAGS += -lbsd
       +#SMBCLIENT_CFLAGS = -I/usr/include/samba-4.0
       +#SMBCLIENT_LDFLAGS = -lsmbclient
       +#FUSE_CFLAGS = -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse
        #FUSE_LDFLAGS = -lfuse -pthread
        
       +# test: debug
       +#SUSMB_CFLAGS = -O0 -g -ggdb -Wall -Wextra -pedantic -Wformat-security -Winit-self -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations
       +
        BIN = ${NAME}
        SCRIPTS =
        SRC = ${BIN:=.c}