summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/xfree86/Imakefile
blob: ea8f837e69ed8984152af7bc18901cb13fef25f4 (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
XCOMM $XConsortium: Imakefile /main/12 1996/12/16 12:31:46 rws $




XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/Imakefile,v 3.68 2000/06/13 02:28:30 dawes Exp $

#include <Server.tmpl>
#define IHaveSubdirs

#if XF86VgaHw
VGAHWDIR = vgahw
#endif

#if XF86FBDevHw
FBDEVHWDIR = fbdevhw
#endif

#if XF86XAA
XAADIR = xaa
#endif

#if XF1Bpp || XF4Bpp
XF1BPPDIR = xf1bpp
# if XF4Bpp
XF4BPPDIR = xf4bpp
# endif
#endif

#if XF8_32Wid
XF8_32WIDDIR = xf8_32wid
#endif

#if XF8_32Bpp
XF8_32BPPDIR = xf8_32bpp
#endif

#if XF8_16Bpp
XF8_16BPPDIR = xf8_16bpp
#endif

#if XF24_32Bpp
XF24_32BPPDIR = xf24_32bpp
#endif

#if XFShadowFB
SHADOWFBDIR = shadowfb
#endif

#if XF86I2C
I2CDIR = i2c
#endif

#if XF86DDC
DDCDIR = ddc
#endif

#if XF86Ramdac
RAMDACDIR = ramdac
#endif

#if XF86RAC
RACDIR = rac
#endif

#if XF86Int10
INT10DIR = int10
#endif

#if !defined(OsfArchitecture) && !defined(AmoebaArchitecture) && \
    !defined(ArcArchitecture) && !defined(Arm32Architecture) && \
    !defined(PpcArchitecture) && !defined(MipsArchitecture)
SUPERPROBE = SuperProbe
#endif

#if BuildXF86Setup
XF86SETUPDIR = XF86Setup
#endif

#if DoLoadableServer
LOADERDIR = loader
#endif

#if BuildXInputExt
INPUTDIR = input
#endif

#if DoLoadableServer
DRIVERSDK = sdk
#endif

#if !BuildServersOnly
XF86CFGDIR = xf86cfg
#endif

SUBDIRS = os-support common $(XAADIR) $(XF1BPPDIR) $(XF4BPPDIR) \
          $(XF8_32BPPDIR) $(XF8_16BPPDIR) $(XF24_32BPPDIR) $(SHADOWFBDIR) \
	  drivers $(LOADERDIR) $(VGAHWDIR) $(FBDEVHWDIR) $(RAMDACDIR) \
	  $(RACDIR) $(I2CDIR) $(DDCDIR) $(INPUTDIR) $(INT10DIR) parser \
          scanpci doc xf86config $(XF86CFGDIR) $(XF86SETUPDIR) dummylib etc \
          $(SUPERPROBE) $(DRIVERSDK) $(XF8_32WIDDIR)

#ifndef OS2Architecture
XF86CONFIG = XF86Config
XF98CONFIG = XF98Config
#else
XF86CONFIG = XF86Conf
#endif

all:: $(XF86CONFIG) $(XF98CONFIG)

#if defined(i386BsdArchitecture) && !defined(FreeBSDArchitecture)
MANPAGE=Concat(FileManDir,/XF86Config.0)
#else
MANPAGE=Concat3(FileManDir,/XF86Config.,FileManSuffix)
#endif

RGBPATH=\"DefaultRGBDatabase\"
LOCALFONTPATH=\"$(LIBDIR)/fonts/local/\"
MISCFONTPATH=\"$(LIBDIR)/fonts/misc/\"
T1FONTPATH=\"$(LIBDIR)/fonts/Type1/\"
CIDFONTPATH=\"$(LIBDIR)/fonts/CID/\"
SPFONTPATH=\"$(LIBDIR)/fonts/Speedo/\"
DPI75FONTPATH=\"$(LIBDIR)/fonts/75dpi/\"
DPI100FONTPATH=\"$(LIBDIR)/fonts/100dpi/\"
DPI75USFONTPATH=\"$(LIBDIR)/fonts/75dpi/:unscaled\"
DPI100USFONTPATH=\"$(LIBDIR)/fonts/100dpi/:unscaled\"

#ifdef FreeBSDArchitecture
  FREEBSDMOUSEDEV="    Option	\"Device\"	\"/dev/mse0\""
#else
  FREEBSDMOUSEDEV="XCOMM    Option	\"Device\"	\"/dev/mse0\""
#endif

#if defined(i386BsdArchitecture)&&defined(NetBSDArchitecture)
#  if (OSMajorVersion >= 1) && (OSMinorVersion >= 1)
  NETBSDOLDMOUSEDEV="XCOMM    Option	\"Device\"	\"/dev/mms0\""
  NETBSDNEWMOUSEDEV="    Option	\"Device\"	\"/dev/lms0\""
#  else
  NETBSDOLDMOUSEDEV="    Option	\"Device\"	\"/dev/mms0\""
  NETBSDNEWMOUSEDEV="XCOMM    Option	\"Device\"	\"/dev/lms0\""
#  endif
#else
  NETBSDOLDMOUSEDEV="XCOMM    Option	\"Device\"	\"/dev/mms0\""
  NETBSDNEWMOUSEDEV="XCOMM    Option	\"Device\"	\"/dev/lms0\""
#endif

#ifdef LinuxArchitecture
  LINUXMOUSEDEV="    Option	\"Device\"	\"/dev/mouse\""
#else
  LINUXMOUSEDEV="XCOMM    Option	\"Device\"	\"/dev/mouse\""
#endif

#ifdef MinixArchitecture
CppFileTarget($(XF86CONFIG), XF86Conf.cpp,
    -DRGBPATH=$(RGBPATH) -DMISCFONTPATH=$(MISCFONTPATH)
    -DLOCALFONTPATH=$(LOCALFONTPATH)
    -DT1FONTPATH=$(T1FONTPATH) -DCIDFONTPATH=$(CIDFONTPATH)
    -DSPFONTPATH=$(SPFONTPATH)
    -DDPI75FONTPATH=$(DPI75FONTPATH) -DDPI100FONTPATH=$(DPI100FONTPATH)
    -DDPI75USFONTPATH=$(DPI75USFONTPATH) -DDPI100USFONTPATH=$(DPI100USFONTPATH)
    -DMANPAGE=$(MANPAGE) -DMODULEPATH=\"$(MODULEDIR)\",
    $(ICONFIGFILES))

InstallDriverSDKNonExecFile($(XF86CONFIG),$(DRIVERSDKDIR))
#else
CppFileTarget($(XF86CONFIG), XF86Conf.cpp, \
    -DRGBPATH=$(RGBPATH) -DMISCFONTPATH=$(MISCFONTPATH) \
    -DLOCALFONTPATH=$(LOCALFONTPATH) \
    -DT1FONTPATH=$(T1FONTPATH) \
    -DCIDFONTPATH=$(CIDFONTPATH) \
    -DSPFONTPATH=$(SPFONTPATH) \
    -DDPI75FONTPATH=$(DPI75FONTPATH) \
    -DDPI100FONTPATH=$(DPI100FONTPATH) \
    -DDPI75USFONTPATH=$(DPI75USFONTPATH) \
    -DDPI100USFONTPATH=$(DPI100USFONTPATH) \
    -DMANPAGE=$(MANPAGE) -DMODULEPATH=\"$(MODULEDIR)\", \
    $(ICONFIGFILES))
CppFileTarget($(XF98CONFIG), XF98Conf.cpp, \
    -DRGBPATH=$(RGBPATH) -DMISCFONTPATH=$(MISCFONTPATH) \
    -DLOCALFONTPATH=$(LOCALFONTPATH) \
    -DT1FONTPATH=$(T1FONTPATH) \
    -DCIDFONTPATH=$(CIDFONTPATH) \
    -DSPFONTPATH=$(SPFONTPATH) \
    -DDPI75FONTPATH=$(DPI75FONTPATH) \
    -DDPI100FONTPATH=$(DPI100FONTPATH) \
    -DDPI75USFONTPATH=$(DPI75USFONTPATH) \
    -DDPI100USFONTPATH=$(DPI100USFONTPATH) \
    -DFREEBSDMOUSEDEV=$(FREEBSDMOUSEDEV) \
    -DNETBSDOLDMOUSEDEV=$(NETBSDOLDMOUSEDEV) \
    -DNETBSDNEWMOUSEDEV=$(NETBSDNEWMOUSEDEV) \
    -DLINUXMOUSEDEV=$(LINUXMOUSEDEV) \
    -DMANPAGE=$(MANPAGE) -DMODULEPATH=\"$(MODULEDIR)\", \
    $(ICONFIGFILES))
InstallDriverSDKNonExecFile($(XF86CONFIG),$(DRIVERSDKDIR))
InstallDriverSDKNonExecFile($(XF98CONFIG),$(DRIVERSDKDIR))
#endif

EXTRAMANCPPDEFS=-D__logdir__=$(LOGDIRECTORY)
CppManTarget(XFree86,$(EXTRAMANCPPDEFS))
CppManTarget(XF86Config,$(EXTRAMANCPPDEFS))
InstallManPage(XFree86,$(MANDIR))
InstallGenManPage(XF86Config,$(FILEMANDIR),$(FILEMANSUFFIX))

InstallNamedNonExec($(XF86CONFIG),XF86Config.eg,$(LIBDIR))
InstallNamedNonExec($(XF98CONFIG),XF86Config.98,$(LIBDIR))

InstallDriverSDKNamedNonExec($(XF86CONFIG),XF86Config.eg,$(DRIVERSDKDIR))

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))