Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / config / pa / t-hpux-shlib
blob9673c8e8da3dbcfb3e3806934b51ec878a646f92
1 # Build a shared libgcc library.
2 SHLIB_EXT = .sl
3 SHLIB_NAME = @shlib_base_name@.sl
4 SHLIB_SONAME = @shlib_base_name@.1
5 SHLIB_OBJS = @shlib_objs@
6 SHLIB_DIR = @multilib_dir@
7 SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@
9 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared  -nodefaultlibs \
10         -o $(SHLIB_DIR)/$(SHLIB_NAME).tmp @multilib_flags@ \
11         $(SHLIB_OBJS) -lc && \
12         rm -f $(SHLIB_DIR)/$(SHLIB_SONAME) && \
13         if [ -f $(SHLIB_DIR)/$(SHLIB_NAME) ]; then \
14           mv -f $(SHLIB_DIR)/$(SHLIB_NAME) $(SHLIB_DIR)/$(SHLIB_NAME).backup; \
15         else true; fi && \
16         mv $(SHLIB_DIR)/$(SHLIB_NAME).tmp $(SHLIB_DIR)/$(SHLIB_NAME) && \
17         $(LN_S) $(SHLIB_NAME) $(SHLIB_DIR)/$(SHLIB_SONAME)
20 # $(slibdir) double quoted to protect it from expansion while building
21 # libgcc.mk.  We want this delayed until actual install time.
22 SHLIB_INSTALL = \
23         $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \
24         $(INSTALL_DATA) -m 555 $(SHLIB_DIR)/$(SHLIB_NAME) \
25         $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \
26         rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_NAME); \
27         $(LN_S) $(SHLIB_SONAME) \
28         $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_NAME)