1 # Makefile additions for A/UX
3 LIB2FUNCS_EXTRA=aux-mcount.c aux-exit.c
5 FIXPROTO_DEFINES=-D_POSIX_SOURCE
7 # Needed to support builds for multiple versions of A/UX
10 # Make sure we get the right assembler by letting gcc choose
11 AS = $(GCC_FOR_TARGET) -xassembler-with-cpp -D__ASSEMBLY__ $(INCLUDES) -c
13 aux-mcount.c: $(srcdir)/config/m68k/aux-mcount.c
14 cp $(srcdir)/config/m68k/aux-mcount.c aux-mcount.c
16 aux-exit.c: $(srcdir)/config/m68k/aux-exit.c
17 cp $(srcdir)/config/m68k/aux-exit.c aux-exit.c
19 crt1.o: $(srcdir)/config/m68k/aux-crt1.c $(GCC_PASSES)
20 $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -o crt1.o -c \
21 -fno-omit-frame-pointer $(srcdir)/config/m68k/aux-crt1.c
23 mcrt1.o: $(srcdir)/config/m68k/aux-crt1.c $(GCC_PASSES)
24 $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -o mcrt1.o -c \
25 -fno-omit-frame-pointer -DMCRT1 $(srcdir)/config/m68k/aux-crt1.c
27 maccrt1.o: $(srcdir)/config/m68k/aux-crt1.c $(GCC_PASSES)
28 $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) -o maccrt1.o -c \
29 -fno-omit-frame-pointer -DMACCRT1 $(srcdir)/config/m68k/aux-crt1.c
31 crt2.o: $(srcdir)/config/m68k/aux-crt2.asm $(GCC_PASSES)
32 $(AS) -o crt2.o $(srcdir)/config/m68k/aux-crt2.asm
34 crtn.o: $(srcdir)/config/m68k/aux-crtn.asm $(GCC_PASSES)
35 $(AS) -o crtn.o $(srcdir)/config/m68k/aux-crtn.asm
37 low.gld: $(srcdir)/config/m68k/aux-low.gld
38 sed -e 's|@libdir@|$(libdir)|' -e 's|@tooldir@|$(tooldir)|' \
39 -e 's|@local_prefix@|$(local_prefix)|' \
40 $(srcdir)/config/m68k/aux-low.gld > tmp-low.gld
41 mv tmp-low.gld low.gld