        INCLUDES = -I./ -I$(BUILDINCDIR)
         DEFINES = -D$(MAS_ENDIANNESS) $(ARCHDEFS)

            SRCS = maswatchdog.c
            OBJS = maswatchdog.o

XCOMM # This linking order is important...  -lmas MUST be first
 LOCAL_LIBRARIES = 
   SYS_LIBRARIES = 
         DEPLIBS = 
    REQUIREDLIBS = -lmas -lmasc $(ARCHREQUIREDLIBS)

AllTarget(masmkmf)
CppScriptTarget(masmkmf,masmkmf.cpp,-DCONFIGDIRSPEC='"'"-I$(CONFIGDIR)"'"',$(ICONFIGFILES))
InstallNamedProg(masmkmf,masmkmf,$(BINDIR))

AllTarget(mas-config)
CppScriptTarget(mas-config,mas-config.cpp,-DMASLIBS='"'"-L$(LIBDIR) $(EXTRA_LIBRARIES) $(DEPLIBS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(REQUIREDLIBS)"'"' -DMASINC='"'"-I$(INCDIR)"'"' -DMASDEF='"'"$(DEFINES)"'"',$(ICONFIGFILES))
InstallNamedProg(mas-config,mas-config,$(BINDIR))

#if (LinuxDistribution == LinuxRedHat)
AllTarget(redhat_init.d_mas)
CppScriptTarget(redhat_init.d_mas,redhat_init.d_mas.cpp,-DMASBINDIR=$(BINDIR),$(ICONFIGFILES))
InstallNamedProg(redhat_init.d_mas,mas,/etc/init.d)
#endif

AllTarget(ProgramTargetName(maswatchdog))
NormalProgramTarget(maswatchdog,maswatchdog.o,$(DEPLIBS),$(LOCAL_LIBRARIES),$(SYS_LIBRARIES) $(REQUIREDLIBS))
InstallProgram(maswatchdog,$(BINDIR))

InstallNamedProg(mas-launch.sh,mas-launch.sh,$(BINDIR))

DependTarget()
LintTarget()
