summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/xfree86/common/Imakefile
blob: a6c5643d6b9b71c15cffec6b2fafba111849c206 (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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
XCOMM $XConsortium: Imakefile /main/34 1996/10/27 11:05:08 kaleb $





XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/common/Imakefile,v 3.121 2000/09/19 12:46:12 eich Exp $



#include <Server.tmpl>

#ifdef i386MachArchitecture
#ifdef GNUMachArchitecture
        KBD = xf86Kbd
#else
        KBD = xf86KbdMach
#endif /* GNUMachArchitecture */
#else
# if defined(i386BsdArchitecture) || defined(AlphaBsdArchitecture)
        KBD = xf86KbdBSD
# else
#  ifdef LinuxArchitecture
        KBD = xf86KbdLnx
#  else
#  if defined(SunArchitecture) && defined(SVR4Architecture) && OSMinorVersion >= 8
        KBD = xf86KbdSol8
#else
        KBD = xf86Kbd
#  endif
#  endif
# endif
#endif

#ifdef SparcArchitecture
	SBUSSRC = xf86sbusBus.c
	SBUSOBJ = xf86sbusBus.o
#endif

#if BuildXKB
     XKBDDXSRC = xf86XKB.c
     XKBDDXOBJ = xf86XKB.o
#endif

#if BuildDebug
     DEBUGSRC = xf86Debug.c
     DEBUGOBJ = xf86Debug.o
#endif

#if BuildXInputExt
 XF86_XINPUT_SRC = xf86Xinput.c xf86Switch.c xisb.c
 XF86_XINPUT_OBJ = xf86Xinput.o xf86Switch.o xisb.o
#endif

MODPATHDEFINES = -DDEFAULT_MODULE_PATH=\"$(MODULEDIR)\"
LOGDEFINES = -DDEFAULT_LOGPREFIX=\"$(LOGDIRECTORY)/XFree86.\"

#if DoLoadableServer
EXT_MODULES_DEFINES = $(GLX_DEFINES)
#endif

#if defined(LinuxArchitecture) && defined(PpcArchitecture)
    KBDDEFINES = -DASSUME_CUSTOM_KEYCODES
#endif

#ifndef XF86ExpireServer
#define XF86ExpireServer	NO
#endif

#if XF86ExpireServer
      BETASRC = xf86Beta.c
      BETAOBJ = xf86Beta.o
     BETADEFS = -DDO_CHECK_BETA
#ifndef NeedXF86Beta
#define NeedXF86Beta YES
#endif
#endif

#ifndef NeedXF86Beta
#define NeedXF86Beta NO
#endif

#if XF86ExpireServer
EXP_FORCE_DEFINES = -DSHOW_BETA_MESSAGE -DEXPIRE_SERVER
#endif

SRCS =	\
	xf86Configure.c \
	xf86Bus.c \
	xf86isaBus.c \
	xf86pciBus.c \
	xf86IniExt.c \
	xf86Config.c \
	xf86Cursor.c \
	xf86DGA.c \
	xf86DPMS.c \
	xf86DefModes.c \
	xf86DoProbe.c \
	xf86DoScanPci.c \
	xf86Events.c \
	xf86Globals.c \
	xf86Helper.c \
	xf86Init.c \
	xf86Io.c \
	xf86MiscExt.c \
	xf86Mode.c \
	xf86Option.c \
	xf86VidMode.c \
	xf86fbman.c \
	xf86xv.c \
	xf86cmap.c\
	xf86PM.c \
	$(DEBUGSRC) \
	$(KBD).c \
	$(SBUSSRC) \
	$(XF86_XINPUT_SRC) \
	$(XINPUT_DEV_SRCS) \
	$(XKBDDXSRC) \
	$(BETASRC) \
	$(SERVERSRCS)

OBJS = \
	xf86Configure.o \
	xf86Bus.o \
	xf86isaBus.o \
	xf86pciBus.o \
	xf86Config.o \
	xf86Cursor.o \
	xf86DGA.o \
	xf86DPMS.o \
	xf86DefModes.o \
	xf86DoProbe.o \
	xf86DoScanPci.o \
	xf86Events.o \
	xf86Globals.o \
	xf86Helper.o \
	xf86Io.o \
	xf86MiscExt.o \
	xf86Mode.o \
	xf86Option.o \
	xf86VidMode.o \
	xf86fbman.o \
	xf86xv.o \
	xf86cmap.o\
	xf86PM.o \
	$(DEBUGOBJ) \
	$(SBUSOBJ) \
	$(XF86_XINPUT_OBJ) \
	$(XKBDDXOBJ) \
	$(BETAOBJ) \
	$(KBD).o


OFILES = \
	xf86Init.o \
	xf86IniExt.o

   VGAINCLUDES = -I$(XF86SRC)/vgahw
   INCLUDES =	-I. -I$(XF86OSSRC) -I$(XF86OSSRC)/bus -I$(SERVERSRC)/mfb \
		-I$(SERVERSRC)/mi -I$(SERVERSRC)/include -I$(SERVERSRC)/os \
		-I$(XINCLUDESRC) -I$(SERVERSRC)/Xext -I$(EXTINCSRC) \
		-I$(SERVERSRC)/Xi -I$(XF86SRC)/ddc -I$(XF86SRC)/i2c \
		-I$(FONTLIBSRC)/include -I$(XF86SRC) -I$(XF86PARSERSRC) \
		-I$(XF86SRC)/loader $(VGAINCLUDES) -I$(XF86SRC)/rac \
	        -I$(XF86SRC)/scanpci -I$(XF86OSSRC)/vbe -I$(XF86SRC)/int10 \
		-I$(XF86SRC)/ddc

     OSNAME = OSName
   OSVENDOR = OSVendor
  OSNAMEDEF = -DOSNAME='" $(OSNAME)"' -DOSVENDOR='" $(OSVENDOR)"'
#if defined(BuilderString)
  BUILDERSTRING = BuilderString
  BUILDERMSG = -DBUILDERSTRING='$(BUILDERSTRING)'
#else
  BUILDERMSG =
#endif
CONSDEFINES = XFree86ConsoleDefines
EXP_DEFINES = -DEXPIRY_TIME=XF86ServerExpiry $(EXP_FORCE_DEFINES)
PROJECTROOT = ProjectRoot
    DRIVERS = XF86CardDrivers
   IDRIVERS = XInputDrivers
XCONFIGDEFINES = -DPROJECTROOT='"$(PROJECTROOT)"' \
		 -DDRIVERS='"$(DRIVERS)"' \
		 -DIDRIVERS='"$(IDRIVERS)"'

    DEFINES = $(CONSDEFINES) $(KBDDEFINES) $(EXT_DEFINES) $(OSDEFINES)

AllTarget($(OFILES))

SpecialCObjectRule(xf86Bus,NullParameter,$(BUGMSG) $(VGAINCLUDES))
SpecialCObjectRule(xf86Init,$(ICONFIGFILES),$(OSNAMEDEF) $(BUILDERMSG) $(BUGMSG) $(EXT_DEFINES) $(BETADEFS))
SpecialCObjectRule(xf86Events,$(ICONFIGFILES),$(EXT_DEFINES))
SpecialCObjectRule(xf86Globals,$(ICONFIGFILES),$(EXT_DEFINES) $(MODPATHDEFINES) $(LOGDEFINES))
SpecialCObjectRule(xf86Config,$(ICONFIGFILES),$(XCONFIGDEFINES))

#if NeedXF86Beta
SpecialCObjectRule($(BETAOBJ),NullParameter,$(EXP_DEFINES))
#endif

SpecialCObjectRule(xf86IniExt,$(ICONFIGFILES),$(EXT_DEFINES) $(EXT_MODULES_DEFINES))

NormalLibraryObjectRule()
NormalLibraryTarget(xf86,$(OBJS))

LinkFile(xf86IniExt.c,$(SERVERSRC)/mi/miinitext.c)
LinkSourceFile(xf86Version.h,..)
LinkSourceFile(xf86Pci.h,$(XF86OSSRC)/bus)
#ifdef SparcArchitecture
LinkSourceFile(xf86Sbus.h,$(XF86OSSRC)/bus)
#endif

#ifndef OS2Architecture
DependTarget()
#endif

InstallDriverSDKNonExecFile(compiler.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(fourcc.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86Module.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86Opt.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86Pci.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86PciInfo.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86Priv.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86Privstr.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86Resources.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86Version.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86Xinput.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86cmap.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86fbman.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86str.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(xf86xv.h,$(DRIVERSDKINCLUDEDIR))