/*
 *  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

#ifdef HasPrototypes
     PROTOTYPES = -DHasPrototypes 
#endif

#ifdef HasVFork
          VFORK = -DHasVFork
#endif 

#ifdef HasXidle
          XIDLE = -DHasXidle
#endif 

#ifdef 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)

SimpleProgramTarget(xautolock)

