Lines Matching refs:rtld
20 # This makefile is never used by itself, but only from the rtld-libc.a
21 # rule in Makefile, which does make -f librtld.mk -f rtld-Rules.
23 # `rtld-subdirs', a subset of the top-level $(subdirs) list; and for each
24 # SUBDIR in $(rtld-subdirs), `rtld-SUBDIR' listing `module.os' file names.
26 .PHONY: rtld-all
27 rtld-all:
29 # When run from the elf/Makefile to build rtld-libc.a, $(subdir) is elf.
31 ifndef rtld-modules
32 $(error rtld-modules not set)
36 ifndef rtld-modules
37 # Running to build rtld-libc.a, driving runs of $(rtld-subdir-make), below.
39 ifndef rtld-subdirs
45 rtld-all: $(objpfx)rtld-libc.a
47 $(objpfx)rtld-libc.a: $(foreach dir,$(rtld-subdirs),\
48 $(addprefix $(common-objpfx)$(dir)/rtld-,\
49 $(rtld-$(dir))))
64 object-suffixes-left := $(rtld-subdirs)
66 $(foreach obj,$(rtld-$o),$(common-objpfx)%/rtld-$(obj)): FORCE ; \
67 +$$(rtld-subdir-make)
72 define rtld-subdir-make
74 -f Makefile -f ../elf/rtld-Rules rtld-all \
75 rtld-modules='$(addprefix rtld-,$(rtld-$*))'
87 # In this case we are being run by $(rtld-subdir-make), above.
91 rtld-compile-command.S = $(compile-command.S) $(rtld-CPPFLAGS)
92 rtld-compile-command.s = $(compile-command.s) $(rtld-CPPFLAGS)
93 rtld-compile-command.c = $(compile-command.c) $(rtld-CPPFLAGS) $(rtld-CFLAGS)
96 # The sysd-rules generated makefile already defines pattern rules for rtld-%
98 $(objpfx)rtld-%.os: rtld-%.S $(before-compile)
99 $(rtld-compile-command.S)
100 $(objpfx)rtld-%.os: rtld-%.s $(before-compile)
101 $(rtld-compile-command.s)
102 $(objpfx)rtld-%.os: rtld-%.c $(before-compile)
103 $(rtld-compile-command.c)
104 $(objpfx)rtld-%.os: %.S $(before-compile)
105 $(rtld-compile-command.S)
106 $(objpfx)rtld-%.os: %.s $(before-compile)
107 $(rtld-compile-command.s)
108 $(objpfx)rtld-%.os: %.c $(before-compile)
109 $(rtld-compile-command.c)
112 $(objpfx)rtld-%.os: $(objpfx)rtld-%.S $(before-compile)
113 $(rtld-compile-command.S)
114 $(objpfx)rtld-%.os: $(objpfx)rtld-%.s $(before-compile)
115 $(rtld-compile-command.s)
116 $(objpfx)rtld-%.os: $(objpfx)rtld-%.c $(before-compile)
117 $(rtld-compile-command.c)
118 $(objpfx)rtld-%.os: $(objpfx)%.S $(before-compile)
119 $(rtld-compile-command.S)
120 $(objpfx)rtld-%.os: $(objpfx)%.s $(before-compile)
121 $(rtld-compile-command.s)
122 $(objpfx)rtld-%.os: $(objpfx)%.c $(before-compile)
123 $(rtld-compile-command.c)
125 # The command line setting of rtld-modules (see above) tells us
127 rtld-all: $(addprefix $(objpfx),$(rtld-modules))
130 # list as applied to the names without the `rtld-', there may be none left.
131 rtld-depfiles := $(patsubst %,$(objpfx)rtld-%.os.d,\
133 $(rtld-modules:rtld-%.os=%)))
134 rtld-depfiles := $(strip $(wildcard $(rtld-depfiles)) \
136 $(wildcard $(rtld-depfiles:.d=.dt))))
137 ifdef rtld-depfiles
138 -include $(rtld-depfiles)
143 cpp-srcs-left := $(rtld-modules:%.os=%)
144 lib := rtld
147 rtld-CFLAGS += $(no-stack-protector)