source: CMT/HEAD/mgr/fragments/nmake/library_no_share @ 445

Last change on this file since 445 was 445, checked in by rybkin, 16 years ago

See C.L. 349

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1
2${CONSTITUENT}LIB :: $(${CONSTITUENT}lib)
3        $(echo) "${CONSTITUENT} : library ok"
4
5$(${CONSTITUENT}lib) :: ${OBJS}
6        $(lib_echo) library
7        $(lib_silent) $(ar) /out:$(${CONSTITUENT}lib) @<<
8${OBJS}
9<<
10        $(lib_silent) echo "" >$(${CONSTITUENT}stamp)
11
12${CONSTITUENT}clean ::
13        $(cleanup_echo) #objects
14        $(cleanup_silent) for %f in (${OBJS}) do if exist %f del %f
15        $(cleanup_silent) if exist $(${CONSTITUENT}lib) del $(${CONSTITUENT}lib)
16
17install_dir = $(CMTINSTALLAREA)\$(tag)\lib
18${CONSTITUENT}installname = $(library_prefix)${CONSTITUENT}$(library_suffix).lib
19
20${CONSTITUENT} :: ${CONSTITUENT}install
21
22install :: ${CONSTITUENT}install
23
24${CONSTITUENT}install :: $(install_dir)\$(${CONSTITUENT}installname)
25!if "$(CMTINSTALLAREA)" != ""
26        $(echo) "installation done"
27!endif
28
29$(install_dir)\$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
30!if "$(CMTINSTALLAREA)" != ""
31        $(install_echo) $(@F) into $(@D)
32        $(install_silent) $(cmt_install_action) "$(PACKAGE_ROOT)\$(tag)" "$(${CONSTITUENT}installname)" "$(install_dir)"
33!endif
34
35${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
36
37uninstall :: ${CONSTITUENT}uninstall
38
39${CONSTITUENT}uninstall ::
40!if "$(CMTINSTALLAREA)" != ""
41        $(cleanup_echo) "$(${CONSTITUENT}installname)" from "$(install_dir)"
42        $(cleanup_silent) (cmt_uninstall_action) "$(PACKAGE_ROOT)\$(tag)" "$(${CONSTITUENT}installname)" "$(install_dir)"
43!endif
44
Note: See TracBrowser for help on using the repository browser.