aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/xfree86/os-support/bus/Imakefile
blob: bae6ee7c2db42c79ab958eff2691419254860bcb (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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
XCOMM $XConsortium: Imakefile /main/16 1996/10/27 18:07:43 kaleb $




XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/bus/Imakefile,v 1.29tsi Exp $

#include <Server.tmpl>

#if defined(LinuxArchitecture) && defined(AlphaArchitecture)

XCOMM Alpha (Linux) PCI driver

PCIDRVRSRC = axpPci.c
PCIDRVROBJ = axpPci.o

#elif defined(LinuxArchitecture) && defined(SparcArchitecture)

XCOMM Sparc SBUS driver and generic Linux PCI driver

PCIDRVRSRC = sparcPci.c linuxPci.c
PCIDRVROBJ = sparcPci.o linuxPci.o
SBUSDRVSRC = Sbus.c
SBUSDRVOBJ = Sbus.o

#elif defined(SunArchitecture) && defined(SparcArchitecture)

XCOMM Sparc SBUS & PCI drivers

PCIDRVRSRC = sparcPci.c
PCIDRVROBJ = sparcPci.o
SBUSDRVSRC = Sbus.c
SBUSDRVOBJ = Sbus.o

#elif defined(LinuxArchitecture) && \
      (defined(PpcArchitecture) || \
       defined(Ppc64Architecture) || \
       defined(MipsArchitecture) || \
       defined(ia64Architecture) || \
       defined(Mc68020Architecture) || \
       defined(Arm32Architecture) || \
       defined(HPArchitecture) || \
       defined(s390Architecture) || \
       defined(SuperHArchitecture) || \
       defined(SuperHebArchitecture))

XCOMM generic linux PCI driver (using /proc/bus/pci, requires kernel 2.2)

PCIDRVRSRC = linuxPci.c
PCIDRVROBJ = linuxPci.o

#elif defined(OpenBSDArchitecture) && \
	(defined(PpcArchitecture) || \
	defined(AlphaArchitecture) || \
	defined(Sparc64Architecture))

XCOMM OpenBSD/alpha, OpenBSD/powerpc and OpenBSD/sparc64

PCIDRVRSRC = freebsdPci.c
PCIDRVROBJ = freebsdPci.o

#elif defined(NetBSDArchitecture) && defined(PpcArchitecture)

XCOMM NetBSD/powerpc

PCIDRVRSRC = netbsdPci.c
PCIDRVROBJ = netbsdPci.o

#elif defined(FreeBSDArchitecture) && defined(PpcArchitecture)

XCOMM FreeBSD/PowerPC PCI driver (using /dev/pci)

PCIDRVRSRC = freebsdPci.c
PCIDRVROBJ = freebsdPci.o

#elif defined(PpcArchitecture)

XCOMM PowerPC PCI drivers

PCIDRVRSRC = ppcPci.c
PCIDRVROBJ = ppcPci.o

#elif defined(LinuxArchitecture) && \
     (defined(i386Architecture) || defined(AMD64Architecture))

XCOMM ix86 PCI driver with OS fallback for Linux

PCIDRVRSRC = ix86Pci.c linuxPci.c
PCIDRVROBJ = ix86Pci.o linuxPci.o

#elif defined(KFreeBSDArchitecture) && \
	(defined(AlphaArchitecture) || defined(AMD64Architecture))

XCOMM generic FreeBSD PCI driver (using /dev/pci)

PCIDRVRSRC = freebsdPci.c
PCIDRVROBJ = freebsdPci.o

#elif defined(KFreeBSDArchitecture) && defined(Sparc64Architecture)

XCOMM Sparc SBUS & PCI drivers

PCIDRVRSRC = freebsdPci.c
PCIDRVROBJ = freebsdPci.o
SBUSDRVSRC = Sbus.c
SBUSDRVOBJ = Sbus.o

#elif defined(NetBSDArchitecture) && defined(AlphaArchitecture)

XCOMM Alpha (NetBSD) PCI driver

PCIDRVRSRC = netbsdPci.c
PCIDRVROBJ = netbsdPci.o

#elif defined(i386Architecture) || \
      defined(ia64Architecture) || \
      defined(AMD64Architecture)

XCOMM ix86 PCI driver

PCIDRVRSRC = ix86Pci.c
PCIDRVROBJ = ix86Pci.o
XCOMM PCIDRVRSRC = linuxPci.c
XCOMM PCIDRVROBJ = linuxPci.o

#else
XCOMM no PCI driver -- shouldn't get here
#endif

#if defined(SparcArchitecture)
# if !defined(SunArchitecture)
PCIARCHSRC = sparcPci.c
PCIARCHOBJ = sparcPci.o
# endif
#elif defined(ia64Architecture)
PCIARCHSRC = 460gxPCI.c e8870PCI.c zx1PCI.c altixPCI.c
PCIARCHOBJ = 460gxPCI.o e8870PCI.o zx1PCI.o altixPCI.o
#endif

SRCS = Pci.c $(PCIDRVRSRC) $(SBUSDRVSRC) $(PCIARCHSRC)
OBJS = Pci.o $(PCIDRVROBJ) $(SBUSDRVOBJ) $(PCIARCHOBJ)

INCLUDES = -I. -I$(XF86COMSRC) -I$(XF86OSSRC) \
	   -I$(SERVERSRC)/include -I$(XINCLUDESRC)

NormalLibraryObjectRule()
SubdirLibraryRule($(OBJS))

/*
 * egcs 1.1.2 as provided with some Linux distributions has an optimisation
 * bug that results in bad code for this file.
 */
#if Egcs112Bug
SpecialCObjectRule(Pci,NullParameter,-O0)
#endif

#if defined(SunArchitecture) && defined(SparcArchitecture)

LFS_DEFINES = `getconf LFS_CFLAGS`

SpecialCObjectRule(sparcPci,NullParameter,$(LFS_DEFINES))

#endif

DependTarget()