aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/Xt/Imakefile.X.original
blob: da8297b1051d476622dadb998e46ef57c428ebeb (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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:46:12 cpqbld Exp $




XCOMM $XFree86: xc/lib/Xt/Imakefile,v 3.18tsi Exp $

#define DoNormalLib NormalLibXt
#define DoSharedLib SharedLibXt
#define DoExtraLib SharedLibXt
#define DoDebugLib DebugLibXt
#define DoProfileLib ProfileLibXt
#define HasSharedData YES
#define LibName NX_Xt
#define SoRev SOXTREV
#define IncSubdir X11

#include <Threads.tmpl>

#if ResourceConfigurationManagement
RCMOBJS = ResConfig.o
RCMSRCS = ResConfig.c
#else 
RCM_DEFINES = -DX_NO_RESOURCE_CONFIGURATION_MANAGEMENT
#endif

#if XtPopdownConformance
POPDOWN_DEFINES = 
#else
POPDOWN_DEFINES = -DX_NO_XT_POPDOWN_CONFORMANCE
#endif

#ifndef MotifBC
#define MotifBC NO
#endif

/* "YES" allows illegal XtGetValues requests with NULL ArgVal to
   usually succeed, as R5 did.  Some applications erroneously rely on
   this behavior.  Support for this will be removed in a future release. */
#ifndef GetValuesBC
#define GetValuesBC NO
#endif

#ifdef SharedXtReqs
REQUIREDLIBS = SharedXtReqs
#endif

/* config options */

XFILESEARCHPATHDEFAULT = XFileSearchPathDefault

XTERRORPREFIX = XtErrorPrefix
XTWARNINGPREFIX = XtWarningPrefix

#if UnalignedReferencesAllowed
  ALIGN_DEFINES = -DUNALIGNED
#endif
#if DoSharedLib && defined(SharedAllocateLocalDefines)
#undef AllocateLocalDefines
#define AllocateLocalDefines SharedAllocateLocalDefines
#endif
#if HasPoll
   POLL_DEFINES = -DUSE_POLL
#endif
#if HasSnprintf
   MISC_DEFINES = -DUSE_SNPRINTF -DLIBXT
#endif
        DEFINES = AllocateLocalDefines $(ALIGN_DEFINES) $(POLL_DEFINES) $(MISC_DEFINES) XtExtraDefines $(RCM_DEFINES) $(POPDOWN_DEFINES)

     DB_DEFINES = -DERRORDB=\"$(LIBDIR)/XtErrorDB\" \
		  -DXTERROR_PREFIX=\"$(XTERRORPREFIX)\" \
		  -DXTWARNING_PREFIX=\"$(XTWARNINGPREFIX)\"

   SRCH_DEFINES = -DXFILESEARCHPATHDEFAULT=\"$(XFILESEARCHPATHDEFAULT)\"
#if Malloc0ReturnsNull
  ALLOC_DEFINES = XtMalloc0ReturnsNullDefines
#endif
#if MotifBC
     BC_DEFINES = -DMOTIFBC
#endif
#if GetValuesBC
     GETVALUES_DEFINES = -DGETVALUES_BUG
#endif
#if NoRConst
 RCONST_DEFINES = -DNORCONST
#endif
STRINGSABIOPTIONS = ToolkitStringsABIOptions

       LINTLIBS = $(LINTXLIB)

HEADERS = \
	Composite.h \
	CompositeP.h \
	Constraint.h \
	ConstrainP.h \
	Core.h \
	CoreP.h \
	Intrinsic.h \
	IntrinsicP.h \
	Object.h \
	ObjectP.h \
	RectObj.h \
	RectObjP.h \
	Shell.h \
	ShellP.h \
	StringDefs.h \
	Vendor.h \
	VendorP.h \
			\
	CallbackI.h	\
	ConvertI.h	\
	CreateI.h	\
	EventI.h	\
	HookObjI.h	\
	InitialI.h	\
	IntrinsicI.h	\
	PassivGraI.h	\
	ResourceI.h	\
	SelectionI.h	\
	ShellI.h	\
	ThreadsI.h	\
	TranslateI.h	\
	VarargsI.h


SRCS = \
	$(MISCSRCS) \
	ActionHook.c \
	Alloc.c \
	ArgList.c \
	Callback.c \
	ClickTime.c \
	Composite.c \
	Constraint.c \
	Convert.c \
	Converters.c \
	Core.c \
	Create.c \
	Destroy.c \
	Display.c \
	Error.c \
	Event.c \
	EventUtil.c \
	Functions.c \
	GCManager.c \
	Geometry.c \
	GetActKey.c \
	GetResList.c \
	GetValues.c \
	HookObj.c \
	Hooks.c \
	Initialize.c \
	Intrinsic.c \
	Keyboard.c \
	Manage.c \
	NextEvent.c \
	Object.c \
	PassivGrab.c \
	Pointer.c \
	Popup.c \
	PopupCB.c \
	RectObj.c \
	Resources.c \
	Selection.c \
	SetSens.c \
	SetValues.c \
	SetWMCW.c \
	Shell.c \
	StringDefs.c \
	Threads.c \
	TMaction.c \
	TMgrab.c \
	TMkey.c \
	TMparse.c \
	TMprint.c \
	TMstate.c \
	VarCreate.c \
	VarGet.c \
	Varargs.c \
	Vendor.c \
	sharedlib.c \
	$(RCMSRCS)

OBJS = \
	$(MISCOBJS) \
	ActionHook.o \
	Alloc.o \
	ArgList.o \
	Callback.o \
	ClickTime.o \
	Composite.o \
	Constraint.o \
	Convert.o \
	Converters.o \
	Core.o \
	Create.o \
	Destroy.o \
	Display.o \
	Error.o \
	Event.o \
	EventUtil.o \
	Functions.o \
	GCManager.o \
	Geometry.o \
	GetActKey.o \
	GetResList.o \
	GetValues.o \
	HookObj.o \
	Hooks.o \
	Initialize.o \
	Intrinsic.o \
	Keyboard.o \
	Manage.o \
	NextEvent.o \
	Object.o \
	PassivGrab.o \
	Pointer.o \
	Popup.o \
	PopupCB.o \
	RectObj.o \
	Resources.o \
	Selection.o \
	SetSens.o \
	SetValues.o \
	SetWMCW.o \
	Shell.o \
	StringDefs.o \
	Threads.o \
	TMaction.o \
	TMgrab.o \
	TMkey.o \
	TMparse.o \
	TMprint.o \
	TMstate.o \
	VarCreate.o \
	VarGet.o \
	Varargs.o \
	Vendor.o \
	$(RCMOBJS)

#if SharedDataSeparation
UNSHAREDOBJS = StringDefs.o sharedlib.o
#else
UNSHAREDOBJS = sharedlib.o
#endif

#include <Library.tmpl>

SpecialCLibObjectRule(Intrinsic,$(ICONFIGFILES),$(SRCH_DEFINES))
SpecialCLibObjectRule(Error,$(ICONFIGFILES),$(DB_DEFINES))
SpecialCLibObjectRule(Alloc,$(_NOOP_),$(ALLOC_DEFINES))
SpecialCLibObjectRule(Converters,$(ICONFIGFILES),$(BC_DEFINES))
SpecialCLibObjectRule(Resources,$(ICONFIGFILES),$(GETVALUES_DEFINES))
SpecialCLibObjectRule(TMaction,$(_NOOP_),$(RCONST_DEFINES))
#if BuildXKBlib
SpecialCLibObjectRule(TMkey,$(_NOOP_),-DXKB)
#endif
#if DoSharedLib
SpecialCObjectRule(sharedlib,$(_NOOP_),$(SHLIBDEF))
#endif
#if defined(ItsyCompilerBug)
SpecialCLibObjectRule(PassivGrab,$(_NOOP_),-O0)
#endif

STRINGS_FILES = StringDefs.c StringDefs.h Shell.h
STRINGS_TMPLS = util/StrDefs.ct util/StrDefs.ht util/Shell.ht
STRING_LIST = util/string.list

ToolkitMakeStrings($(STRINGS_FILES),$(STRING_LIST),$(STRINGSABIOPTIONS),$(STRINGS_TMPLS),StringDefs.c)

DependTarget()