#define DoNormalLib  NO
#define DoSharedLib  YES
#define DoDebugLib   NO
#define DoProfileLib NO
#define IncSubdir mas

XCOMM #include "../mas.tmpl"

XCOMM # for libs with one .c file, you can use SIMPLELIBNAME
SIMPLELIBNAME = mas_frag

XCOMM ################ Architecture dependent ###########################

XCOMM ################ END Architecture dependent ########################

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

      DEVICENAME = $(SIMPLELIBNAME)_device
   CLIENTLIBNAME = $(SIMPLELIBNAME)

      DEVICESRCS = $(DEVICENAME).c $(ARCHSRCS)
      DEVICEOBJS = $(DEVICENAME).o $(ARCHOBJS)
   CLIENTLIBSRCS = $(CLIENTLIBNAME).c $(ARCHSRCS)
   CLIENTLIBOBJS = $(CLIENTLIBNAME).o $(ARCHOBJS)
            SRCS = $(DEVICESRCS) # need this for depend

 LOCAL_LIBRARIES = 
   SYS_LIBRARIES =
         DEPLIBS = 
    REQUIREDLIBS = $(ARCHREQUIREDLIBS) -L $(BUILDLIBDIR) -lmasc

         HEADERS = #mas_buffer.h

#include <Library.tmpl>

LibraryObjectRule()

#if DoNormalLib
NormalLibraryTarget($(DEVICENAME),$(DEVICEOBJS))
InstallLibrary($(DEVICENAME),$(DEVICEDIR))
#endif

#if DoDebugLib
DebuggedLibraryTarget($(DEVICENAME),$(DEVICEOBJS))
InstallLibrary($(DEVICENAME)_d,$(DEVICEDIR))
#endif

#if DoProfileLib
ProfiledLibraryTarget($(DEVICENAME),$(DEVICEOBJS))
InstallLibrary($(DEVICENAME)_p,$(DEVICEDIR))
#endif

#if DoSharedLib && !DoNormalLib
SharedLibraryTarget($(DEVICENAME),1.0,$(DEVICEOBJS),.,.)
InstallSharedLibrary($(DEVICENAME),1.0,$(DEVICEDIR))
#endif

DependTarget()
