/* Change BINDIR and MANDIR (uncomment them first) if you want to install
 * XSysStats other than the standard BINDIR and MANDIR, as defined by
 * X11, on your system.
 */

/* Change and uncomment CFLAGS and
 * CC below to override default values used to compile X programs on your
 * system as required.
 */


CFLAGS = -I/usr/X11R6/include  -g -Wall
CC = gcc

/* If using Solaris 2, uncomment the line below *
/*#define SOLARIS2
 */

#ifdef SOLARIS2
        DEFINES = -DSOLARIS2
        LIBS = -lrpcsvc -lnsl
#else
        LIBS = -lrpcsvc
#endif

        DEPLIBS = $(DEPXLIB)
        LOCAL_LIBRARIES = $(XLIB)
        SRCS = porting.c xsysstats.c
        OBJS = porting.o xsysstats.o

AllTarget(xsysstats)

NormalProgramTarget(xsysstats,$(OBJS),$(DEPLIBS),$(LOCAL_LIBRARIES),$(LIBS))
InstallProgram(xsysstats,$(BINDIR))
InstallManPage(xsysstats, $(MANDIR))
