/**/include ../../../Path.incl
XCOMM $XConsortium: Imakefile,v 1.72 91/07/30 15:29:17 rws Exp $
XCOMM
XCOMM This library contains miscellaneous utility routines and is not part
XCOMM of the Xlib standard.
XCOMM

#define DoNormalLib YES

/*
#define DoNormalLib NormalLibXmu
#define DoSharedLib SharedLibXmu
#define DoDebugLib DebugLibXmu
#define DoProfileLib ProfileLibXmu
*/
#include <Library.tmpl>


/* two next lines have been added to standard mit distribution to use 
athena widgets out of their normal location*/
#include "../../../Imake.incl"
DEPENDFLAGS=DependFlags -I$(SCIDIR)/routines/


#ifdef RsArchitecture
REQUIREDLIBS = $(EXTENSIONSRC)/lib/libXext.a $(TOOLKITSRC)/libXt.a $(XLIBSRC)/libX11.a
#endif

/* Since people link in Xmu without Xt, we avoid references to string data. */
#if HasSharedLibraries
   SHAREDCODEDEF = SharedCodeDef -DXTSTRINGDEFINES
#endif
   INSTALLFLAGS = $(INSTINCFLAGS)
       LINTLIBS = $(LINTXLIB) 

#ifdef OsNameDefines
OS_NAME_DEFINES = OsNameDefines
#endif
        CSSDEFS = $(OS_NAME_DEFINES) ConnectionFlags
        BITDEFS = -DBITMAPDIR=\"$(INCDIR)/bitmaps\"

HEADERS = \
	Xmu.h \
	Atoms.h \
	CharSet.h \
	CloseHook.h \
	Converters.h \
	CurUtil.h \
	CvtCache.h \
	DisplayQue.h \
	Drawing.h \
	Editres.h \
	EditresP.h \
	Error.h \
	Initer.h \
	Misc.h \
	StdSel.h \
	StdCmap.h \
	SysUtil.h \
	WidgetNode.h \
	WinUtil.h \
	Xct.h


SRCS = \
	AllCmap.c \
	Atoms.c \
	ClientWin.c \
	CloseHook.c \
	CmapAlloc.c \
	CrCmap.c \
	CrPixFBit.c \
	CursorName.c \
	CvtCache.c \
	CvtStdSel.c \
	DefErrMsg.c \
	DelCmap.c \
	DisplayQue.c \
	Distinct.c \
	DrawLogo.c \
	DrRndRect.c \
	EditresCom.c \
	FToCback.c \
	GetHost.c \
	GrayPixmap.c \
	Initer.c \
	LocBitmap.c \
	Lookup.c \
	LookupCmap.c \
	Lower.c \
	RdBitF.c \
	ScrOfWin.c \
	ShapeWidg.c \
	StdCmap.c \
	StrToBS.c \
	StrToBmap.c \
	StrToCurs.c \
	StrToGrav.c \
	StrToJust.c \
	StrToLong.c \
	StrToOrnt.c \
	StrToShap.c \
	StrToWidg.c \
	UpdMapHint.c \
	VisCmap.c \
	WidgetNode.c \
	Xct.c \
	sharedlib.c

#if SharedDataSeparation
UNSHAREDOBJS = sharedlib.o
#endif

OBJS = \
	AllCmap.o \
	Atoms.o \
	ClientWin.o \
	CloseHook.o \
	CmapAlloc.o \
	CrCmap.o \
	CrPixFBit.o \
	CursorName.o \
	CvtCache.o \
	CvtStdSel.o \
	DefErrMsg.o \
	DelCmap.o \
	DisplayQue.o \
	Distinct.o \
	DrawLogo.o \
	DrRndRect.o \
	EditresCom.o \
	FToCback.o \
	GetHost.o \
	GrayPixmap.o \
	Initer.o \
	LocBitmap.o \
	Lookup.o \
	LookupCmap.o \
	Lower.o \
	RdBitF.o \
	ScrOfWin.o \
	ShapeWidg.o \
	StdCmap.o \
	StrToBS.o \
	StrToBmap.o \
	StrToCurs.o \
	StrToGrav.o \
	StrToJust.o \
	StrToLong.o \
	StrToOrnt.o \
	StrToShap.o \
	StrToWidg.o \
	UpdMapHint.o \
	VisCmap.o \
	WidgetNode.o \
	Xct.o

LibraryObjectRule()

/* Modified by CLG
SpecialLibObjectRule(CvtStdSel.o,$(ICONFIGFILES),$(CSSDEFS))
SpecialLibObjectRule(LocBitmap.o,$(ICONFIGFILES),$(BITDEFS))
*/

SpecialLibObjectRule(CvtStdSel.o,,$(CSSDEFS))
SpecialLibObjectRule(LocBitmap.o,,$(BITDEFS))

#if DoSharedLib && SharedDataSeparation
SpecialObjectRule(sharedlib.o,,$(SHLIBDEF))
#endif

#if DoSharedLib
#if DoNormalLib
SharedLibraryTarget(Xmu,$(SOXMUREV),$(OBJS),shared,..)
#else
SharedLibraryTarget(Xmu,$(SOXMUREV),$(OBJS),.,.)
#endif
SharedLibraryDataTarget(Xmu,$(SOXMUREV),$(UNSHAREDOBJS))
#ifdef RsArchitecture
libXmu.a: $(EXTENSIONSRC)/lib/libXext.a

$(EXTENSIONSRC)/lib/libXext.a:
	cd $(EXTENSIONSRC)/lib; make libXext.a
#endif
InstallSharedLibrary(Xmu,$(SOXMUREV),$(USRLIBDIR))
InstallSharedLibraryData(Xmu,$(SOXMUREV),$(USRLIBDIR))
#endif
#if DoNormalLib
LibraryTarget($(PATHO)/libXmu.a,$(OBJS))
InstallLibrary(Xmu,$(USRLIBDIR))
#endif
#if DoProfileLib
ProfiledLibraryTarget(Xmu,$(OBJS))
InstallLibrary(Xmu_p,$(USRLIBDIR))
#endif
#if DoDebugLib
DebuggedLibraryTarget(Xmu,$(OBJS))
InstallLibrary(Xmu_g,$(USRLIBDIR))
#endif

LintLibraryTarget(Xmu,$(SRCS))
InstallLintLibrary(Xmu,$(LINTLIBDIR))

BuildIncludes($(HEADERS),Xmu,..)

InstallMultiple($(HEADERS),$(INCDIR)/Xmu)

DependTarget()

NormalLintTarget($(SRCS))

