blob: 69bbc0bfc021fc3a12a50f0895b11818330eec4e (
plain) (
blame)
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
47
48
49
50
51
52
|
--- Makefile.orig Wed Mar 28 09:51:41 2001
+++ Makefile Mon Feb 2 20:30:32 2004
@@ -11,16 +11,16 @@
#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
+#DEBUG=-g
-OPTFLAGS=-O2 -fomit-frame-pointer
+#OPTFLAGS=-O2 -fomit-frame-pointer
-BASE_CFLAGS=-Wall $(DEBUG) $(OPTFLAGS) $(C_ONLY) $(BYTE_ORDER) $(MACH_TYPES)
+BASE_CFLAGS=-Wall $(DEBUG) $(OPTFLAGS) $(C_ONLY) $(MACH_TYPES)
BASE_SFLAGS=-Wall $(DEBUG) $(OPTFLAGS)
BASE_LDFLAGS=
@@ -33,8 +33,12 @@
#
ifeq ($(TARGET),Linux_svgalib)
CONFFLAGS=-DPCE_CD_SUPPORT -DSOUND
+LOCALBASE?=/usr/local
+LDFLAGS+=-L${LOCALBASE}/lib
+CFLAGS+=-I${LOCALBASE}/include
+SFLAGS+=-I${LOCALBASE}/include
SYSTEMSRCS=video_svga.c ui_svga.c snd_unix.c cd_unix.c
-BINFILE=sdarcnes
+BINFILE=darcnes
LIBS=-lvgagl -lvga
endif
@@ -43,9 +47,10 @@
#
ifeq ($(TARGET),Linux_X)
CONFFLAGS=-DPCE_CD_SUPPORT -DSOUND
-LDFLAGS+=-L/usr/X11R6/lib
-CFLAGS+=-I/usr/X11R6/include
-SFLAGS+=-I/usr/X11R6/include
+X11BASE?=/usr/X11R6
+LDFLAGS+=-L${X11BASE}/lib
+CFLAGS+=-I${X11BASE}/include
+SFLAGS+=-I${X11BASE}/include
SYSTEMSRCS=video_x.c ui_x.c snd_unix.c keyboard_x.c cd_unix.c
BINFILE=darcnes
LIBS=-lXext -lXaw -lXmu -lXt -lX11
|