openbsd-ports/emulators/xhomer/patches/patch-Makefile
form 870250e644 Import Xhomer 9-16-06
Xhomer is a machine emulator for the DEC Professional 350 computer,
a PDP-11-based machine that was sold in the early to mid-'80's.
Xhomer is based on the PDP-11 CPU core from the SIMH simulator,
and is written entirely in C.

ok sturm@
2009-02-07 02:37:42 +00:00

45 lines
1.7 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.1.1.1 2009/02/07 02:37:42 form Exp $
$RuOBSD: patch-Makefile,v 1.1.1.1 2008/07/12 19:00:53 form Exp $
--- Makefile.orig Mon Feb 9 04:37:24 2004
+++ Makefile Wed Feb 20 18:48:29 2008
@@ -26,7 +26,7 @@ PRO = Y
# be done by setting one of "USE_DGA1" and "USE_DGA2" to "N" and the
# other to "Y" or by setting both to "N" (most non-Linux systems).
-X11DIR = /usr/X11R6
+X11DIR ?= /usr/X11R6
ifeq ($(X11DIR)/include/X11/extensions/xf86dga.h,$(wildcard $(X11DIR)/include/X11/extensions/xf86dga.h))
ifeq ($(X11DIR)/include/X11/extensions/xf86dga1.h,$(wildcard $(X11DIR)/include/X11/extensions/xf86dga1.h))
@@ -64,9 +64,9 @@ USE_SHM = Y
# curses library for Linux, so this often has no effect, but if you
# are using another platform, you may need to set this to the paths
# where you have installed ncurses.
-NCURSESINC=/apps/gnu/include/ncurses
-NCURSESLIB=/apps/gnu/lib
-NCURSESLINK=-lcurses -ltermcap
+NCURSESINC=/usr/include
+NCURSESLIB=/usr/lib
+NCURSESLINK=-lcurses
# NCURSESLINK=-lncurses -ltermcap
#######
@@ -115,7 +115,7 @@ PRO_VERSION = `cat VERSION`
# C-Compiler configuration
# All the rest of the flags in this section assume gcc
-CC=gcc -Wall
+CC ?= gcc -Wall
# -Wchar-subscripts -W -Wshadow -Wconversion
# -Wtraditional -Wstrict-prototypes
@@ -125,7 +125,7 @@ CC += -ffloat-store
# The 1st choice runs about 15% slower than the 2nd (-O3 -fomit-frame-pointer).
# but it (re)compiles faster and unlike the second choice, it is debuggable.
# CC += -g -O -fno-inline
-CC += -O3 -Winline -fomit-frame-pointer
+CC += -Winline -fomit-frame-pointer
# Some older gcc's need this on i386 to work around a bug. As long as
# omit-frame-pointer is also set, it doesn't seem to hurt performance, so