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

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

${CONSTITUENT}clean ::
	$(cleanup_echo) #objects
	$(cleanup_silent) for %f in (${OBJS}) do 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 NOT "$(CMTINSTALLAREA)"=="" echo "installation done"

$(install_dir)\$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
	@if NOT "$(CMTINSTALLAREA)"=="" $(cmt_install_action) "$(PACKAGE_ROOT)\$(tag)" "$(${CONSTITUENT}installname)" "$(install_dir)"

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

uninstall :: ${CONSTITUENT}uninstall

${CONSTITUENT}uninstall ::
	@if NOT "$(CMTINSTALLAREA)"=="" $(cmt_uninstall_action) "$(PACKAGE_ROOT)\$(tag)" "$(${CONSTITUENT}installname)" "$(install_dir)"




