source: CMT/HEAD/mgr/fragments/nmake/library @ 492

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

See C.L. 387

  • Property svn:eol-style set to native
File size: 3.4 KB
Line 
1#-- start of libary ----------------------
2
3${CONSTITUENT}LIB :: $(${CONSTITUENT}shstamp)
4        $(echo) "${CONSTITUENT} : library ok"
5
6$(${CONSTITUENT}arc) :: ${OBJS}
7        $(lib_echo) library
8        $(lib_silent) $(ar) /out:$(bin)${CONSTITUENT}.arc @<<
9${OBJS}
10<<
11        $(lib_silent) echo "" >$(${CONSTITUENT}stamp)
12
13$(${CONSTITUENT}shstamp) :: $(${CONSTITUENT}arc) requirements $(use_requirements) $(${CONSTITUENT}stamps)
14        $(lib_echo) dynamic library $(bin)${CONSTITUENT}.dll
15        $(lib_silent) $(make_shlib) $(tag) ${CONSTITUENT} $(cpplinkflags) $(${CONSTITUENT}_shlibflags)
16        $(lib_silent) if exist $(bin)${CONSTITUENT}.dll echo "" >$(${CONSTITUENT}shstamp)
17
18${CONSTITUENT}clean ::
19        $(cleanup_echo) #objects
20        $(cleanup_silent) for %f in (${OBJS}) do $(cleanup_silent)if exist %f del %f
21        $(cleanup_silent) if exist $(bin)${CONSTITUENT}.arc del $(bin)${CONSTITUENT}.arc
22        $(cleanup_silent) if exist $(bin)${CONSTITUENT}.lib del $(bin)${CONSTITUENT}.lib
23        $(cleanup_silent) if exist $(bin)${CONSTITUENT}.def del $(bin)${CONSTITUENT}.def
24        $(cleanup_silent) if exist $(bin)${CONSTITUENT}.exp del $(bin)${CONSTITUENT}.exp
25        $(cleanup_silent) if exist $(bin)${CONSTITUENT}.dll del $(bin)${CONSTITUENT}.dll
26        $(cleanup_silent) if exist $(bin)${CONSTITUENT}.pdb del $(bin)${CONSTITUENT}.pdb
27
28
29install_dir = $(CMTINSTALLAREA)\$(tag)\lib
30${CONSTITUENT}installlibname = $(library_prefix)${CONSTITUENT}$(library_suffix).lib
31${CONSTITUENT}installdllname = $(library_prefix)${CONSTITUENT}$(library_suffix).dll
32${CONSTITUENT}installpdbname = $(library_prefix)${CONSTITUENT}$(library_suffix).pdb
33
34${CONSTITUENT} :: ${CONSTITUENT}install
35
36install :: ${CONSTITUENT}install
37
38!IF "$(vsCONFIG)" == "Debug"
39${CONSTITUENT}install :: $(${CONSTITUENT}shstamp) $(install_dir)\$(${CONSTITUENT}installlibname) $(install_dir)\$(${CONSTITUENT}installdllname) $(install_dir)\$(${CONSTITUENT}installpdbname)
40!if "$(CMTINSTALLAREA)" != ""
41        $(echo) "installation done"
42!endif
43
44!ELSE
45
46${CONSTITUENT}install :: $(${CONSTITUENT}shstamp) $(install_dir)\$(${CONSTITUENT}installlibname) $(install_dir)\$(${CONSTITUENT}installdllname)
47!if "$(CMTINSTALLAREA)" != ""
48        $(echo) "installation done"
49!endif
50!ENDIF
51
52$(install_dir)\$(${CONSTITUENT}installlibname) :: $(bin)$(${CONSTITUENT}installlibname)
53!if "$(CMTINSTALLAREA)" != ""
54        $(install_echo) $(@F) into $(@D)
55        $(install_silent) $(cmt_install_action) "$(BIN)" "$(${CONSTITUENT}installlibname)" "$(install_dir)"
56!endif
57
58$(install_dir)\$(${CONSTITUENT}installdllname) :: $(bin)$(${CONSTITUENT}installdllname)
59!if "$(CMTINSTALLAREA)" != ""
60        $(install_echo) $(@F) into $(@D)
61        $(install_silent) $(cmt_install_action) "$(BIN)" "$(${CONSTITUENT}installdllname)" "$(install_dir)"
62!endif
63
64$(install_dir)\$(${CONSTITUENT}installpdbname) :: $(bin)$(${CONSTITUENT}installpdbname)
65!if "$(CMTINSTALLAREA)" != ""
66        $(install_echo) $(@F) into $(@D)
67        $(install_silent) $(cmt_install_action) "$(BIN)" "$(${CONSTITUENT}installpdbname)" "$(install_dir)"
68!endif
69
70##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
71
72uninstall :: ${CONSTITUENT}uninstall
73
74${CONSTITUENT}uninstall ::
75!if "$(CMTINSTALLAREA)" != ""
76        $(cleanup_echo) "$(${CONSTITUENT}installlibname)" from "$(install_dir)"
77        $(cleanup_silent) $(cmt_uninstall_action) "$(BIN)" "$(${CONSTITUENT}installlibname)" "$(install_dir)"
78        $(cleanup_echo) "$(${CONSTITUENT}installdllname)" from "$(install_dir)"
79        $(cleanup_silent) $(cmt_uninstall_action) "$(BIN)" "$(${CONSTITUENT}installdllname)" "$(install_dir)"
80!endif
81
82#-- end of libary -----------------------
Note: See TracBrowser for help on using the repository browser.