Merge trunk HEAD (r44067)
[reactos.git] / reactos / tools / rbuild / backend / mingw / linkers / ld.mak
1 #~ #(module, objs, deps, ldflags, output, libs, subsys, entry, base, falign, salign)
2 #~ define RBUILD_LINK
3
4 #~ $(5) ${call RBUILD_output_dir,$(5)}$$(SEP)$(basename $(notdir $(5))).map: $(2) $(3) $(6) | ${call RBUILD_dir,$(5)}
5 #~ $$(ECHO_CC)
6 #~ $${ld} -subsystem=$(7) -entry=$(8) -base=$(9) -file-alignment=$(10) -section-alignment=$(11) $(2) $(6) ${call RBUILD_ldflags,$(1),$(4)} -o $(5)
7 #~ ifeq ($(ROS_BUILDMAP),full)
8 #~ $$(ECHO_OBJDUMP)
9 #~ $${objdump} -d -S $$@ > ${call RBUILD_output_dir,$(5)}$$(SEP)$(basename $(notdir $(5))).map
10 #~ else
11 #~ ifeq ($(ROS_BUILDMAP),yes)
12 #~ $$(ECHO_NM)
13 #~ $${nm} --numeric-sort $$@ > ${call RBUILD_output_dir,$(5)}$$(SEP)$(basename $(notdir $(5))).map
14 #~ endif
15 #~ endif
16 #~ ifeq ($(ROS_BUILDNOSTRIP),yes)
17 #~ $$(ECHO_CP)
18 #~ $${cp} $(5) $(basename $(5)).nostrip$(suffix $(5)) 1>$(NUL)
19 #~ endif
20 #~ ifneq ($(ROS_GENERATE_RSYM),no)
21 #~ $$(ECHO_RSYM)
22 #~ $$(Q)$$(rsym_TARGET) $$@ $$@
23 #~ endif
24 #~ ifeq ($(ROS_LEAN_AND_MEAN),yes)
25 #~ $$(ECHO_STRIP)
26 #~ $${strip} -s -x -X $$@
27 #~ endif
28
29 #~ endef
30
31 #~ #(module, dependencies, ldflags, subsys, entry, base, falign, salign)
32 #~ RBUILD_LINK_RULE=${call RBUILD_LINK,$(1),$(1)_OBJS,$(2),$(3),$(1)_TARGET,$(1)_LIBS,$(4),$(5),$(6),$(7),$(8)}