1169689SkanCRTSTUFF_T_CFLAGS = -mpreferred-stack-boundary=2 2169689SkanCRT0STUFF_T_CFLAGS = -mpreferred-stack-boundary=2 $(INCLUDES) 3169689Skan# this is a slight misuse (it's not an assembler file) 4169689SkanCRT0_S = $(srcdir)/config/i386/netware-crt0.c 5169689SkanMCRT0_S = $(srcdir)/config/i386/netware-crt0.c 6169689Skan 7169689Skanlibgcc.def: $(srcdir)/config/i386/t-nwld 8169689Skan echo "module libgcc_s" >$@ 9169689Skan 10169689Skanlibc.def: $(srcdir)/config/i386/t-nwld 11169689Skan echo "module libc" >$@ 12169689Skan 13169689Skanlibcpre.def: $(srcdir)/config/i386/t-nwld 14169689Skan echo "start _LibCPrelude" >$@ 15169689Skan echo "exit _LibCPostlude" >>$@ 16169689Skan echo "check _LibCCheckUnload" >>$@ 17169689Skan 18169689Skanposixpre.def: $(srcdir)/config/i386/t-nwld 19169689Skan echo "start POSIX_Start" >$@ 20169689Skan echo "exit POSIX_Stop" >>$@ 21169689Skan echo "check POSIX_CheckUnload" >>$@ 22169689Skan 23169689Skannwld.o: $(srcdir)/config/i386/nwld.c $(RTL_H) $(TREE_H) $(CONFIG_H) $(TM_P_H) 24169689Skan $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/nwld.c 25169689Skan 26169689Skan 27169689Skans-crt0: $(srcdir)/unwind-dw2-fde.h 28169689Skan 29169689Skan# Build a shared libgcc library for NetWare. 30169689Skan 31169689SkanSHLIB_EXT = .nlm 32169689SkanSHLIB_NAME = @shlib_base_name@.nlm 33169689SkanSHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@ 34169689SkanSHLIB_DEF = $(srcdir)/config/i386/netware-libgcc.def 35169689SkanSHLIB_MAP = $(srcdir)/config/i386/netware-libgcc.exp 36169689SkanSHLIB_SRC = $(srcdir)/config/i386/netware-libgcc.c 37169689Skan 38169689SkanSHLIB_LINK = set -e; \ 39169689Skan cat $(SHLIB_DEF) >@shlib_base_name@.def; \ 40169689Skan echo "name $(SHLIB_NAME)" >>@shlib_base_name@.def; \ 41169689Skan echo "version $(version)" | sed "s!\.!,!g" >>@shlib_base_name@.def; \ 42169689Skan touch libgcc/build; \ 43169689Skan echo "build $$$$(expr $$$$(<libgcc/build) + 0)" >>@shlib_base_name@.def; \ 44169689Skan echo "export @$(SHLIB_MAP)" >>@shlib_base_name@.def; \ 45169689Skan if mpkxdc -n -p @shlib_base_name@.xdc; \ 46169689Skan then echo "xdcdata @shlib_base_name@.xdc" >>@shlib_base_name@.def; \ 47169689Skan else echo "WARNING: $(SHLIB_NAME) built without XDC data will not work well." 1>&2; \ 48169689Skan fi; \ 49169689Skan $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -o $(SHLIB_NAME) \ 50169689Skan $(SHLIB_SRC) -posix -static-libgcc -lnetware \ 51169689Skan -Wl,--Map,--map-info,full,--strip-all,--def-file,@shlib_base_name@.def; \ 52169689Skan rm -f @shlib_base_name@.imp; $(LN_S) $(SHLIB_MAP) @shlib_base_name@.imp; \ 53169689Skan rm -f libgcc.imp; $(LN_S) @shlib_base_name@.imp libgcc.imp; \ 54169689Skan expr $$$$(<libgcc/build) + 1 >libgcc/build 55169689Skan 56169689Skan# $(slibdir) double quoted to protect it from expansion while building 57169689Skan# libgcc.mk. We want this delayed until actual install time. 58169689SkanSHLIB_INSTALL = \ 59169689Skan $$(SHELL) $(srcdir)/mkinstalldirs $$(slibdir)$(SHLIB_SLIBDIR_QUAL); \ 60169689Skan $$(INSTALL_DATA) $(SHLIB_NAME) $$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_NAME); \ 61169689Skan $$(INSTALL_DATA) @shlib_base_name@.imp $$(DESTDIR)$$(libsubdir)/ 62