--- Makefile.orig 1997-05-15 15:50:56 UTC +++ Makefile @@ -2,12 +2,12 @@ RM = rm -f # Last modified: Sat Apr 19 1997 RM = rm -f -CC = gcc -CCFLAGS = -O +CC? = gcc +CCFLAGS?= ${CFLAGS} -PREFIX = /usr/local +PREFIX?= /usr/local BIN = $(PREFIX)/bin -MAN = $(PREFIX)/man/man1 +MAN = ${PREFIX}/man/man1 # you may predefine some of the default settings DEFAULT_FONT = \"Courier\" @@ -31,21 +31,20 @@ PREP_OPTIONS = \ -DSTRINGS=$(STRINGS_FONT) -DPREPROC=$(PREPROC_FONT)\ -DKEYWORD=$(KEYWORD_FONT) -DTYPE=$(TYPE_FONT)\ -DLNUMBER=$(LNUMBER_FONT) -DFUNCTION=$(FUNCTION_FONT)\ - -DDIM=$(COMMENT_DIMMING_DEGREE)\ - -D$(DEFAULT_PAPER_TYPE) + -DDIM=$(COMMENT_DIMMING_DEGREE) all: compile install: bininstall maninstall bininstall: c2ps - install -m 755 c2ps $(BIN) + ${BSD_INSTALL_PROGRAM} c2ps $(BIN) maninstall: c2ps.1 - install -m 644 c2ps.1 $(MAN) + ${BSD_INSTALL_DATA} c2ps.1 $(MAN) compile: c2ps.c - $(CC) $(PREP_OPTIONS) $(CCFLAGS) -o c2ps c2ps.c + $(CC) $(PREP_OPTIONS) $(CCFLAGS) $(CPPFLAGS) -o c2ps c2ps.c -L${LOCALBASE}/lib -lm -lpaper clean: $(RM) c2ps *.o core *~