URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
272 |
jeremybenn |
# Build a shared libgcc library for NetWare.
|
2 |
|
|
|
3 |
|
|
SHLIB_EXT = .nlm
|
4 |
|
|
SHLIB_NAME = @shlib_base_name@.nlm
|
5 |
|
|
SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@
|
6 |
|
|
SHLIB_DEF = $(gcc_srcdir)/config/i386/netware-libgcc.def
|
7 |
|
|
SHLIB_MAP = $(gcc_srcdir)/config/i386/netware-libgcc.exp
|
8 |
|
|
SHLIB_SRC = $(gcc_srcdir)/config/i386/netware-libgcc.c
|
9 |
|
|
|
10 |
|
|
SHLIB_LINK = set -e; \
|
11 |
|
|
cat $(SHLIB_DEF) >@shlib_base_name@.def; \
|
12 |
|
|
echo "name $(SHLIB_NAME)" >>@shlib_base_name@.def; \
|
13 |
|
|
echo "version $(version)" | sed "s!\.!,!g" >>@shlib_base_name@.def; \
|
14 |
|
|
touch build; \
|
15 |
|
|
echo "build $$(expr $$(>@shlib_base_name@.def; \
|
16 |
|
|
echo "export @$(SHLIB_MAP)" >>@shlib_base_name@.def; \
|
17 |
|
|
if mpkxdc -n -p @shlib_base_name@.xdc; \
|
18 |
|
|
then echo "xdcdata @shlib_base_name@.xdc" >>@shlib_base_name@.def; \
|
19 |
|
|
else echo "WARNING: $(SHLIB_NAME) built without XDC data will not work well." 1>&2; \
|
20 |
|
|
fi; \
|
21 |
|
|
$(CC) $(LIBGCC2_CFLAGS) -o $(SHLIB_NAME) \
|
22 |
|
|
$(SHLIB_SRC) -posix -static-libgcc -lnetware \
|
23 |
|
|
-Wl,--Map,--map-info,full,--strip-all,--def-file,@shlib_base_name@.def; \
|
24 |
|
|
rm -f @shlib_base_name@.imp; $(LN_S) $(SHLIB_MAP) @shlib_base_name@.imp; \
|
25 |
|
|
rm -f libgcc.imp; $(LN_S) @shlib_base_name@.imp libgcc.imp; \
|
26 |
|
|
expr $$(build
|
27 |
|
|
|
28 |
|
|
SHLIB_INSTALL = \
|
29 |
|
|
$(SHELL) $(srcdir)/mkinstalldirs $(slibdir)$(SHLIB_SLIBDIR_QUAL); \
|
30 |
|
|
$(INSTALL_DATA) $(SHLIB_NAME) $(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_NAME); \
|
31 |
|
|
$(INSTALL_DATA) @shlib_base_name@.imp $(DESTDIR)$(libsubdir)/
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.