blob: 8947afc8d3f8c5704dcf6652ff2e6347af0c3cbd (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
$NetBSD: patch-aa,v 1.3 2002/01/02 09:28:02 hubertf Exp $
--- Makefile.X11.orig Thu Mar 23 01:01:00 2000
+++ Makefile.X11 Sat Aug 12 12:54:54 2000
@@ -6,21 +6,29 @@
COMMONSRC = \
debug.c disasm.c gui.c \
- cpu_x86.asm fdc.c keyboard.c kanji.c tapelp.c \
+ fdc.c keyboard.c kanji.c tapelp.c \
maincpu.c mainmem.c mainetc.c system.c multipag.c \
subcpu.c submem.c display.c subctrl.c tools.c ttlpalet.c \
opn.c opna.cpp fmgen.cpp psg.cpp
+.if defined(__i386__)
+COMMONSRC += cpu_x86.asm
+.endif
+
LOCALSRC = \
xw_disp.c xw_key.c xw_main.c xw_file.c xw_snd.cpp
COMMONOBJ = \
debug.o disasm.o gui.o \
- cpu_x86.o fdc.o keyboard.o kanji.o tapelp.o \
+ fdc.o keyboard.o kanji.o tapelp.o \
maincpu.o mainmem.o mainetc.o system.o multipag.o \
subcpu.o submem.o display.o subctrl.o tools.o ttlpalet.o \
opn.o opna.o fmgen.o psg.o
+.if defined(__i386__)
+COMMONSRC += cpu_x86.o
+.endif
+
LOCALOBJ = \
xw_disp.o xw_key.o xw_main.o xw_file.o xw_snd.o
@@ -29,22 +37,27 @@
SRCS = ${COMMONSRC} ${LOCALSRC}
OBJS = ${COMMONOBJ} ${LOCALOBJ}
#LIBS = -L/usr/X11R6/lib -lX11 -lXt -lXext -lm -lc
-LIBS = -L/usr/X11R6/lib -lX11 -lXt -lXext -lm -lc -lstdc++
+LIBS = -L/usr/X11R6/lib -R/usr/X11R6/lib -lX11 -lXt -lXext -lm -lc -lstdc++ \
+ -lossaudio
#CFLAGS = -D_XWIN -DNDEBUG -O3 -funroll-loops -I/usr/X11R6/include -I.
+.if defined(__i386__)
CFLAGS = -D_XWIN -DNDEBUG -DCPU_ASM -O3 -I/usr/X11R6/include -I.
+.else
+CFLAGS = -D_XWIN -DNDEBUG -O3 -I/usr/X11R6/include -I.
+.endif
ASFLAGS = -f elf -d _XWIN
all: xm7
xm7: ${OBJS}
- gcc -o xm7 ${OBJS} ${LIBS}
+ ${CC} -o xm7 ${OBJS} ${LIBS}
.c.o:
- gcc ${CFLAGS} -o $@ -c $<
+ ${CC} ${CFLAGS} -o $@ -c $<
.cpp.o:
- g++ ${CFLAGS} -o $@ -c $<
+ ${CC} ${CFLAGS} -o $@ -c $<
.asm.o:
nasm ${ASFLAGS} $<
@@ -56,7 +69,7 @@
find . -type l -exec rm -f {} \;
convert:
- ./convert.sh
+ sh ./convert.sh
symlink:
- ./symlink.sh
+ sh ./symlink.sh
|