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
|
XCOMM $TOG: Imakefile /main/138 1997/12/29 16:37:30 kaleb $
XCOMM $XFree86: xc/Imakefile,v 3.17 1998/10/06 09:55:46 dawes Exp $
#define IHaveSubdirs
#define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)"
RELEASE = "Release 6.4"
#ifndef OSName
#define OSName Unknown Operating System!
#endif
#if !BuildServersOnly
#if BuildFonts
FONTSDIR = fonts
#endif
#ifndef Win32Architecture
DOCSDIR = doc
NLSSUBDIR = nls
#endif
#endif
SUBDIRS = include config lib $(NLSSUBDIR) \
programs $(FONTSDIR) $(DOCSDIR)
LNINSTALLDIRS = lib
#if HasParallelMake
#ifdef ParallelDefines
TOPPARALLELMFLAGS = TopParallelDefines
#endif
#endif
MakeSubdirs($(SUBDIRS))
MakeLintSubdirs($(LNINSTALLDIRS),install.ln,install.ln)
MakeLintSubdirs($(LNINSTALLDIRS),external.ln,lintlib)
DependSubdirs($(SUBDIRS))
#define IHaveSpecialMakefileTarget
#ifndef Win32Architecture
#ifndef OS2Architecture
VerifyOS::
@echo ""
@echo Building on OSName "("OSMajorVersion"."OSMinorVersion"."OSTeenyVersion")."
@echo ""
#ifdef LinuxArchitecture
@echo Linux Distribution: LinuxDistName
@echo libc version: LinuxCLibMajorVersion"."LinuxCLibMinorVersion"."LinuxCLibTeenyVersion
@echo binutils version: `expr LinuxBinUtilsMajorVersion / 10`.`expr LinuxBinUtilsMajorVersion % 10`
@echo ""
#endif
includes::
MakeDir($(BUILDINCDIR))
MakeDir($(BUILDBINDIR))
XCOMM
XCOMM Watch out!!! Make sure you do make includes after removing X11....
XCOMM
clean::
$(RM) -r $(BUILDINCDIR)
$(RM) -r $(BUILDLIBDIR)
$(RM) -r $(BUILDBINDIR)
MAKE_OPTS = -f xmakefile
World::
$(MAKE) $(MFLAGS) $(MAKE_OPTS) $(TOPPARALLELMFLAGS) all
Everything::
@echo ""
@echo Rebuilding $(RELEASE) of the X Window System.
@echo ""
@date
@echo ""
cd $(IMAKESRC) && if [ -f Makefile ]; then \
$(MAKE) $(MFLAGS) BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"; \
else \
$(MAKE) $(MFLAGS) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"; \
fi
-$(RM) xmakefile.bak; $(MV) xmakefile xmakefile.bak
$(MAKE) $(MFLAGS) xmakefile
$(MAKE) $(MFLAGS) $(MAKE_OPTS) Makefiles
$(MAKE) $(MFLAGS) $(MAKE_OPTS) includes
$(MAKE) $(MFLAGS) $(MAKE_OPTS) depend
$(MAKE) $(MFLAGS) $(MAKE_OPTS) $(WORLDOPTS)
@echo ""
@date
@echo ""
@echo Rebuild of $(RELEASE) of the X Window System complete.
@echo ""
XCOMM clean out link tree looking for stuff that should get checked in
dangerous_strip_clean::
$(MAKE) -k clean
find . -type l -exec rm {} \;
find . \( \! \( -type d -o -name Makefile \) \) -print
#else /* OS2Architecture */
VerifyOS::
@echo :
@echo Building on OSName.
@echo :
includes::
MakeDir($(subst /,\,$(BUILDINCDIR)))
XCOMM
XCOMM Watch out!!! Make sure you do make includes after removing X11....
XCOMM
clean::
$(RM) -r $(BUILDINCDIR)
$(RM) -r $(BUILDLIBDIR)
Everything::
@echo :
@echo Building $(RELEASE) of the X Window System on OS/2
@echo :
@echo :
\indir $(IMAKESRC) $(MAKE) $(MFLAGS) SHELL= -f Makefile.ini BOOTSTRAPCFLAGS=-Zexe
if exist Makefile.bak del Makefile.bak
if exist MAkefile ren Makefile Makefile.bak
$(MAKE) $(MFLAGS) -f Makefile.bak Makefile
$(MAKE) $(MFLAGS) SHELL= VerifyOS
$(MAKE) $(MFLAGS) SHELL= Makefiles
$(MAKE) $(MFLAGS) SHELL= clean
$(MAKE) $(MFLAGS) SHELL= includes
$(MAKE) $(MFLAGS) SHELL= depend
$(MAKE) $(MFLAGS)
@echo :
@echo :
@echo Rebuild of $(RELEASE) of the X Window System complete.
@echo :
#ifdef ProjectRoot
install::
MakeDir($(subst /,\,$(PROJECTROOT)))
#endif
install::
MakeDir($(subst /,\,$(INCROOT)))
MakeDir($(subst /,\,$(USRLIBDIR)))
MakeDir($(subst /,\,$(LIBDIR)))
#endif
#else /* not Win32Architecture else */
VerifyOS::
@echo :
@echo Building on OSName.
@echo :
includes::
MakeDir($(BUILDINCDIR:/=\))
XCOMM
XCOMM Watch out!!! Make sure you do make includes after removing X11....
XCOMM
clean::
RmTreeCmd $(BUILDINCDIR:/=\)
RmTreeCmd $(BUILDLIBDIR:/=\)
Everything::
@echo :
@echo Rebuilding $(RELEASE) of the X Window System.
@echo :
@echo :
cd $(IMAKESRC)
$(MAKE) $(MFLAGS) -f Makefile.ini imake.exe
cd ..\..
RMoveToBakFile(xmakefile)
$(MAKE) $(MFLAGS) xmakefile
$(MAKE) $(MFLAGS) $(MAKE_OPTS) Makefiles
$(MAKE) $(MFLAGS) $(MAKE_OPTS) includes
$(MAKE) $(MFLAGS) $(MAKE_OPTS) depend
$(MAKE) $(MFLAGS) $(MAKE_OPTS) $(WORLDOPTS)
@echo :
@echo :
@echo Rebuild of $(RELEASE) of the X Window System complete.
@echo :
#ifdef ProjectRoot
install::
MakeDir($(PROJECTROOT:/=\))
#endif
install::
MakeDir($(INCROOT:/=\))
MakeDir($(USRLIBDIR:/=\))
MakeDir($(LIBDIR:/=\))
#endif /* not Win32Architecture else */
XCOMM special target to determine if the xmakefile exists.
XCOMM Works on both Unix and NMAKE.EXE
xmakefile-exists::
#ifndef MakeManKeywords
#define MakeManKeywords YES /* install.man rebuilds "man -k" database? */
#endif
#undef BootstrapCleanSubdirs
#define BootstrapCleanSubdirs BOOTSTRAPSUBDIRS="$(BOOTSTRAPSUBDIRS)"
BOOTSTRAPSUBDIRS = imake makedepend
|