[469] | 1 | #-- start of libary ---------------------- |
---|
[6] | 2 | |
---|
| 3 | ${CONSTITUENT}LIB :: $(${CONSTITUENT}shstamp) |
---|
[445] | 4 | $(echo) "${CONSTITUENT} : library ok" |
---|
[6] | 5 | |
---|
| 6 | $(${CONSTITUENT}arc) :: ${OBJS} |
---|
| 7 | $(lib_echo) library |
---|
| 8 | $(lib_silent) $(ar) /out:$(bin)${CONSTITUENT}.arc @<< |
---|
| 9 | ${OBJS} |
---|
| 10 | << |
---|
[445] | 11 | $(lib_silent) echo "" >$(${CONSTITUENT}stamp) |
---|
[6] | 12 | |
---|
| 13 | $(${CONSTITUENT}shstamp) :: $(${CONSTITUENT}arc) requirements $(use_requirements) $(${CONSTITUENT}stamps) |
---|
[445] | 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) |
---|
[6] | 17 | |
---|
| 18 | ${CONSTITUENT}clean :: |
---|
| 19 | $(cleanup_echo) #objects |
---|
[492] | 20 | $(cleanup_silent) for %f in (${OBJS}) do $(cleanup_silent)if exist %f del %f |
---|
[599] | 21 | $(cleanup_silent) if exist $(bin)${CONSTITUENT} rmdir /S /Q $(bin)${CONSTITUENT} |
---|
[6] | 22 | $(cleanup_silent) if exist $(bin)${CONSTITUENT}.arc del $(bin)${CONSTITUENT}.arc |
---|
| 23 | $(cleanup_silent) if exist $(bin)${CONSTITUENT}.lib del $(bin)${CONSTITUENT}.lib |
---|
| 24 | $(cleanup_silent) if exist $(bin)${CONSTITUENT}.def del $(bin)${CONSTITUENT}.def |
---|
| 25 | $(cleanup_silent) if exist $(bin)${CONSTITUENT}.exp del $(bin)${CONSTITUENT}.exp |
---|
| 26 | $(cleanup_silent) if exist $(bin)${CONSTITUENT}.dll del $(bin)${CONSTITUENT}.dll |
---|
[599] | 27 | $(cleanup_silent) if exist $(bin)${CONSTITUENT}.dll.manifest del $(bin)${CONSTITUENT}.dll.manifest |
---|
[6] | 28 | $(cleanup_silent) if exist $(bin)${CONSTITUENT}.pdb del $(bin)${CONSTITUENT}.pdb |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | install_dir = $(CMTINSTALLAREA)\$(tag)\lib |
---|
| 32 | ${CONSTITUENT}installlibname = $(library_prefix)${CONSTITUENT}$(library_suffix).lib |
---|
| 33 | ${CONSTITUENT}installdllname = $(library_prefix)${CONSTITUENT}$(library_suffix).dll |
---|
| 34 | ${CONSTITUENT}installpdbname = $(library_prefix)${CONSTITUENT}$(library_suffix).pdb |
---|
| 35 | |
---|
[641] | 36 | ${CONSTITUENT} :: ${CONSTITUENT}install ; |
---|
[6] | 37 | |
---|
[641] | 38 | install :: ${CONSTITUENT}install ; |
---|
[6] | 39 | |
---|
| 40 | !IF "$(vsCONFIG)" == "Debug" |
---|
| 41 | ${CONSTITUENT}install :: $(${CONSTITUENT}shstamp) $(install_dir)\$(${CONSTITUENT}installlibname) $(install_dir)\$(${CONSTITUENT}installdllname) $(install_dir)\$(${CONSTITUENT}installpdbname) |
---|
[445] | 42 | !if "$(CMTINSTALLAREA)" != "" |
---|
| 43 | $(echo) "installation done" |
---|
| 44 | !endif |
---|
[6] | 45 | |
---|
| 46 | !ELSE |
---|
| 47 | |
---|
| 48 | ${CONSTITUENT}install :: $(${CONSTITUENT}shstamp) $(install_dir)\$(${CONSTITUENT}installlibname) $(install_dir)\$(${CONSTITUENT}installdllname) |
---|
[445] | 49 | !if "$(CMTINSTALLAREA)" != "" |
---|
| 50 | $(echo) "installation done" |
---|
| 51 | !endif |
---|
[6] | 52 | !ENDIF |
---|
| 53 | |
---|
| 54 | $(install_dir)\$(${CONSTITUENT}installlibname) :: $(bin)$(${CONSTITUENT}installlibname) |
---|
[445] | 55 | !if "$(CMTINSTALLAREA)" != "" |
---|
| 56 | $(install_echo) $(@F) into $(@D) |
---|
[469] | 57 | $(install_silent) $(cmt_install_action) "$(BIN)" "$(${CONSTITUENT}installlibname)" "$(install_dir)" |
---|
[445] | 58 | !endif |
---|
[6] | 59 | |
---|
| 60 | $(install_dir)\$(${CONSTITUENT}installdllname) :: $(bin)$(${CONSTITUENT}installdllname) |
---|
[445] | 61 | !if "$(CMTINSTALLAREA)" != "" |
---|
| 62 | $(install_echo) $(@F) into $(@D) |
---|
[469] | 63 | $(install_silent) $(cmt_install_action) "$(BIN)" "$(${CONSTITUENT}installdllname)" "$(install_dir)" |
---|
[445] | 64 | !endif |
---|
[6] | 65 | |
---|
| 66 | $(install_dir)\$(${CONSTITUENT}installpdbname) :: $(bin)$(${CONSTITUENT}installpdbname) |
---|
[445] | 67 | !if "$(CMTINSTALLAREA)" != "" |
---|
| 68 | $(install_echo) $(@F) into $(@D) |
---|
[469] | 69 | $(install_silent) $(cmt_install_action) "$(BIN)" "$(${CONSTITUENT}installpdbname)" "$(install_dir)" |
---|
[445] | 70 | !endif |
---|
[6] | 71 | |
---|
[487] | 72 | ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall |
---|
[6] | 73 | |
---|
[641] | 74 | uninstall :: ${CONSTITUENT}uninstall ; |
---|
[6] | 75 | |
---|
| 76 | ${CONSTITUENT}uninstall :: |
---|
[445] | 77 | !if "$(CMTINSTALLAREA)" != "" |
---|
| 78 | $(cleanup_echo) "$(${CONSTITUENT}installlibname)" from "$(install_dir)" |
---|
[469] | 79 | $(cleanup_silent) $(cmt_uninstall_action) "$(BIN)" "$(${CONSTITUENT}installlibname)" "$(install_dir)" |
---|
[445] | 80 | $(cleanup_echo) "$(${CONSTITUENT}installdllname)" from "$(install_dir)" |
---|
[469] | 81 | $(cleanup_silent) $(cmt_uninstall_action) "$(BIN)" "$(${CONSTITUENT}installdllname)" "$(install_dir)" |
---|
[445] | 82 | !endif |
---|
[6] | 83 | |
---|
[469] | 84 | #-- end of libary ----------------------- |
---|