Initial revision
[official-gcc.git] / gcc / config / rs6000 / t-winnt
blobf58aefed5232611ef32421dc2a1484a5df5bc0b3
1 # Do not build libgcc1.
2 LIBGCC1 = 
3 CROSS_LIBGCC1 =
5 EXTRA_PARTS = crti.o crtn.o
7 # These are really part of libgcc1, but this will cause them to be
8 # built correctly, so... [taken from t-sparclite]
9 LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c ntstack.S
11 dp-bit.c: $(srcdir)/config/fp-bit.c
12         cat $(srcdir)/config/fp-bit.c > dp-bit.c
14 fp-bit.c: $(srcdir)/config/fp-bit.c
15         echo '#define FLOAT' > fp-bit.c
16         cat $(srcdir)/config/fp-bit.c >> fp-bit.c
18 ntstack.S: $(srcdir)/config/rs6000/ntstack.asm
19         cat $(srcdir)/config/rs6000/ntstack.asm > ntstack.S
21 # For NT we build crti.o and crtn.o which serve to add begin and
22 # end labels for the static constructors and destructors.
24 # Assemble startup files.
25 crti.s: $(srcdir)/config/rs6000/nt-ci.asm
26         cat $(srcdir)/config/rs6000/nt-ci.asm >crti.s
28 crtn.s: $(srcdir)/config/rs6000/nt-cn.asm
29         cat $(srcdir)/config/rs6000/nt-cn.asm >crtn.s
31 crti.o: crti.s
32         $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o crti.o crti.s
33         
34 crtn.o: crtn.s
35         $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -c -o crtn.o crtn.s