Changeset 21812 for branches/gcc-kmk
- Timestamp:
- Nov 15, 2011, 7:40:01 PM (14 years ago)
- Location:
- branches/gcc-kmk
- Files:
-
- 5 edited
-
Config.kmk (modified) (6 diffs)
-
src/gdi32/Makefile.kmk (modified) (1 diff)
-
src/kernel32/Makefile.kmk (modified) (1 diff)
-
src/odincrt/Makefile.kmk (modified) (1 diff)
-
src/user32/Makefile.kmk (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/Config.kmk
r21804 r21812 28 28 # @param 2 .def file (defaults to <1>.def). 29 29 # @param 3 .def file for debug (defaults to <2>). 30 # @param 4 non-empty to disable .def post-processing with ImpDef. 31 # 32 odin_implib = $(evalcall odin_implib_common,$(1),$(2),$(3),$(4)) 30 # @param 4 list of object files containing additional exports. 31 # @param 5 non-empty to disable .def post-processing with ImpDef. 32 # 33 odin_implib = $(evalcall odin_implib_common,$(1),$(2),$(3),$(4),$(5)) 33 34 34 35 define odin_implib_common … … 40 41 local def_exp_debug := $(notdir $(basename $(def_debug))).exp.def 41 42 endif 42 local no_def_exp := $(4) 43 local obj_list := $(4) 44 local do_def_exp := $(if $(5),,1) 43 45 $(eval $(def_odin_implib)) 44 46 endef … … 48 50 $(target)_imp_TEMPLATE = OdinCxx 49 51 $(target)_imp_NAME = $(target) 50 $$$$($(target)_imp_0_OUTDIR)/$(def_exp): $(def) $$(PATH_STAGE_BIN)/impdef.exe | $$$$(dir $$$$@) 52 $$$$($(target)_imp_0_OUTDIR)/$(def_exp): $(def) \ 53 $(addsuffix $$$$(TOOL_GXX3OMF_COBJSUFF), \ 54 $(addprefix $$$$($(target)_0_OUTDIR)/,$(obj_list))) \ 55 $$(PATH_STAGE_BIN)/impdef.exe | $$$$(dir $$$$@) 51 56 %$$(call MSG_TOOL,impdef,$(target)_imp,$(abspath $$<),$$@) 52 $(QUIET2)$$(PATH_STAGE_BIN)/impdef.exe $$< $$@ 57 ifneq ($(do_def_exp),) 58 $(QUIET2)$$(PATH_STAGE_BIN)/impdef.exe $(def) $$@ 59 else 60 $(QUIET2)$(CP) $(def) $$@ 61 endif 62 ifneq ($(obj_list),) 63 $(QUIET2)emxexp.exe \ 64 $(addsuffix $$(TOOL_GXX3OMF_COBJSUFF), \ 65 $(addprefix $$($(target)_0_OUTDIR)/,$(obj_list))) >> $$@ 66 endif 53 67 ifeq ($(def_exp_debug),) 54 if eq ($(no_def_exp),)68 ifneq ($(do_def_exp)$(obj_list),) 55 69 $(target)_imp_SOURCES = $$($(target)_imp_0_OUTDIR)/$(def_exp) 56 70 $(target)_imp_CLEAN += $$($(target)_imp_0_OUTDIR)/$(def_exp) … … 59 73 endif 60 74 else 61 if eq ($(no_def_exp),)75 ifneq ($(do_def_exp)$(obj_list),) 62 76 $(target)_imp_SOURCES.release = $$($(target)_imp_0_OUTDIR)/$(def_exp) 63 77 $(target)_imp_CLEAN.release += $$($(target)_imp_0_OUTDIR)/$(def_exp) 64 $$$$($(target)_imp_0_OUTDIR)/$(def_exp_debug): $(def_debug) | $$$$(dir $$$$@) 78 $$$$($(target)_imp_0_OUTDIR)/$(def_exp_debug): $(def_debug) \ 79 $(addsuffix $$$$(TOOL_GXX3OMF_COBJSUFF), \ 80 $(addprefix $$$$($(target)_0_OUTDIR)/,$(obj_list))) \ 81 $$(PATH_STAGE_BIN)/impdef.exe | $$$$(dir $$$$@) 65 82 %$$(call MSG_TOOL,impdef,$(target)_imp,$(abspath $$<),$$@) 66 $(QUIET2)$$(PATH_STAGE_BIN)/impdef $$< $$@ 83 ifneq ($(do_def_exp),) 84 $(QUIET2)$$(PATH_STAGE_BIN)/impdef.exe $(def_debug) $$@ 85 else 86 $(QUIET2)$(CP) $(def_debug) $$@ 87 endif 88 ifneq ($(obj_list),) 89 $(QUIET2)emxexp.exe \ 90 $(addsuffix $$(TOOL_GXX3OMF_COBJSUFF), \ 91 $(addprefix $$($(target)_0_OUTDIR)/,$(obj_list))) >> $$@ 92 endif 67 93 $(target)_imp_SOURCES.debug = $$($(target)_imp_0_OUTDIR)/$(def_exp_debug) 68 94 $(target)_imp_CLEAN.debug += $$($(target)_imp_0_OUTDIR)/$(def_exp_debug) … … 75 101 76 102 ## 77 # Shortcut to $(call odin_implib,<1>,<2>,<3>, 1) used to disable .def file103 # Shortcut to $(call odin_implib,<1>,<2>,<3>,<4>,1) used to disable .def file 78 104 # post-processing with the ImpDef tool. 79 105 # … … 81 107 # @param 2 .def file (defaults to <1>.def). 82 108 # @param 3 .def file for debug (defaults to <2>). 83 # 84 odin_implib_no_expdef = $(call odin_implib,$(1),$(2),(3),1) 85 86 ## 87 # Shortcut to $(call odin_implib, <1>, <1>.def, <1>dbg.def). 88 # 89 # @param 1 DLL target name. 90 # 91 odin_implib_2 = $(call odin_implib,$(1),$(1).def,$(1)dbg.def) 92 93 ## 94 # Shortcut to $(call odin_implib_no_expdef,<1>,<1>.def,<1>dbg.def). 95 # 96 # @param 1 DLL target name. 97 # 98 odin_implib_2_no_expdef = $(call odin_implib_no_expdef,$(1),$(1).def,$(1)dbg.def) 109 # @param 4 list of object files containing additional exports. 110 # 111 odin_implib_no_expdef = $(call odin_implib,$(1),$(2),(3),$(4),1) 112 113 ## 114 # Shortcut to $(call odin_implib, <1>,<1>.def,<1>dbg.def,<2>). 115 # 116 # @param 1 DLL target name. 117 # @param 2 list of object files containing additional exports. 118 # 119 odin_implib_2 = $(call odin_implib,$(1),$(1).def,$(1)dbg.def,$(2)) 120 121 ## 122 # Shortcut to $(call odin_implib_no_expdef,<1>,<1>.def,<1>dbg.def,<2>). 123 # 124 # @param 1 DLL target name. 125 # @param 2 list of object files containing additional exports. 126 # 127 odin_implib_2_no_expdef = $(call odin_implib_no_expdef,$(1),$(1).def,$(1)dbg.def,$(2)) 99 128 100 129 # -
branches/gcc-kmk/src/gdi32/Makefile.kmk
r21803 r21812 6 6 include $(KBUILD_PATH)/subheader.kmk 7 7 8 $(call odin_implib ,gdi32)8 $(call odin_implib_2,gdi32) 9 9 10 10 DLLS += gdi32 -
branches/gcc-kmk/src/kernel32/Makefile.kmk
r21803 r21812 10 10 seh_SOURCES = seh/sehutil.s 11 11 12 $(call odin_implib_2,kernel32 )12 $(call odin_implib_2,kernel32,vmutex) 13 13 14 14 DLLS += kernel32 -
branches/gcc-kmk/src/odincrt/Makefile.kmk
r21794 r21812 6 6 include $(KBUILD_PATH)/subheader.kmk 7 7 8 #$(call odin_implib_no_expdef,odincrt,odincrt,odincrtd) 9 $(call odin_implib,odincrt,odincrt.def,odincrtd.def,1) 8 $(call odin_implib_no_expdef,odincrt,odincrt.def,odincrtd.def) 10 9 11 10 DLLS += odincrt -
branches/gcc-kmk/src/user32/Makefile.kmk
r21811 r21812 6 6 include $(KBUILD_PATH)/subheader.kmk 7 7 8 $(call odin_implib ,user32)8 $(call odin_implib_2,user32) 9 9 10 10 DLLS += user32
Note:
See TracChangeset
for help on using the changeset viewer.
