summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gcc/config/rs6000/t-winnt
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-14 19:27:17 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-14 19:27:17 +0000
commit6de8cb0481bd793706e38dead271f9233a57b7e5 (patch)
tree7ff9ff6922a48636469d3b019d912ee0b7894c00 /gnu/usr.bin/gcc/config/rs6000/t-winnt
parent627e15b4811e5758670f68174f71540e63fb4040 (diff)
Diffstat (limited to 'gnu/usr.bin/gcc/config/rs6000/t-winnt')
-rw-r--r--gnu/usr.bin/gcc/config/rs6000/t-winnt35
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/config/rs6000/t-winnt b/gnu/usr.bin/gcc/config/rs6000/t-winnt
new file mode 100644
index 00000000000..f58aefed523
--- /dev/null
+++ b/gnu/usr.bin/gcc/config/rs6000/t-winnt
@@ -0,0 +1,35 @@
+# Do not build libgcc1.
+LIBGCC1 =
+CROSS_LIBGCC1 =
+
+EXTRA_PARTS = crti.o crtn.o
+
+# These are really part of libgcc1, but this will cause them to be
+# built correctly, so... [taken from t-sparclite]
+LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c ntstack.S
+
+dp-bit.c: $(srcdir)/config/fp-bit.c
+ cat $(srcdir)/config/fp-bit.c > dp-bit.c
+
+fp-bit.c: $(srcdir)/config/fp-bit.c
+ echo '#define FLOAT' > fp-bit.c
+ cat $(srcdir)/config/fp-bit.c >> fp-bit.c
+
+ntstack.S: $(srcdir)/config/rs6000/ntstack.asm
+ cat $(srcdir)/config/rs6000/ntstack.asm > ntstack.S
+
+# For NT we build crti.o and crtn.o which serve to add begin and
+# end labels for the static constructors and destructors.
+
+# Assemble startup files.
+crti.s: $(srcdir)/config/rs6000/nt-ci.asm
+ cat $(srcdir)/config/rs6000/nt-ci.asm >crti.s
+
+crtn.s: $(srcdir)/config/rs6000/nt-cn.asm
+ cat $(srcdir)/config/rs6000/nt-cn.asm >crtn.s
+
+crti.o: crti.s
+ $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o crti.o crti.s
+
+crtn.o: crtn.s
+ $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o crtn.o crtn.s