#define DoProfileLib ProfileLibDps
#define DoDebugLib DebugLibDps
#define DoSharedLib SharedLibDps
#ifdef NormalLibDps
#define DoNormalLib NormalLibDps
#else
#define DoNormalLib YES
#endif
#include "Library.tmpl"

#if Malloc0ReturnsNull
    ALLOC_DEFS = -DMALLOC_0_RETURNS_NULL
#else
    ALLOC_DEFS =
#endif

  DPS_INCLUDES = ../../include
EXTRA_INCLUDES = -I${DPS_INCLUDES}
 EXTRA_DEFINES = -DXENVIRONMENT $(ALLOC_DEFS)

SRCS = PSres.c

OBJS = PSres.o

LibraryObjectRule()

#if DoSharedLib
        SODPSREV = SharedDpsRev
#if DoNormalLib
SharedLibraryTarget(psres,$(SODPSREV),$(OBJS),shared,..)
#else
SharedLibraryTarget(psres,$(SODPSREV),$(OBJS),.,.)
#endif
InstallSharedLibrary(psres,$(SODPSREV),$(USRLIBDIR))
#endif
#if DoNormalLib
NormalLibraryTarget(psres,$(OBJS))
InstallLibrary(psres,$(USRLIBDIR))
#endif
#if DebugLibDps
DebuggedLibraryTarget(psres,$(OBJS))
InstallLibrary(psres_d,$(USRLIBDIR))
#endif
#if ProfileLibDps
ProfiledLibraryTarget(psres,$(OBJS))
InstallDpsProfiledLibrary(psres_p,$(USRLIBDIR))
#endif
