URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
38 |
julius |
# Build a shared libgcc library.
|
2 |
|
|
SHLIB_EXT = .sl
|
3 |
|
|
SHLIB_NAME = @shlib_base_name@$(SHLIB_EXT)
|
4 |
|
|
SHLIB_SOVERSION = 1
|
5 |
|
|
SHLIB_SONAME = @shlib_base_name@.$(SHLIB_SOVERSION)
|
6 |
|
|
SHLIB_OBJS = @shlib_objs@
|
7 |
|
|
SHLIB_DIR = @multilib_dir@
|
8 |
|
|
SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@
|
9 |
|
|
|
10 |
|
|
SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
|
11 |
|
|
-o $(SHLIB_DIR)/$(SHLIB_NAME).tmp @multilib_flags@ $(SHLIB_OBJS) && \
|
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)
|
18 |
|
|
|
19 |
|
|
# $(slibdir) double quoted to protect it from expansion while building
|
20 |
|
|
# libgcc.mk. We want this delayed until actual install time.
|
21 |
|
|
SHLIB_INSTALL = \
|
22 |
|
|
$$(mkinstalldirs) $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL); \
|
23 |
|
|
$(INSTALL_DATA) -m 555 $(SHLIB_DIR)/$(SHLIB_NAME) \
|
24 |
|
|
$$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SONAME); \
|
25 |
|
|
rm -f $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_NAME); \
|
26 |
|
|
$(LN_S) $(SHLIB_SONAME) \
|
27 |
|
|
$$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_NAME)
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.