1993-02-05 18:50:44 -05:00
|
|
|
# we need to supply our own assembly versions of libgcc1.c files,
|
|
|
|
# since the user may not have native 'cc' available
|
|
|
|
|
|
|
|
LIBGCC1 = libgcc1.null
|
1993-09-09 16:05:26 -04:00
|
|
|
CROSS_LIBGCC1 = libgcc1.null
|
1993-02-05 18:50:44 -05:00
|
|
|
|
|
|
|
# gmon build rule:
|
|
|
|
gmon.o: $(srcdir)/config/i386/gmon-sol2.c $(GCC_PASSES) $(CONFIG_H)
|
|
|
|
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) \
|
|
|
|
-c $(srcdir)/config/i386/gmon-sol2.c -o gmon.o
|
|
|
|
|
|
|
|
# Assemble startup files.
|
|
|
|
# Apparently Sun believes that assembler files don't need comments, because no
|
|
|
|
# single ASCII character is valid (tried them all). So we manually strip out
|
|
|
|
# the comments with sed. This bug may only be in the Early Access releases.
|
|
|
|
crt1.o: $(srcdir)/config/i386/sol2-c1.asm
|
|
|
|
sed -e '/^!/d' <$(srcdir)/config/i386/sol2-c1.asm >crt1.s
|
|
|
|
$(AS) -o crt1.o crt1.s
|
|
|
|
crti.o: $(srcdir)/config/i386/sol2-ci.asm
|
|
|
|
sed -e '/^!/d' <$(srcdir)/config/i386/sol2-ci.asm >crti.s
|
|
|
|
$(AS) -o crti.o crti.s
|
|
|
|
crtn.o: $(srcdir)/config/i386/sol2-cn.asm
|
|
|
|
sed -e '/^!/d' <$(srcdir)/config/i386/sol2-cn.asm >crtn.s
|
|
|
|
$(AS) -o crtn.o crtn.s
|
1994-11-18 23:09:58 -05:00
|
|
|
|
1995-03-13 18:11:08 -05:00
|
|
|
# We need to use -fPIC when we are using gcc to compile the routines in
|
1994-11-18 23:09:58 -05:00
|
|
|
# crtstuff.c. This is only really needed when we are going to use gcc/g++
|
|
|
|
# to produce a shared library, but since we don't know ahead of time when
|
1995-03-13 18:11:08 -05:00
|
|
|
# we will be doing that, we just always use -fPIC when compiling the
|
1994-11-18 23:09:58 -05:00
|
|
|
# routines in crtstuff.c.
|
|
|
|
|
1995-03-13 18:11:08 -05:00
|
|
|
CRTSTUFF_T_CFLAGS = -fPIC
|