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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
$NetBSD: patch-ab,v 1.8 2001/10/12 20:39:37 tron Exp $
--- Imakefile.orig Sun Mar 21 23:36:26 1999
+++ Imakefile Thu Jul 8 00:55:07 1999
@@ -96,9 +96,9 @@
XCOMM to link against symbols inside xanim.
XCOMM
XCOMM ## Linux
-LD_FLAGS = -rdynamic
+XCOMM LD_FLAGS = -rdynamic
XCOMM ## SunOS/Solaris use:
-XCOMM LD_FLAGS =
+LD_FLAGS =
XCOMM #########################################################################
@@ -111,17 +111,17 @@
XCOMM NOTE: not all machines need the XA_DLL_LIB define.
XCOMM #########################################################################
XCOMM
-XA_DLL_DEF = -DXA_DLL -DXA_PRINT
+XA_DLL_DEF = -DXA_PRINT
XCOMM ### Use this only if the above doesn't work
XCOMM XA_DLL_DEF = -DXA_DLL
XCOMM
XCOMM ### You may need this library.
-XA_DLL_LIB = -ldl
+XCOMM XA_DLL_LIB = -ldl
XCOMM
XCOMM If you'd like to change the default directory that XAnim searches while
XCOMM looking for dlls, then change the directory below.
XCOMM
-XA_DLL_PATH = /usr/local/xanim/mods
+XA_DLL_PATH = ${PREFIX}/lib/xanim
@@ -186,13 +186,35 @@
XCOMM
XCOMM Again don't use these if you are using the dynamically loadable modules.
XCOMM
-XCOMM XA_IV32_DEF = -DXA_IV32
-XCOMM XA_CVID_DEF = -DXA_CVID
-XCOMM XA_CYUV_DEF = -DXA_CYUV
-XCOMM
-XCOMM XA_IV32_LIB = mods/xa2.1_iv32_linuxELF.o
-XCOMM XA_CVID_LIB = mods/xa2.0_cvid_linuxELF.o
-XCOMM XA_CYUV_LIB = mods/xa1.0_cyuv_linuxELF.o
+#include "objarch.tmpl"
+
+.if (${MACHINE_OBJ_ARCH} == "i386-a.out") || (${MACHINE_OBJ_ARCH} == "i386-ELF") || (${MACHINE_OBJ_ARCH} == "m68k-a.out") || (${MACHINE_OBJ_ARCH} == "sparc-a.out")
+XA_IV32_DEF = -DXA_IV32
+XA_CVID_DEF = -DXA_CVID
+XA_CYUV_DEF = -DXA_CYUV
+.endif
+XCOMM
+.if (${MACHINE_OBJ_ARCH} == "i386-a.out")
+XA_IV32_LIB = mods/xa2.0_iv32_netbsd386.o
+XA_CVID_LIB = mods/xa2.0_cvid_netbsd386.o
+XA_CYUV_LIB = mods/xa1.0_cyuv_netbsd386.o
+.elif (${MACHINE_OBJ_ARCH} == "i386-ELF")
+XA_IV32_LIB = mods/xa2.0_iv32_linuxELF.o
+XA_CVID_LIB = mods/xa2.0_cvid_linuxELF.o
+XA_CYUV_LIB = mods/xa1.0_cyuv_linuxELF.o
+.elif (${MACHINE_OBJ_ARCH} == "m68k-a.out")
+XA_IV32_LIB = mods/xa2.0_iv32_netbsd68k.o
+XA_CVID_LIB = mods/xa2.0_cvid_netbsd68k.o
+XA_CYUV_LIB = mods/xa1.0_cyuv_netbsd68k.o
+.elif (${MACHINE_OBJ_ARCH} == "sparc-a.out")
+XA_IV32_LIB = mods/xa2.0_iv32_sparcCOFF.o
+XA_CVID_LIB = mods/xa2.0_cvid_sparcCOFF.o
+XA_CYUV_LIB = mods/xa1.0_cyuv_sparcAOUT.o
+.else
+XA_IV32_DEF =
+XA_CVID_DEF =
+XA_CYUV_DEF =
+.endif
XCOMM
XCOMM ##########################
XCOMM NOTE: SGI Machines Only:
@@ -267,8 +289,8 @@
XCOMM XA_AUDIO_DEFS =
XCOMM
XCOMM ## -- Linux PCs ---------------------------------------------------------
-XA_AUDIO_DEFS = -DXA_LINUX_AUDIO
-XA_AUDIO_LIBS = -lc
+XCOMM XA_AUDIO_DEFS = -DXA_LINUX_AUDIO
+XCOMM XA_AUDIO_LIBS = -lc
XCOMM
XCOMM -- Linux PC's with OLD Rev sound drivers -------------------------------
XCOMM XA_AUDIO_DEFS = -DXA_LINUX_AUDIO -DXA_LINUX_OLDER_SND
@@ -307,7 +329,7 @@
XCOMM XA_AUDIO_DEFS = -DXA_SONY_AUDIO
XCOMM
XCOMM -- NetBSD-current (as of 30/April 1995)---------------------------------
-XCOMM XA_AUDIO_DEFS = -DXA_NetBSD_AUDIO
+XA_AUDIO_DEFS = -DXA_NetBSD_AUDIO
XCOMM
XCOMM -- QNX 4.2 PC's --------------------------------------------------------
XCOMM XA_AUDIO_DEFS = -DXA_LINUX_AUDIO -DXA_SELECT
@@ -465,7 +487,7 @@
PROGRAMS = $(XANIM)
-INCLUDES = -I$(INCDIR) $(XA_INCS)
+INCLUDES = -I$(X11_ROOT)/include/X11 $(XA_INCS)
LIBS1 = $(XA_LIBS) $(EXTENSIONLIB) $(XTOOLLIB) $(XLIB) -lm
DEPLIBS1 = $(DEPEXTENSIONLIB) $(DEPXTOOLLIB) $(DEPXLIB)
|