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 $(cleanup_silent)if exist %f del %f |
---|
16 | $(cleanup_silent) if exist $(bin)${CONSTITUENT} rmdir /S /Q $(bin)${CONSTITUENT} |
---|
17 | $(cleanup_silent) if exist $(${CONSTITUENT}lib) del $(${CONSTITUENT}lib) |
---|
18 | |
---|
19 | install_dir = $(CMTINSTALLAREA)\$(tag)\lib |
---|
20 | ${CONSTITUENT}installname = $(library_prefix)${CONSTITUENT}$(library_suffix).lib |
---|
21 | |
---|
22 | ${CONSTITUENT} :: ${CONSTITUENT}install |
---|
23 | |
---|
24 | install :: ${CONSTITUENT}install |
---|
25 | |
---|
26 | ${CONSTITUENT}install :: $(install_dir)\$(${CONSTITUENT}installname) |
---|
27 | !if "$(CMTINSTALLAREA)" != "" |
---|
28 | $(echo) "installation done" |
---|
29 | !endif |
---|
30 | |
---|
31 | $(install_dir)\$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname) |
---|
32 | !if "$(CMTINSTALLAREA)" != "" |
---|
33 | $(install_echo) $(@F) into $(@D) |
---|
34 | $(install_silent) $(cmt_install_action) "$(BIN)" "$(${CONSTITUENT}installname)" "$(install_dir)" |
---|
35 | !endif |
---|
36 | |
---|
37 | ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall |
---|
38 | |
---|
39 | uninstall :: ${CONSTITUENT}uninstall |
---|
40 | |
---|
41 | ${CONSTITUENT}uninstall :: |
---|
42 | !if "$(CMTINSTALLAREA)" != "" |
---|
43 | $(cleanup_echo) "$(${CONSTITUENT}installname)" from "$(install_dir)" |
---|
44 | $(cleanup_silent) (cmt_uninstall_action) "$(BIN)" "$(${CONSTITUENT}installname)" "$(install_dir)" |
---|
45 | !endif |
---|
46 | |
---|
47 | #-- end of library_no_share ------ |
---|