XCOMM $XConsortium: Imakefile,v 1.16 94/12/27 17:42:37 mor Exp $
XCOMM $XFree86: xc/workInProgress/xsm/Imakefile,v 3.1 1995/01/27 05:02:12 dawes Exp $
#if !defined(RshCmd)
#if SystemV
#ifdef HPArchitecture
#define	RshCmd remsh
#else
#define	RshCmd rcmd
#endif
#else
#define	RshCmd rsh
#endif
#endif

#ifdef MinixArchitecture
       SHELLSRC = Shell.c
       SHELLOBJ = Shell.o
#endif

         RSHCMD = RshCmd

        DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES = XawClientLibs

           SRCS1 = auth.c choose.c info.c list.c lock.c log.c \
		   mainwin.c misc.c popup.c printhex.c prop.c remote.c \
		   restart.c save.c saveutil.c signals.c xsm.c xtwatch.c \
		   $(SHELLSRC)
                   
           OBJS1 = auth.o choose.o info.o list.o lock.o log.o \
		   mainwin.o misc.o popup.o printhex.o prop.o remote.o \
	           restart.o save.o saveutil.o signals.o xsm.o xtwatch.o \
		   $(SHELLOBJ)

          PROGS1 = xsm

           SRCS2 = xsmclient.c $(SHELLSRC)
           OBJS2 = xsmclient.o $(SHELLOBJ)
          PROGS2 = xsmclient

            SRCS = $(SRCS1) $(SRCS2)
            OBJS = $(OBJS1) $(OBJS2)
        PROGRAMS = $(PROGS1) $(PROGS2)

ComplexProgramTarget_1(xsm,$(LOCAL_LIBRARIES),NullParameter)
ComplexProgramTarget_2(xsmclient,$(LOCAL_LIBRARIES),NullParameter)
SpecialCObjectRule(remote,NullParameter,'-DRSHCMD="$(RSHCMD)"')
#if !HasPutenv
SpecialCObjectRule(misc,NullParameter,-DNOPUTENV)
#endif
SpecialCObjectRule(restart,$(_NOOP_),'-DSYSTEM_INIT_FILE="'$(XSMDIR)'/system.xsm"')
SpecialCObjectRule(signals,NullParameter,$(SIGNAL_DEFINES))
#ifdef MinixArchitecture
ObjectFromSpecialSource(Shell,$(TOOLKITSRC)/Shell,-I$(TOOLKITSRC))
#endif
InstallNonExecFile(system.xsm,$(XSMDIR))
InstallAppDefaults(XSm)
