#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
SharedLibraryTarget(psres,$(SODPSREV),$(OBJS),.,.)
InstallSharedLibrary(psres,$(SODPSREV),$(USRLIBDIR))
#endif
#if DoNormalLib
#if DoSharedLib
UnsharedLibraryTarget(psres,$(OBJS),unshared,..)
#else
NormalLibraryTarget(psres,$(OBJS))
#endif
InstallLibrary(psres,$(USRLIBDIR))
#endif
#if DebugLibDps
DebuggedLibraryTarget(psres,$(OBJS))
InstallLibrary(psres_d,$(USRLIBDIR))
#endif
#if ProfileLibDps
ProfiledLibraryTarget(psres,$(OBJS))
InstallDpsProfiledLibrary(psres_p,$(USRLIBDIR))
#endif
