aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/config/cf/ibmLib.tmpl
blob: 04ae2cbffbf1b6f36ba5ce963ad9691e22d5c80e (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
XCOMM $Xorg: ibmLib.tmpl,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
XCOMM $XdotOrg: xc/config/cf/ibmLib.tmpl,v 1.6 2005/05/19 18:53:42 ajax Exp $

/*
 * AIX shared library template
 */

XCOMM $XFree86: xc/config/cf/ibmLib.tmpl,v 1.3tsi Exp $

/*
 * IBM used an unusual shared object file name in some libraries. 
 * Mimic this behavior to preserve compatibility with IBM's libraries.
 */
#ifndef IBMShr4Compatibility
#define IBMShr4Compatibility	YES
#endif

/*
 * Imake thinks lines with colons are the result of a broken cpp
 * inserting extra leading whitespace, so use ',' as a separator.
 */
#if IBMShr4Compatibility
      SHR4OBJLIBS = X11,Xt,oldX,Xm,Mrm,Uil
#endif

#if ThreadedX
#define SharedThreadReqs -lpthreads
#define SharedX11Reqs -lpthreads
#else
#define SharedThreadReqs /**/
#endif

#define SharedXextReqs	$(XONLYLIB)
#define SharedXmuReqs	$(XTOOLLIB) $(XLIB)
#define SharedXmuuReqs	$(XLIBONLY)
#define SharedOldXReqs	$(XLIBONLY)
#define SharedXtReqs	$(XLIBONLY) $(SMLIB) $(ICELIB) SharedThreadReqs
#define SharedXawReqs	$(XMULIB) $(XTOOLLIB) $(EXTRAXAWREQS) $(XLIB) $(XPMLIB)
#define SharedXaw7Reqs	$(XMULIB) $(XTOOLLIB) $(XLIB) $(XPMLIB)
#define SharedXaw6Reqs	$(XMULIB) $(XTOOLLIB) $(XLIB)
#define SharedXiReqs	$(XLIB)
#define SharedXtstReqs	$(XLIB)
#define SharedXieReqs	$(XONLYLIB)
#define SharedSMReqs	$(ICELIB)
#define SharedXpReqs	$(XLIB)
#define SharedXpmReqs	$(XLIB)
#define SharedDPSReqs	$(XTOOLLIB) $(XLIB)
#define SharedDPSTKReqs	$(DPSLIB) $(XTOOLLIB) $(XLIB)
#define SharedXrenderReqs	$(XLIB)
#define SharedXrandrReqs	$(XRENDERLIB) $(XLIB)
#define SharedXcursorReqs	$(XRENDERLIB) $(XLIB)
#define SharedxkbfileReqs	$(XLIBONLY)
#define SharedxkbuiReqs	$(XLIBONLY) $(XKBFILELIB)
#define SharedFontencReqs	$(BUILDLIBDIR)/libz.a
#define SharedXfontcacheReqs	$(XLIB)
#define SharedXfontReqs	stubs/libfntstubs.a $(FREETYPE2LIB)
#define SharedXfixesReqs	$(XONLYLIB)
#define SharedXdamageReqs	$(XONLYLIB)
#define SharedXcompositeReqs	$(XONLYLIB)
#define SharedXevieReqs		$(XONLYLIB) $(EXTENSIONLIB)

#define SharedXReqs	$(XTOOLLIB) $(XPLIB) $(XLIB) SharedThreadReqs
#define SharedXmReqs	$(LDPRELIBS) SharedXReqs
#define SharedMrmReqs	$(LDPRELIBS) $(XMLIB) SharedXReqs
#define SharedUilReqs	$(LDPRELIBS) $(MRESOURCELIB) $(XMLIB) SharedXReqs

/* #define SharedPamReqs */
#define SharedTtReqs	$(LDPRELIBS) SharedXReqs $(CXXLIB)
#define SharedDtSvcReqs	$(LDPRELIBS) $(TTLIB) $(XMLIB) SharedXReqs $(CXXLIB)
#define SharedDtMmdbReqs $(LDPRELIBS) $(DTSVCLIB) $(TTLIB) $(XMLIB) SharedXReqs $(CXXLIB)
#define SharedDtSearchReqs $(LDPRELIBS) -lisode
#define SharedDtWidgetReqs $(LDPRELIBS) $(DTSVCLIB) $(XMLIB) SharedXReqs 
#define SharedDtHelpReqs $(LDPRELIBS) $(DTSVCLIB) $(XMLIB) SharedXReqs -liconv
#define SharedDtPrintReqs $(LDPRELIBS) $(DTSVCLIB) $(DTHELPLIB) $(XMLIB) SharedXReqs
#define SharedDtTermReqs $(LDPRELIBS) $(DTHELPLIB) $(DTSVCLIB) $(XMLIB) SharedXReqs -liconv -lm
#define SharedDtMrmReqs $(LDPRELIBS) $(DTTERMLIB) $(DTPRINTLIB) $(DTHELPLIB) $(DTWIDGETLIB) $(MRESOURCELIB) $(XMLIB) SharedXReqs
#define SharedCsaReqs	$(LDPRELIBS) $(DTSVCLIB) $(XMLIB) SharedXReqs

#if !defined(UseInstalled) && !defined(UseInstalledX11) \
    && !defined(UseImports) && !defined(ImportX11)
   /* we want this to be defined only when building X */
# ifndef FixupLibReferences
# define FixupLibReferences()						@@\
DEPXTOOLLIB = _UseCat($(USRLIBDIR),$(TOOLKITSRC),/libNX_Xt.a)
# endif
#endif

/* The inbuf paramter to iconv(3) is "const char**", not "char **" */
ICONV_INBUF_DEFINE = -DICONV_INBUF_CONST

ICONVSYSLIB = -liconv

#if (OSMajorVersion > 4) || ((OSMajorVersion == 4) && (OSMinorVersion >= 2))
DYNLIBSYSLIB = -ldl
#endif