#-- start of library_no_share ------

${CONSTITUENT}LIB :: $(${CONSTITUENT}lib)
	$(echo) "${CONSTITUENT} : library ok"

$(${CONSTITUENT}lib) :: ${OBJS}
	$(lib_echo) library
	$(lib_silent) $(ar) /out:$(${CONSTITUENT}lib) @<<
${OBJS}
<<
	$(lib_silent) echo "" >$(${CONSTITUENT}stamp)

${CONSTITUENT}clean ::
	$(cleanup_echo) #objects
	$(cleanup_silent) for %f in (${OBJS}) do $(cleanup_silent)if exist %f del %f
	$(cleanup_silent) if exist $(${CONSTITUENT}lib) del $(${CONSTITUENT}lib)

install_dir = $(CMTINSTALLAREA)\$(tag)\lib
${CONSTITUENT}installname = $(library_prefix)${CONSTITUENT}$(library_suffix).lib

${CONSTITUENT} :: ${CONSTITUENT}install

install :: ${CONSTITUENT}install

${CONSTITUENT}install :: $(install_dir)\$(${CONSTITUENT}installname)
!if "$(CMTINSTALLAREA)" != ""
	$(echo) "installation done"
!endif

$(install_dir)\$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
!if "$(CMTINSTALLAREA)" != ""
	$(install_echo) $(@F) into $(@D)
	$(install_silent) $(cmt_install_action) "$(BIN)" "$(${CONSTITUENT}installname)" "$(install_dir)"
!endif

##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall

uninstall :: ${CONSTITUENT}uninstall

${CONSTITUENT}uninstall ::
!if "$(CMTINSTALLAREA)" != ""
	$(cleanup_echo) "$(${CONSTITUENT}installname)" from "$(install_dir)"
	$(cleanup_silent) (cmt_uninstall_action) "$(BIN)" "$(${CONSTITUENT}installname)" "$(install_dir)"
!endif

#-- end of library_no_share ------
