blob: 51ae38c7db3d26e5f8bc6ca1604e758ebdaa4f9a (
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
|
XCOMM $Xorg: X11.rules,v 1.4 2000/08/17 19:41:46 cpqbld Exp $
XCOMM $XFree86: xc/config/cf/X11.rules,v 1.6 2001/01/17 16:22:31 dawes Exp $
/* Note whether we are the top level project. */
#ifndef SeenTopLevelProject
# define SeenTopLevelProject YES
# define X11IsTopLevelProject YES
#else
# define X11IsTopLevelProject NO
#endif
/*
* If no clues are given assume X11 is in the tree, otherwise
* UseInstalled overrides UseImports. Do not do both.
*/
#ifndef UseInstalledX11
# define UseInstalledX11 NO
#endif
#ifdef UseInstalled
# undef UseInstalledX11
# define UseInstalledX11 YES
#endif
#ifndef ImportX11
# ifdef UseImports
# define ImportX11 YES
# else
# define ImportX11 NO
# endif
#endif
#if UseInstalledX11
# undef ImportX11
# define ImportX11 NO
#endif
#if defined(X11ProjectRoot)
# define XBinDir $(XPROJECTROOT)/lib/nx/bin
#elif defined(ProjectRoot)
# define XBinDir $(PROJECTROOT)/lib/nx/bin
#else
# define XBinDir $(BINDIR)
#endif
#ifdef X11ProjectRoot
# define XUsrLibDirPath $(USRLIBDIR)/nx:$(XPROJECTROOT)
#else
# define XUsrLibDirPath $(USRLIBDIR)/nx
#endif
#ifdef UsrLibDirPath
# undef UsrLibDirPath
#endif
#ifdef ExtraLibDirPath
#define UsrLibDirPath XUsrLibDirPath:ExtraLibDirPath
#else
#define UsrLibDirPath XUsrLibDirPath
#endif
#if ImportX11
# define XLdPreLibs -L$(LIBSRC)
#elif defined(UseInstalledX11) && defined(X11ProjectRoot)
# define XLdPreLibs -L$(XPROJECTROOT)
#else
# define XLdPreLibs /**/
#endif
#ifdef LdPreLibs
# undef LdPreLibs
#endif
#define LdPreLibs LdPreLib XLdPreLibs
#ifdef X11ProjectRoot
# define XLdPostLibs -L$(XPROJECTROOT)
#else
# define XLdPostLibs /**/
#endif
#ifdef LdPostLibs
# undef LdPostLibs
#endif
#define LdPostLibs LdPostLib XLdPostLibs
#ifndef TopXInclude
# if ImportX11
# define TopXInclude -I$(TOP)/imports/x11/include
# elif !UseInstalledX11
# define TopXInclude -I$(TOP)/exports/include
#else
# ifdef X11ProjectRoot
# define TopXInclude -I$(XPROJECTROOT)/../../include/nx
# else
# define TopXInclude /**/
# endif
# endif
#endif
#ifdef TopIncludes
# undef TopIncludes
#endif
#define TopIncludes TopInclude $(TOP_X_INCLUDES)
#if UseInstalledX11 && defined(X11ProjectRoot)
# define X11BuildLibPath $(XPROJECTROOT)
#elif UseInstalledX11
# define X11BuildLibPath $(USRLIBDIR)
#elif ImportX11
# define X11BuildLibPath $(XTOP)/lib
#else
# define X11BuildLibPath $(TOP)/exports/lib
#endif
#ifndef BuildLibPath
#ifdef SystemBuildLibPath
# define BuildLibPath $(XENVLIBDIR):$(SYSTEMENVLIBDIR)
#else
# define BuildLibPath $(XENVLIBDIR)
#endif
#endif
#ifndef X11ProjectDefines
# define X11ProjectDefines /**/
#endif
#define ProjectDefines X11ProjectDefines
#ifndef X11CplusplusProjectDefines
# define X11CplusplusProjectDefines X11ProjectDefines
#endif
#define CplusplusProjectDefines X11CplusplusProjectDefines
#ifndef XtransFailSoft
# define XtransFailSoft NO
#endif
#if XtransFailSoft
# define XtransFailDefine /**/
#else
# define XtransFailDefine -DFAIL_HARD
#endif
|