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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
|
XCOMM $XConsortium: Imakefile /main/12 1996/10/27 11:06:35 kaleb $
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/os-support/bsd/Imakefile,v 3.45 2000/08/16 01:45:29 dawes Exp $
#include <Server.tmpl>
#if defined(FreeBSDArchitecture) || defined(NetBSDArchitecture) || defined(OpenBSDArchitecture)
#if BuildXInputExt
# if JoystickSupport
JOYSTICK_SRC = bsd_jstk.c
# endif
# if DoLoadableServer
SHARED_CFLAGS = PositionIndependentCFlags
# else
# if JoystickSupport
JOYSTICK_OBJ = bsd_jstk.o
# endif
# endif
#endif
#endif
#if defined(OpenBSDArchitecture) || defined(NetBSDArchitecture) \
&& ((OSMajorVersion == 1 && OSMinorVersion >= 1) || OSMajorVersion >= 2)
# if defined(ArcArchitecture)
IOPERMDEFINES = -DUSE_ARC_MMAP
# elif defined(Arm32Architecture)
IOPERMDEFINES = -DUSE_ARM32_MMAP
# else
IOPERMDEFINES = -DUSE_I386_IOPL
# endif
#elif defined(FreeBSDArchitecture) && !defined(AlphaBsdArchitecture)
IOPERMDEFINES = -DUSE_DEV_IO
#else
# if defined(AlphaBsdArchitecture)
IOPERMDEFINES = -DUSE_ALPHA_PORTS
# else
IOPERM_SRC = ioperm_noop.c
IOPERM_OBJ = ioperm_noop.o
# endif
#endif
#if BuildXF86DRI
DRI_SRC = sigio.c
DRI_OBJ = sigio.o
#endif
MOUSESRC = bsd_mouse.c
MOUSEOBJ = bsd_mouse.o
#if HasMTRRSupport
MTRRDEFINES = -DHAS_MTRR_SUPPORT
#endif
#if UsbMouseSupport
USBMOUSEDEFINES = -DUSBMOUSE_SUPPORT
#if !HasLibUsb
LIBUSBINCLUDES = -Ilibusb
#define IHaveSubdirs
SUBDIRS = libusb
#endif
#endif
#if defined(NetBSDArchitecture) || defined(OpenBSDArchitecture)
APMSRC = bsd_apm.c
APMOBJ = bsd_apm.o
#else
APMSRC = pm_noop.c
APMOBJ = pm_noop.o
#endif
#if defined(FreeBSDArchitecture) && (OSMajorVersion > 2)
KMODSRC = bsd_kmod.c
KMODOBJ = bsd_kmod.o
#else
KMODSRC = kmod_noop.c
KMODOBJ = kmod_noop.o
#endif
#if defined(i386Architecture) || defined(ia64Architecture)
RES_SRC=stdResource.c
RES_OBJ=stdResource.o
#else
RES_SRC=bsdResource.c
RES_OBJ=bsdResource.o
#endif
#if defined(AlphaArchitecture)
AXP_SRC=bsd_ev56.c
AXP_OBJ=bsd_ev56.o
#endif
#if defined(FreeBSDArchitecture) && HasAgpGart
AGP_SRC=lnx_agp.c
AGP_OBJ=lnx_agp.o
#else
AGP_SRC=agp_noop.c
AGP_OBJ=agp_noop.o
#endif
SRCS = bsd_init.c bsd_video.c bsd_io.c bsd_VTsw.c \
libc_wrapper.c $(IOPERM_SRC) std_kbdEv.c posix_tty.c $(MOUSESRC) \
$(RES_SRC) stdPci.c vidmem.c $(JOYSTICK_SRC) sigio.c $(APMSRC) \
$(AXP_SRC) $(KMODSRC) $(AGP_SRC)
OBJS = bsd_init.o bsd_video.o bsd_io.o bsd_VTsw.o \
libc_wrapper.o $(IOPERM_OBJ) std_kbdEv.o posix_tty.o $(MOUSEOBJ) \
$(RES_OBJ) stdPci.o vidmem.o $(JOYSTICK_OBJ) sigio.o $(APMOBJ) \
$(AXP_OBJ) $(KMODOBJ) $(AGP_OBJ)
INCLUDES = -I$(XF86COMSRC) -I$(XF86OSSRC) -I. -I$(SERVERSRC)/include \
-I$(XINCLUDESRC) -I$(EXTINCSRC) -I$(SERVERSRC)/mi -I$(APINCLUDES) \
$(LIBUSBINCLUDES)
CONSDEFINES = XFree86ConsoleDefines
RESDEFINES = -DUSESTDRES
#if HasNetBSDApertureDriver
APDIR = NetBSDApertureDir
APDEFINES = -DHAS_APERTURE_DRV
APINCLUDES = $(APDIR)/include
#endif
DEFINES = $(CONSDEFINES) $(APDEFINES) $(IOPERMDEFINES) $(RESDEFINES) \
$(MTRRDEFINES) $(USBMOUSEDEFINES)
#if defined(AlphaArchitecture)
SpecialObjectRule(bsd_ev56.o, bsd_ev56.c, -mcpu=ev56)
#endif
SubdirLibraryRule($(OBJS))
NormalLibraryObjectRule()
#if BuildXF86DRI
#define IHaveSubdirs
SUBDIRS = drm
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
#endif
#if BuildXInputExt
# if DoLoadableServer
# if JoystickSupport
AllTarget(bsd_jstk.o)
#if 0
InstallDynamicModule(bsd_jstk.o,$(MODULEDIR),input)
#endif
# endif
# endif
#endif
#if !defined(NetBSDArchitecture) && !defined(OpenBSDArchitecture)
LinkSourceFile(pm_noop.c,../shared)
#endif
LinkSourceFile(ioperm_noop.c,../shared)
LinkSourceFile(std_kbdEv.c,../shared)
LinkSourceFile(posix_tty.c,../shared)
LinkSourceFile(libc_wrapper.c,../shared)
LinkSourceFile(stdResource.c,../shared)
LinkSourceFile(stdPci.c,../shared)
LinkSourceFile(vidmem.c,../shared)
LinkSourceFile(sigio.c,../shared)
LinkSourceFile(kmod_noop.c,../shared)
#if defined(FreeBSDArchitecture) && HasAgpGart
LinkSourceFile(lnx_agp.c,../linux)
#else
LinkSourceFile(agp_noop.c,../shared)
#endif
DependTarget()
#if UsbMouseSupport && !HasLibUsb
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
#endif
#if 0
InstallDriverSDKDynamicModule(bsd_jstk.o,$(DRIVERSDKMODULEDIR))
#endif
|