# BuildSystemHeader added automatically
/**/# $Header: [Imakefile,v 1.1.1.1 92/03/16 14:47:08 haney Exp ]$
    STD_DEFINES = LibraryDefines ConnectionFlags ExtensionDefines
    CDEBUGFLAGS = LibraryCDebugFlags
/**/# Xt used first because the headers should first come from the Xt
/**/# binding.
#define OSInclRoot /usr/include
  OSINCLROOT = OSInclRoot
STD_INCLUDES= -I$(INCLUDESRC)/Xt
INCLUDES = -I$(TOP)/X11 -I$(EXTENSIONSRC)/include -I$(XLIBSRC) \
           -I$(TOOLKITSRC) -I$(FONTSRC)/include \
	   -I$(OSINCLROOT) \
           -I$(OSINCLROOT)/sys -I$(OSINCLROOT)/net -I$(OSINCLROOT)/netdnet \
           -I$(OSINCLROOT)/netinet
SRCS =  XETrapInit.c XEConTxt.c XEWrappers.c XEDsptch.c \
        XECallBcks.c XEPrInfo.c XERqsts.c chparse.c \
        XEStrMap.c sleep.c XEKeybCtrl.c 
OBJS =  XETrapInit.o XEConTxt.o XEWrappers.o XEDsptch.o \
        XECallBcks.o XEPrInfo.o XERqsts.o chparse.o \
        XEStrMap.o sleep.o XEKeybCtrl.o 

XTRAPREF = $(TOP)/../../xtrapcode/

       LINTLIBS = $(LINTXLIB)

#if DebugLibXext && ProfileLibXext
DebuggedAndProfiledLibraryObjectRule()
#else
# if DebugLibXext
DebuggedLibraryObjectRule()
# else
#  if ProfileLibXext
ProfiledLibraryObjectRule()
#  else
NormalLibraryObjectRule()
#  endif
# endif
#endif

#ifdef UWSBuild
/**/# before the toolkits are built, before 4.spring, we need to get the
/**/# headers only for this component

depend:: FRC
	(cd $(TOP)/..; build -c lib/Xt includes)
#endif


NormalLibraryTarget(XTrap,$(OBJS))
LintLibraryTarget(XTrap,$(SRCS))
InstallLibrary(XTrap,$(USRLIBDIR))
InstallLintLibrary(XTrap,$(LINTLIBDIR))

#if ProfileLibXTrap
ProfiledLibraryTarget(XTrap,$(OBJS))
InstallLibrary(XTrap_p,$(USRLIBDIR))
#endif

#if DebugLibXTrap
DebuggedLibraryTarget(XTrap,$(OBJS))
#endif

links:
	$(RM) Imakefile; \
	$(LN) $(XTRAPREF)/lib_xtrap.imake Imakefile; \
	for i in $(SRCS); do (set -x; $(RM) $$i; $(LN) $(XTRAPREF)/$$i .); done

DependTarget()

NormalLintTarget($(SRCS))

FRC:



