/*
 *  Imakefile for xautolock. Edit to your likings.
 *
 *  The one thing to do in any case, is to make sure to compile with the
 *  Xidle  extension if you have it.  Using Xidle  is conceptually  much
 *  cleaner. Notice that when compiled with Xidle,  xautolock will still
 *  work properly when used against a server which doesn't have xidle.
 */
  
#ifdef HPArchitecture
      CCOPTIONS = -Ae
#endif

#if HasPrototypes
     PROTOTYPES = -DHasPrototypes 
#endif

#if HasVFork
          VFORK = -DHasVFork
#endif 

#if HasXidle
          XIDLE = -DHasXidle
#endif 

#if HasVoidSignalReturn
     VOIDSIGNAL = -DHasVoidSignalReturn
#endif 

/*
 *  The following solves the wait() problems in DecOSF, but there has
 *  to be a more general fix. DecOSF also has problems with getenv.
 */
#ifdef OSF
     EXTRA = -DSYSV
#endif 

LOCAL_LIBRARIES = $(XLIB)
       DEP_LIBS = $(DEPXLIB)
        DEFINES = $(PROTOTYPES) $(VOIDSIGNAL) $(VFORK) $(XIDLE) 

           SRCS = xautolock.c idlefile.c
           OBJS = xautolock.o idlefile.o

ComplexProgramTarget(xautolock)

