openbsd-ports/print/mpage/patches/patch-aa
2001-03-16 10:33:41 +00:00

51 lines
1.1 KiB
Plaintext

--- Makefile.orig Wed Nov 26 00:16:06 1997
+++ Makefile Thu Mar 15 22:21:56 2001
@@ -30,7 +30,7 @@
# Set this to an ANSI compatible C compiler (preferably gcc)
# See also system specific settings below
#CC=cc
-CC=gcc
+#CC=gcc
############################################################################
#
@@ -45,7 +45,7 @@
# PAGE_A4 for European A4
#
# PAGESIZE=PAGE_LETTER
-PAGESIZE=PAGE_A4
+# PAGESIZE=PAGE_A4
#
# Define your spooler type
@@ -55,7 +55,6 @@
SPOOL_TYPE=BSD_SPOOLER
# PREFIX=e:/usr # OS/2 type
-PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
LIBDIR=$(PREFIX)/lib
MANDIR=$(PREFIX)/man/man1
@@ -111,7 +110,10 @@
# If you are using gcc, you probably don't need to change anything here.
# Linux:
-CFLAGS = -O2 -s $(DEFS) -Wall
+#CFLAGS = -O2 -s $(DEFS) -Wall
+
+# OpenBSD:
+CFLAGS += $(DEFS)
# AIX (xlC on aix 4):
#CFLAGS = -O2 -s $(DEFS)
@@ -141,6 +143,9 @@
MOBJ = mpage$(O) glob$(O) text$(O) post$(O) file$(O) page$(O) args$(O)
SMPL = sample.c page.c glob.c args.c
SOBJ = sample$(O) page$(O) glob$(O) args$(O)
+
+all: mpage$(E) msample$(E)
+ @echo Done!
default: mpage$(E) msample$(E)
@echo Done!