XCOMM $Xorg: lnxLib.tmpl,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
XCOMM $XFree86: xc/config/cf/lnxLib.tmpl,v 3.15 2003/04/14 20:35:50 herrb Exp $

/*
 * Linux shared library template
 */

#if UseElfFormat

#ifndef FixupLibReferences
#define FixupLibReferences()						@@\
XMULIBONLY = -lXmu							@@\
XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
#endif

#ifndef XawClientLibs
#define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XPMLIB) $(XLIB)
#endif

#define CplusplusLibC

#define SharedX11Reqs
#define SharedOldXReqs	  $(LDPRELIB) $(XLIBONLY)
#define SharedXtReqs	  $(LDPRELIB) $(XLIBONLY) $(SMLIB) $(ICELIB)
#define SharedXaw6Reqs	  $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
#define SharedXawReqs	  $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
#define SharedXmuReqs	  $(LDPRELIB) $(XTOOLLIB) $(XLIB)
#define SharedXextReqs	  $(LDPRELIB) $(XLIBONLY)
#define SharedXiReqs	  $(LDPRELIB) $(XLIB)
#define SharedXrenderReqs $(LDPRELIB) $(EXTENSIONLIB) $(XLIB)
#define SharedXtstReqs	  $(LDPRELIB) $(XLIB)
#define SharedSMReqs	  $(LDPRELIB) $(ICELIB)

#if GlxUseBuiltInDRIDriver
#define ExtraSharedGLReqs /**/
#else
#define ExtraSharedGLReqs -ldl
#endif
#define SharedGLReqs	  $(LDPRELIB) $(XLIB) ExtraSharedGLReqs

#else	/* UseElfFormat */

#ifndef FixupLibReferences
#define FixupLibReferences()						@@\
XMULIB = -lXmu $(XLIB)
#endif

#endif	/* UseElfFormat */

#ifndef SharedXReqs
# define SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB) $(LDPOSTLIBS)
#endif

#ifndef SharedXmReqs
# define SharedXmReqs $(LDPRELIBS) SharedXReqs -lc
#endif

#ifndef SharedTtReqs
# define SharedTtReqs $(LDPRELIBS) SharedXReqs $(CXXLIB)
#endif

#define NoMessageCatalog
