/**
	Machine Types Available:

	AIX		IMB RISC 6000 Workstation.
	DIGITAL_UNIX	Digital Alpha Workstation.
        FREEBSD         FreeBSD on 80x86-series machine.
	HPUX		Hewlett Packard Workstation.
	LINUX		Any machine running Linux.
 	NETBSD		NetBSD axp/ix86/m68k/mips/ns32k/sparc/vax.
	SCO		Santa Cruz Operation Unix for Intel PC's.
	SGI		Silicon Graphics Workstation.
	SOLARIS		Sun Solaris 2.x Workstation.
	SUNOS		SunOS 4.x Workstation.

	Quota Definitions:

	HAVE_QUOTAS		Quota system available using "quotactl" system
				function.
	USE_IOCTL		Defined with HAVE_QUOTAS, but use the "ioctl"
				system command to access quota information.
	USE_QUOTA_COMMAND	Use this option if "quoactl" refuses
				to give you access to quota data. If
				sellected, mfsm will use the quota(1)
				command to access quota
				information. If an error occurs using
				this command, no further calls will be
				processed. Even if this define is
				used, mfsm will try to use "quotactl" first.

	df (1) Types:

	USE_SVR4DF	Define if you are not using BSD style df(1) command.

	Pixmap Definitions:

	HAVE_XPM	If you have the X colour pixmap library.
**/

#ifdef AIXArchitecture
  MACHINE_INFO = -DAIX -DHAVE_QUOTAS -DUSE_QUOTA_COMMAND
#endif

#ifdef AlphaArchitecture
  MACHINE_INFO = -DDIGITAL_UNIX -DHAVE_QUOTAS -DUSE_QUOTA_COMMAND
#endif

#ifdef HPArchitecture
  MACHINE_INFO = -DHPUX -DHAVE_QUOTAS -DUSE_QUOTA_COMMAND
#endif

#ifdef i386Architecture
  MACHINE_INFO = -DFREEBSD
#endif
  
#ifdef LinuxArchitecture
  MACHINE_INFO = -DLINUX
#endif

#ifdef NetBSDArchitecture
  MACHINE_INFO= -DNETBSD -DHAVE_QUOTAS -DUSE_QUOTA_COMMAND
#endif

#ifdef SCOArchitecture
  MACHINE_INFO = -DSCO -DUSE_SVR4DF
  SYS_LIBRARIES = $(XMULIB)
#endif

#ifdef SGIArchitecture
  MACHINE_INFO = -DSGI -DHAVE_QUOTAS -DUSE_QUOTA_COMMAND
#endif

#if defined(SunArchitecture)
  /** 
    If you are running SunOS and not Solaris you may need to defined
    -DUSE_SVR4DF if you are not using a BSD style df(1) command. BSD
    df returns the format:

      device other_info mount_point

    SVR4 df returns the format:

      mount_point (device) other_info
  **/
#if  OSMajorVersion > 4
  MACHINE_INFO = -DSOLARIS -DHAVE_QUOTAS -DUSE_QUOTA_COMMAND -DUSE_IOCTL
  SYS_LIBRARIES = -lgen
#else
  MACHINE_INFO = -DSUNOS -DHAVE_QUOTAS -DUSE_QUOTA_COMMAND
#endif
#endif

/**
  Generic Machine Definitions: If your machine does not appear above,
  try uncommenting the following line.
**/
XCOMM MACHINE_INFO = -DHAVE_QUOTAS -DUSE_QUOTA_COMMAND

/**
  If you have the XPM library, make HAVE_XPM defined
    and make sure the path names to the library and 
    includes are correct.
**/
#define HAVE_XPM

#ifdef HAVE_XPM
XPM_LIB     = -L/usr/local/lib/X11 -lXpm
XPM_INCLUDE = -I/usr/local/include -DHAVE_XPM
#endif

CDEBUGFLAGS = -O

/**
  Set these directories if you don't like the defaults.
  **/
XCOMM BINDIR = /usr/local/bin
XCOMM MANDIR = /usr/local/man/mann

DEFINES = $(MACHINE_INFO) $(XPM_INCLUDE) $(HAVE_QUOTAS)

LOCAL_LIBRARIES = $(XPM_LIB) -lXm $(XTOOLLIB) $(XLIB)


SRCS1 = mfsm.c
OBJS1 = mfsm.o

PROGRAMS = mfsm

AllTarget($(PROGRAMS))
NormalProgramTarget(mfsm,$(OBJS1),$(NULL),$(LOCAL_LIBRARIES),$(NULL))
InstallProgram(mfsm,$(BINDIR))
InstallManPageLong(mfsm,$(MANDIR),mfsm)
