$NetBSD: patch-aa,v 1.8 2009/08/19 04:04:40 yyamano Exp $ --- Makefile.orig 2002-10-27 17:21:52.000000000 -0800 +++ Makefile @@ -1,7 +1,7 @@ # Define your C compiler. I recommend gcc if you have it. # MacOS users should use "cc" even though it's really "gcc". # -CC = gcc +CC ?= cc #CC = cc # Define your optimization flags. Most compilers understand -O and -O2, @@ -14,7 +14,7 @@ OPTS = -O2 #-malign-jumps=2 # Define where you want Frotz installed. Usually this is /usr/local -PREFIX = /usr/local +#PREFIX = /usr/local MAN_PREFIX = $(PREFIX) #MAN_PREFIX = /usr/local/share @@ -24,7 +24,7 @@ CONFIG_DIR = $(PREFIX)/etc # Define where you want Frotz to look for frotz.conf. # -CONFIG_DIR = /usr/local/etc +CONFIG_DIR = ${PREFIX}/etc #CONFIG_DIR = /etc #CONFIG_DIR = /usr/pkg/etc #CONFIG_DIR = @@ -163,7 +163,7 @@ FLAGS = $(OPTS) $(COMP_DEFS) $(INCL) $(NAME): $(NAME)-curses $(NAME)-curses: soundcard.h $(COMMON_TARGET) $(CURSES_TARGET) - $(CC) -o $(BINNAME)$(EXTENSION) $(TARGETS) $(LIB) $(CURSES) \ + $(CC) $(LDFLAGS) -o $(BINNAME)$(EXTENSION) $(TARGETS) $(LIB) $(CURSES) \ $(SOUND_LIB) all: $(NAME) d$(NAME)