XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:45:50 cpqbld Exp $

/**************************************************************************/
/*                                                                        */
/* Copyright (c) 2001,2003 NoMachine, http://www.nomachine.com.           */
/*                                                                        */
/* NXPROXY, NX protocol compression and NX extensions to this software    */
/* are copyright of NoMachine. Redistribution and use of the present      */
/* software is allowed according to terms specified in the file LICENSE   */
/* which comes in the source distribution.                                */
/*                                                                        */
/* Check http://www.nomachine.com/licensing.html for applicability.       */
/*                                                                        */
/* NX and NoMachine are trademarks of Medialogic S.p.A.                   */
/*                                                                        */
/* All rights reserved.                                                   */
/*                                                                        */
/**************************************************************************/

#if NXLibraries
                                                                                                                                              
NX_XCOMPLIBEXTTARGET = ../../../nxcompext/libXcompext.so
                                                                                                                                              
NX_REQUIREDLIBS =  -L../../../nxcompext -lXcompext
                                                                                                                                              
#endif

#define DoNormalLib NormalLibXext
#define DoSharedLib SharedLibXext
#define DoExtraLib SharedLibXext
#define DoDebugLib DebugLibXext
#define DoProfileLib ProfileLibXext
#define LibName Xext
#define SoRev SOXEXTREV
#define LibHeaders NO

#include <Threads.tmpl>

#ifdef SharedXextReqs
REQUIREDLIBS = SharedXextReqs $(NX_REQUIREDLIBS)
#endif

#if HasShm
      SHMSRCS = XShm.c
      SHMOBJS = XShm.o
#endif

#if Malloc0ReturnsNull
ALLOC_DEFINES = Malloc0ReturnsNullDefines
#endif

      DEFINES = $(ALLOC_DEFINES)
     INCLUDES = -I$(XLIBSRC)
         SRCS = globals.c extutil.c XMultibuf.c XShape.c $(SHMSRCS)  \
		MITMisc.c XTestExt1.c XSync.c Xdbe.c XLbx.c \
		XSecurity.c XAppgroup.c Xcup.c DPMS.c XEVI.c
         OBJS = globals.o extutil.o XMultibuf.o XShape.o $(SHMOBJS) \
		MITMisc.o XTestExt1.o XSync.o Xdbe.o XLbx.o \
		XSecurity.o XAppgroup.o Xcup.o DPMS.o XEVI.o
     LINTLIBS = $(LINTXLIB)

#if NXLibraries
                                                                                                                                              
$(NX_XCOMPLIBEXTTARGET):
	cd ../../../nxcompext && \
	./configure && \
	make
                                                                                                                                              
all:: $(NX_XCOMPLIBEXTTARGET)
                                                                                                                                              
#endif

#include <Library.tmpl>

DependTarget()
