Debian Codegraph @

nx-X11/Imakefile

raw
1 /**************************************************************************/
2 /* */
3 /* Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com) */
4 /* Copyright (c) 2008-2017 Oleksandr Shneyder <[email protected]> */
5 /* Copyright (c) 2011-2022 Mike Gabriel <[email protected]>*/
6 /* Copyright (c) 2014-2019 Mihai Moldovan <[email protected]> */
7 /* Copyright (c) 2014-2022 Ulrich Sibiller <[email protected]> */
8 /* Copyright (c) 2015-2016 Qindel Group (http://www.qindel.com) */
9 /* */
10 /* nx-X11, NX protocol compression and NX extensions to this software */
11 /* are copyright of the aforementioned persons and companies. */
12 /* */
13 /* Redistribution and use of the present software is allowed according */
14 /* to terms specified in the file LICENSE which comes in the source */
15 /* distribution. */
16 /* */
17 /* All rights reserved. */
18 /* */
19 /**************************************************************************/
20
21 #define IHaveSubdirs
22 #define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)"
23
24 RELEASE = XOrgReleaseString
25
26 #ifndef OSName
27 #define OSName Unknown Operating System!
28 #endif
29
30 SUBDIRS = include config programs
31
32 #if HasParallelMake
33 #ifdef ParallelDefines
34 TOPPARALLELMFLAGS = TopParallelDefines
35 #endif
36 #endif
37
38 MakeSubdirs($(SUBDIRS))
39
40 DependSubdirs($(SUBDIRS))
41
42 #define IHaveSpecialMakefileTarget
43
44 #if !defined(Win32Architecture) || defined(mingwArchitecture)
45 VerifyOS::
46 @echo ""
47 @echo Building on OSName "("OSMajorVersion"."OSMinorVersion"."OSTeenyVersion")."
48 @echo ""
49 #ifdef LinuxArchitecture
50 VerifyOS::
51 @echo Linux Distribution: LinuxDistName
52 @echo libc version: LinuxCLibMajorVersion"."LinuxCLibMinorVersion"."LinuxCLibTeenyVersion
53 @echo binutils version: `expr LinuxBinUtilsMajorVersion / 10`.`expr LinuxBinUtilsMajorVersion % 10`
54 @echo ""
55 #endif
56 #if defined(GccMajorVersion) && defined(GccMinorVersion)
57 VerifyOS::
58 @echo GCC version: GccMajorVersion"."GccMinorVersion
59 @echo ""
60 #endif
61
62 includes::
63 MakeDir($(BUILDINCDIR))
64 MakeDir($(BUILDBINDIR))
65
66 XCOMM
67 XCOMM Watch out!!! Make sure you do make includes after removing X11....
68 XCOMM
69 clean::
70 $(RM) -r $(BUILDINCDIR)
71 $(RM) -r $(BUILDLIBDIR)
72 $(RM) -r $(BUILDBINDIR)
73
74 MAKE_OPTS = -f xmakefile
75
76 World::
77 $(MAKE) $(MFLAGS) $(MAKE_OPTS) $(TOPPARALLELMFLAGS) all
78
79 Everything::
80 @echo ""
81 @echo Rebuilding $(RELEASE) of the X Window System.
82 @echo ""
83 @date
84 @echo ""
85 -$(RM) xmakefile.bak; $(MV) xmakefile xmakefile.bak
86 $(MAKE) $(MFLAGS) xmakefile
87 $(MAKE) $(MFLAGS) $(MAKE_OPTS) Makefiles
88 $(MAKE) $(MFLAGS) $(MAKE_OPTS) includes
89 $(MAKE) $(MFLAGS) $(MAKE_OPTS) depend
90 $(MAKE) $(MFLAGS) $(MAKE_OPTS) $(WORLDOPTS)
91 @echo ""
92 @date
93 @echo ""
94 @echo Rebuild of $(RELEASE) of the X Window System complete.
95 @echo ""
96
97 XCOMM clean out link tree looking for stuff that should get checked in
98 dangerous_strip_clean::
99 $(MAKE) -k distclean
100 find . -type l -exec rm {} \;
101 find . \( \! -type d \) -print
102
103 #else /* not Win32Architecture else */
104 VerifyOS::
105 @echo :
106 @echo Building on OSName.
107 @echo :
108
109 includes::
110 MakeDir($(BUILDINCDIR:/=\))
111
112 XCOMM
113 XCOMM Watch out!!! Make sure you do make includes after removing X11....
114 XCOMM
115 clean::
116 RmTreeCmd $(BUILDINCDIR:/=\)
117 RmTreeCmd $(BUILDLIBDIR:/=\)
118
119 Everything::
120 @echo :
121 @echo Rebuilding $(RELEASE) of the X Window System.
122 @echo :
123 @echo :
124 RMoveToBakFile(xmakefile)
125 $(MAKE) $(MFLAGS) xmakefile
126 $(MAKE) $(MFLAGS) $(MAKE_OPTS) Makefiles
127 $(MAKE) $(MFLAGS) $(MAKE_OPTS) includes
128 $(MAKE) $(MFLAGS) $(MAKE_OPTS) depend
129 $(MAKE) $(MFLAGS) $(MAKE_OPTS) $(WORLDOPTS)
130 @echo :
131 @echo :
132 @echo Rebuild of $(RELEASE) of the X Window System complete.
133 @echo :
134
135 #ifdef ProjectRoot
136 install::
137 MakeDir($(PROJECTROOT:/=\))
138 #endif
139
140 install::
141 MakeDir($(INCROOT:/=\))
142 MakeDir($(USRLIBDIR:/=\))
143 MakeDir($(LIBDIR:/=\))
144
145 #endif /* not Win32Architecture else */
146
147 XCOMM special target to determine if the xmakefile exists.
148 XCOMM Works on both Unix and NMAKE.EXE
149 xmakefile-exists::
150
151 #ifndef MakeManKeywords
152 #define MakeManKeywords YES /* install.man rebuilds "man -k" database? */
153 #endif
154
155 #ifndef MakeHtmlManIndex
156 #define MakeHtmlManIndex YES /* install.man generates HTML man page index */
157 #endif