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

Last change on this file since 487 was 487, checked in by rybkin, 15 years ago

See C.L. 382

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