$OpenBSD: patch-Makefile,v 1.3 2009/06/19 10:19:27 sthen Exp $
--- Makefile.orig	Mon Feb 17 03:18:04 1997
+++ Makefile	Fri Jun 19 11:17:08 2009
@@ -2,7 +2,7 @@
 # Makefile for Samba SMB client/server for unix
 # Copyright Andrew Tridgell 1992,1993,1994
 ###########################################################################
-CC = gcc
+#CC = gcc
 
 # set this to the default group you want your machine to appear in
 # for browsing. This can also be set in nmbd (see nmbd(8))
@@ -147,8 +147,8 @@ GUESTACCOUNT = nobody
 #
 # This is for OpenBSD.
 #
-# FLAGSM = -DOPENBSD -DSHADOW_PWD
-# LIBSM = -lcrypt 
+FLAGSM = -DOPENBSD -DSHADOW_PWD
+LIBSM =
 
 # This is for NetBSD. Add -DNETBSD_1_0 if you are using 1.0
 # contributed by noses@oink.rhein.de
@@ -366,7 +366,7 @@ SRCS = nat.c client.c util.c system.c nmb.c charset.c 
 OBJS = nat.o client.o util.o system.o nmb.o charset.o parse_ip.o
 CFLAGS1 = -DSTEPPING -DSCANNER -DVERBOSE
 CFLAGS2 = -DWORKGROUP=\"$(WORKGROUP)\" -DGUEST_ACCOUNT=\"$(GUESTACCOUNT)\" 
-CFLAGS = $(CFLAGS1) $(CFLAGS2) $(FLAGSM)
+CFLAGS += $(CFLAGS1) $(CFLAGS2) $(FLAGSM)
 LIBS = $(LIBSM)
 
 all : nat
