170 INS.liblinkccc= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKSCCC)$(VERS) $@
171
172 # default 64-bit dynamic library symlink
173 INS.liblink64= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@
174 INS.liblinkccc64= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKSCCC)$(VERS) $@
175
176 #
177 # If appropriate, augment POST_PROCESS_O and POST_PROCESS_SO to do CTF
178 # processing. We'd like to just conditionally append to POST_PROCESS_O and
179 # POST_PROCESS_SO, but ParallelMake has a bug which causes the same value to
180 # sometimes get appended more than once, which will cause ctfconvert to fail.
181 # So, instead we introduce CTFCONVERT_POST and CTFMERGE_POST, which are always
182 # appended to POST_PROCESS_O and POST_PROCESS_SO but are no-ops unless CTF
183 # processing should be done.
184 #
185 CTFCONVERT_POST = :
186 CTFMERGE_POST = :
187 POST_PROCESS_O += ; $(CTFCONVERT_POST)
188 POST_PROCESS_SO += ; $(CTFMERGE_POST)
189
190 CTFMERGE_LIB = $(CTFMERGE) -t -f -L VERSION -o $@ $(PICS)
191
192 # conditional assignments
193
194 $(OBJS) := sparc_CFLAGS += -xregs=no%appl
195
196 $(PICS) := sparc_CFLAGS += -xregs=no%appl $(sparc_C_PICFLAGS)
197 $(PICS) := sparcv9_CFLAGS += -xregs=no%appl $(sparcv9_C_PICFLAGS)
198 $(PICS) := i386_CFLAGS += $(i386_C_PICFLAGS)
199 $(PICS) := amd64_CFLAGS += $(amd64_C_PICFLAGS)
200 $(PICS) := CCFLAGS += $(CC_PICFLAGS)
201 $(PICS) := CPPFLAGS += -DPIC -D_REENTRANT
202 $(PICS) := sparcv9_CCFLAGS += -xregs=no%appl $(sparcv9_CC_PICFLAGS)
203 $(PICS) := amd64_CCFLAGS += $(amd64_CC_PICFLAGS)
204 $(PICS) := CFLAGS += $(CTF_FLAGS)
205 $(PICS) := CFLAGS64 += $(CTF_FLAGS)
206 $(PICS) := CTFCONVERT_POST = $(CTFCONVERT_O)
207 $(DYNLIB) := CTFMERGE_POST = $(CTFMERGE_LIB)
208
209 $(LINTLIB):= LOG = -DLOGGING
210 $(LIBRARY):= AROBJS = $(OBJS)
|
170 INS.liblinkccc= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKSCCC)$(VERS) $@
171
172 # default 64-bit dynamic library symlink
173 INS.liblink64= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@
174 INS.liblinkccc64= -$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKSCCC)$(VERS) $@
175
176 #
177 # If appropriate, augment POST_PROCESS_O and POST_PROCESS_SO to do CTF
178 # processing. We'd like to just conditionally append to POST_PROCESS_O and
179 # POST_PROCESS_SO, but ParallelMake has a bug which causes the same value to
180 # sometimes get appended more than once, which will cause ctfconvert to fail.
181 # So, instead we introduce CTFCONVERT_POST and CTFMERGE_POST, which are always
182 # appended to POST_PROCESS_O and POST_PROCESS_SO but are no-ops unless CTF
183 # processing should be done.
184 #
185 CTFCONVERT_POST = :
186 CTFMERGE_POST = :
187 POST_PROCESS_O += ; $(CTFCONVERT_POST)
188 POST_PROCESS_SO += ; $(CTFMERGE_POST)
189
190 CTFMERGE_LIB = $(CTFMERGE) $(CTFMRGFLAGS) -t -f -L VERSION -o $@ $(PICS)
191
192 # conditional assignments
193
194 $(OBJS) := sparc_CFLAGS += -xregs=no%appl
195
196 $(PICS) := sparc_CFLAGS += -xregs=no%appl $(sparc_C_PICFLAGS)
197 $(PICS) := sparcv9_CFLAGS += -xregs=no%appl $(sparcv9_C_PICFLAGS)
198 $(PICS) := i386_CFLAGS += $(i386_C_PICFLAGS)
199 $(PICS) := amd64_CFLAGS += $(amd64_C_PICFLAGS)
200 $(PICS) := CCFLAGS += $(CC_PICFLAGS)
201 $(PICS) := CPPFLAGS += -DPIC -D_REENTRANT
202 $(PICS) := sparcv9_CCFLAGS += -xregs=no%appl $(sparcv9_CC_PICFLAGS)
203 $(PICS) := amd64_CCFLAGS += $(amd64_CC_PICFLAGS)
204 $(PICS) := CFLAGS += $(CTF_FLAGS)
205 $(PICS) := CFLAGS64 += $(CTF_FLAGS)
206 $(PICS) := CTFCONVERT_POST = $(CTFCONVERT_O)
207 $(DYNLIB) := CTFMERGE_POST = $(CTFMERGE_LIB)
208
209 $(LINTLIB):= LOG = -DLOGGING
210 $(LIBRARY):= AROBJS = $(OBJS)
|