$OpenBSD: patch-Makefile,v 1.3 2002/12/11 19:19:20 couderc Exp $ --- Makefile.orig Thu Nov 14 18:09:54 2002 +++ Makefile Wed Dec 11 20:13:32 2002 @@ -2,12 +2,12 @@ # $Id: patch-Makefile,v 1.3 2002/12/11 19:19:20 couderc Exp $ # -BINDIR = /usr/local/bin -MANDIR = /usr/local/man/man8 +BINDIR ?= ${PREFIX}/bin +MANDIR ?= ${PREFIX}/man/man8 -CC = gcc +CC ?= cc # XPG3 regular expressions (GNU/BSD/SVR4) -CFLAGS = -Wall -O -DUSE_REGEXP +CFLAGS += -DUSE_REGEXP # Others #CFLAGS = -Wall -O @@ -16,7 +16,7 @@ PROG = sma OBJS = sma.o getopt.o parse.o utils.o hash.o html.o ascii.o init.o $(PROG): $(OBJS) - $(CC) $(CFLAGS) -o $(PROG) $(OBJS) + $(CC) $(LDFLAGS) -o $(PROG) $(OBJS) cp docs/$(MAN) . clean: