summaryrefslogtreecommitdiff
path: root/emulators/darcnes/patches/patch-aa
blob: a48759462508f6abb66612d417904661acc6147d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
$NetBSD: patch-aa,v 1.2 2000/02/14 02:44:33 wiz Exp $

--- ./Makefile.orig	Sat Feb 12 20:04:24 2000
+++ ./Makefile	Mon Feb 14 03:27:44 2000
@@ -11,23 +11,23 @@
 
 #C_ONLY=-DC_ONLY
 
-MACH_TYPES=-DMACH_TYPES=\"types-i386.h\"
+#MACH_TYPES=-DMACH_TYPES=\"types-i386.h\"
 
 #BYTE_ORDER=-DMSB_FIRST
-BYTE_ORDER=-DLSB_FIRST
+#BYTE_ORDER=-DLSB_FIRST
 
 DEBUG=-g
 
 CDFLAGS=-DPCE_CD_SUPPORT
 
-CD_SRC=cd_freebsd.c
-CD_OBJ=cd_freebsd.o
+CD_SRC=cd_netbsd.c
+CD_OBJ=cd_netbsd.o
 #CD_SRC=cd_linux.c
 #CD_OBJ=cd_linux.o
 
 OPTFLAGS=-O2 -fomit-frame-pointer
 
-BASE_CFLAGS=-Wall $(DEBUG) $(OPTFLAGS) $(CDFLAGS) $(C_ONLY) $(BYTE_ORDER) $(MACH_TYPES)
+BASE_CFLAGS=-Wall $(DEBUG) $(OPTFLAGS) $(CDFLAGS) $(C_ONLY) $(MACH_TYPES)
 BASE_SFLAGS=-Wall $(DEBUG) $(OPTFLAGS) $(CDFLAGS)
 
 #
@@ -53,9 +53,9 @@
 AS=gcc
 LD=gcc
 
-LDFLAGS=-L/usr/X11R6/lib
-CFLAGS=$(BASE_CFLAGS) -I/usr/X11R6/include
-SFLAGS=$(BASE_SFLAGS) -I/usr/X11R6/include
+LDFLAGS=-L${X11BASE}/lib -Wl,-R${X11BASE}/lib
+CFLAGS=$(BASE_CFLAGS) -I${X11BASE}/include
+SFLAGS=$(BASE_SFLAGS) ${ASM_FLAGS} -I${X11BASE}/include
 BINFILE=darcnes
 LIBS=-lXext -lXaw -lXmu -lXt -lX11
 endif