$NetBSD: patch-aa,v 1.2 2026/03/22 10:31:53 nia Exp $

--- Makefile.orig	1997-02-22 08:26:18.000000000 +0000
+++ Makefile
@@ -34,25 +34,21 @@
 #
 #DEFS = -DUNIX -DMALLOCH
 
-DEFS = -DUNIX -DSTDLIB -D_NEXT_SOURCE -ansi -pedantic
-
-CFLAGS = -O ${DEFS}
-
 HDR = ansi.h cawf.h cawflib.h proto.h regexp.h regmagic.h
 
-SRC = cawf.c device.c error.c expand.c expr.c getopt.c macsup.c nreq.c \
+SRC = cawf.c device.c error.c expand.c expr.c macsup.c nreq.c \
       output.c pass2.c pass3.c  regerror.c regexp.c store.c string.c
 
-OBJ = cawf.o device.o error.o expand.o expr.o getopt.o macsup.o nreq.o \
+OBJ = cawf.o device.o error.o expand.o expr.o macsup.o nreq.o \
       output.o pass2.o pass3.o  regerror.o regexp.o store.o string.o
 
 all:	bsfilt cawf
 
 bsfilt: bsfilt.c
-	${CC} ${CFLAGS} bsfilt.c -o bsfilt
+	${COMPILE.c} -o bsfilt bsfilt.c
 
 cawf:	${OBJ}
-	${CC} ${CFLAGS} ${OBJ} -o cawf
+	${LINK.c} -o cawf ${OBJ}
 
 clean:
 	rm -f *.o a.out core *errs bsfilt cawf
