        DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)

#if defined(MACH)
  SYS_LIBRARIES = -lmach
#endif /* MACH */

#if SunOSPlatform && OSMajorVersion == 4
  SYS_LIBRARIES = -lkvm
        SYSTYPE = -DSUNOS4
#endif

#if defined(SparcArchitecture) && OSMajorVersion == 5
  SYS_LIBRARIES = -lkvm -lelf
        SYSTYPE = -DSUNOS5
#endif

           SRCS = xcpustate.c Bar.c s.c rstat.c
           OBJS = xcpustate.o Bar.o s.o rstat.o
   INSTPGMFLAGS = InstPgmFlags InstKmemFlags
        DEFINES = $(SYSTYPE)

ComplexProgramTarget(xcpustate)

s.o: s-bsd.c s-cray-xmp.c s-gould-np1.c s-iris4d.c s-kvm.c s-mach.c s-sol.c
s.o: s-ultrix.c s-sunos5.c s.h

rstat.c: rstat.h

rstat.h: 
	rpcgen rstat.x
