blob: 7f4acf63670e95cad0ba8baf5c96bb56b3a556a3 (
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
|
$NetBSD: patch-aa,v 1.3 2001/06/03 17:34:57 kei Exp $
--- Makefile.orig Mon May 14 07:38:23 2001
+++ Makefile Sun Jun 3 04:48:12 2001
@@ -42,10 +42,8 @@
# If you are getting linker errors about not found X11 functions,
# change the -L/usr/X11R6/lib to the directory where X11
# libraries libX11.* and libXext.* are located on your system.
-CC = gcc
-DEFINES = -DFMSX -DUNIX -DLSB_FIRST -DDEBUG -DMITSHM \
- -DDISK -DNARROW -DSOUND -DBPP16
-CFLAGS = -O3 -I/usr/X11R6/include -L/usr/X11R6/lib ${DEFINES}
+DEFINES = -DFMSX -DUNIX -DDISK -DNARROW ${DEFS}
+CFLAGS = -O3 -Wall -fomit-frame-pointer -I${X11BASE}/include ${DEFINES}
OBJECTS = fMSX.o MSX.o Z80.o AY8910.o YM2413.o SCC.o I8251.o V9938.o \
Patch.o Debug.o Disk.o Unix.o LibUnix.o SndUnix.o Sound.o
@@ -61,7 +59,11 @@
# fMSX Unix/X requires X11 libraries. See note above if you are
# experiencing any problems.
fmsx: ${OBJECTS}
- ${CC} ${CFLAGS} -o fmsx ${OBJECTS} -lXext -lX11
+.if defined(USE_SUN_AUDIO)
+ ${CC} ${CFLAGS} -o fmsx ${OBJECTS} -Wl,-R${X11BASE}/lib -L${X11BASE}/lib -lXext -lX11
+.else
+ ${CC} ${CFLAGS} -o fmsx ${OBJECTS} -Wl,-R${X11BASE}/lib -L${X11BASE}/lib -lossaudio -lXext -lX11
+.endif
# Clean up.
clean:
|