[466] | 1 | #-- start of library_no_static ------ |
---|
| 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) |
---|
[469] | 14 | $(${CONSTITUENT}shstamp) :: ${OBJS} $(use_requirements) $(${CONSTITUENT}stamps) |
---|
[466] | 15 | $(lib_echo) dynamic library $(bin)${CONSTITUENT}.dll |
---|
| 16 | # $(lib_silent) $(make_shlib) $(tag) ${CONSTITUENT} $(cpplinkflags) $(${CONSTITUENT}_shlibflags) |
---|
| 17 | !IF EXIST ("$(bin)${CONSTITUENT}\${CONSTITUENT}_dll.obj") |
---|
| 18 | $(lib_silent) link.exe /nologo /dll /out:$(bin)${CONSTITUENT}.dll $(bin)${CONSTITUENT}\${CONSTITUENT}_dll.obj @<< /machine:ix86 $(cpplinkflags) $(${CONSTITUENT}_shlibflags) |
---|
| 19 | ${OBJS} |
---|
| 20 | << |
---|
| 21 | !ELSE IF EXIST ("$(bin)${CONSTITUENT}\${CONSTITUENT}_entries.obj") |
---|
| 22 | $(lib_silent) link.exe /nologo /dll /out:$(bin)${CONSTITUENT}.dll $(bin)${CONSTITUENT}\${CONSTITUENT}_load.obj @<< /machine:ix86 $(cpplinkflags) $(${CONSTITUENT}_shlibflags) |
---|
| 23 | ${OBJS} |
---|
| 24 | << |
---|
| 25 | !ELSE |
---|
| 26 | # $(lib_silent) $(cmtexe) build windefs $(bin)${CONSTITUENT}.arc >$(bin)${CONSTITUENT}.def |
---|
| 27 | $(lib_silent) $(cmtexe) build windefs /name:${CONSTITUENT} @<<$(bin)${CONSTITUENT}.txt >$(bin)${CONSTITUENT}.def |
---|
| 28 | ${OBJS} |
---|
| 29 | << |
---|
| 30 | $(lib_silent) lib.exe /nologo /machine:ix86 /def:$(bin)${CONSTITUENT}.def /out:$(bin)${CONSTITUENT}.lib |
---|
| 31 | $(lib_silent) if exist $(bin)${CONSTITUENT}.dll del $(bin)${CONSTITUENT}.dll |
---|
| 32 | $(lib_silent) link.exe /nologo /dll /out:$(bin)${CONSTITUENT}.dll $(bin)${CONSTITUENT}.exp @$(bin)${CONSTITUENT}.txt $(cpplinkflags) $(${CONSTITUENT}_shlibflags) |
---|
| 33 | !ENDIF |
---|
[545] | 34 | $(lib_silent) if exist $(bin)${CONSTITUENT}.dll echo "" >$(${CONSTITUENT}stamp) |
---|
[466] | 35 | $(lib_silent) if exist $(bin)${CONSTITUENT}.dll echo "" >$(${CONSTITUENT}shstamp) |
---|
| 36 | |
---|
| 37 | ${CONSTITUENT}clean :: |
---|
| 38 | $(cleanup_echo) #objects |
---|
[492] | 39 | $(cleanup_silent) for %f in (${OBJS}) do $(cleanup_silent)if exist %f del %f |
---|
[599] | 40 | $(cleanup_silent) if exist $(bin)${CONSTITUENT} rmdir /S /Q $(bin)${CONSTITUENT} |
---|
[466] | 41 | $(cleanup_silent) if exist $(bin)${CONSTITUENT}.arc del $(bin)${CONSTITUENT}.arc |
---|
| 42 | $(cleanup_silent) if exist $(bin)${CONSTITUENT}.lib del $(bin)${CONSTITUENT}.lib |
---|
| 43 | $(cleanup_silent) if exist $(bin)${CONSTITUENT}.def del $(bin)${CONSTITUENT}.def |
---|
| 44 | $(cleanup_silent) if exist $(bin)${CONSTITUENT}.exp del $(bin)${CONSTITUENT}.exp |
---|
| 45 | $(cleanup_silent) if exist $(bin)${CONSTITUENT}.dll del $(bin)${CONSTITUENT}.dll |
---|
[599] | 46 | $(cleanup_silent) if exist $(bin)${CONSTITUENT}.dll.manifest del $(bin)${CONSTITUENT}.dll.manifest |
---|
[466] | 47 | $(cleanup_silent) if exist $(bin)${CONSTITUENT}.pdb del $(bin)${CONSTITUENT}.pdb |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | install_dir = $(CMTINSTALLAREA)\$(tag)\lib |
---|
| 51 | ${CONSTITUENT}installlibname = $(library_prefix)${CONSTITUENT}$(library_suffix).lib |
---|
| 52 | ${CONSTITUENT}installdllname = $(library_prefix)${CONSTITUENT}$(library_suffix).dll |
---|
| 53 | ${CONSTITUENT}installpdbname = $(library_prefix)${CONSTITUENT}$(library_suffix).pdb |
---|
| 54 | |
---|
[641] | 55 | ${CONSTITUENT} :: ${CONSTITUENT}install ; |
---|
[466] | 56 | |
---|
[641] | 57 | install :: ${CONSTITUENT}install ; |
---|
[466] | 58 | |
---|
| 59 | !IF "$(vsCONFIG)" == "Debug" |
---|
| 60 | ${CONSTITUENT}install :: $(${CONSTITUENT}shstamp) $(install_dir)\$(${CONSTITUENT}installlibname) $(install_dir)\$(${CONSTITUENT}installdllname) $(install_dir)\$(${CONSTITUENT}installpdbname) |
---|
| 61 | !if "$(CMTINSTALLAREA)" != "" |
---|
| 62 | $(echo) "installation done" |
---|
| 63 | !endif |
---|
| 64 | |
---|
| 65 | !ELSE |
---|
| 66 | |
---|
| 67 | ${CONSTITUENT}install :: $(${CONSTITUENT}shstamp) $(install_dir)\$(${CONSTITUENT}installlibname) $(install_dir)\$(${CONSTITUENT}installdllname) |
---|
| 68 | !if "$(CMTINSTALLAREA)" != "" |
---|
| 69 | $(echo) "installation done" |
---|
| 70 | !endif |
---|
| 71 | !ENDIF |
---|
| 72 | |
---|
| 73 | $(install_dir)\$(${CONSTITUENT}installlibname) :: $(bin)$(${CONSTITUENT}installlibname) |
---|
| 74 | !if "$(CMTINSTALLAREA)" != "" |
---|
| 75 | $(install_echo) $(@F) into $(@D) |
---|
[469] | 76 | $(install_silent) $(cmt_install_action) "$(BIN)" "$(${CONSTITUENT}installlibname)" "$(install_dir)" |
---|
[466] | 77 | !endif |
---|
| 78 | |
---|
| 79 | $(install_dir)\$(${CONSTITUENT}installdllname) :: $(bin)$(${CONSTITUENT}installdllname) |
---|
| 80 | !if "$(CMTINSTALLAREA)" != "" |
---|
| 81 | $(install_echo) $(@F) into $(@D) |
---|
[469] | 82 | $(install_silent) $(cmt_install_action) "$(BIN)" "$(${CONSTITUENT}installdllname)" "$(install_dir)" |
---|
[466] | 83 | !endif |
---|
| 84 | |
---|
| 85 | $(install_dir)\$(${CONSTITUENT}installpdbname) :: $(bin)$(${CONSTITUENT}installpdbname) |
---|
| 86 | !if "$(CMTINSTALLAREA)" != "" |
---|
| 87 | $(install_echo) $(@F) into $(@D) |
---|
[469] | 88 | $(install_silent) $(cmt_install_action) "$(BIN)" "$(${CONSTITUENT}installpdbname)" "$(install_dir)" |
---|
[466] | 89 | !endif |
---|
| 90 | |
---|
[487] | 91 | ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall |
---|
[466] | 92 | |
---|
[641] | 93 | uninstall :: ${CONSTITUENT}uninstall ; |
---|
[466] | 94 | |
---|
| 95 | ${CONSTITUENT}uninstall :: |
---|
| 96 | !if "$(CMTINSTALLAREA)" != "" |
---|
| 97 | $(cleanup_echo) "$(${CONSTITUENT}installlibname)" from "$(install_dir)" |
---|
[469] | 98 | $(cleanup_silent) $(cmt_uninstall_action) "$(BIN)" "$(${CONSTITUENT}installlibname)" "$(install_dir)" |
---|
[466] | 99 | $(cleanup_echo) "$(${CONSTITUENT}installdllname)" from "$(install_dir)" |
---|
[469] | 100 | $(cleanup_silent) $(cmt_uninstall_action) "$(BIN)" "$(${CONSTITUENT}installdllname)" "$(install_dir)" |
---|
[466] | 101 | !endif |
---|
| 102 | |
---|
| 103 | #-- end of library_no_static ------ |
---|