# Now figure out from those variables how to compile and link.
# This is the variable actually used when we compile.
-ALL_CFLAGS = $(INTERNAL_CFLAGS) $(CROSS) $(CFLAGS) $(HDEFINES) $(TDEFINES) \
- $(BFDDEF)
+ALL_CFLAGS = $(INTERNAL_CFLAGS) $(CROSS) $(CFLAGS) $(HDEFINES) $(TDEFINES)
# How to link with both our special library facilities
# and the system's installed libraries.
config.h: config-stamp ; @true
config-stamp: Makefile
-rm -f config.new config-stamp
- echo '#define TARGET_CPU "$(target_cpu)"' > config.new
+ echo '#ifndef TARGET_CPU' > config.new
+ echo '#define TARGET_CPU "$(target_cpu)"' >> config.new
echo '#define TARGET_ALIAS "$(target_alias)"' >> config.new
echo '#define TARGET_CANONICAL "$(target_canonical)"' >> config.new
echo '#define GAS_VERSION "$(VERSION)"' >> config.new
+ echo '#$(BFDDEF) BFD_ASSEMBLER' >> config.new
+ echo '#endif /* TARGET_CPU */' >> config.new
$(srcdir)/../move-if-change config.new config.h
touch config-stamp
input-file.h
listing.o : listing.c as.h host.h targ-env.h flonum.h bignum.h \
listing.h obj-format.h targ-cpu.h struc-symbol.h write.h expr.h \
- frags.h hash.h read.h symbols.h tc.h obj.h input-file.h
+ frags.h hash.h read.h symbols.h tc.h obj.h input-file.h subsegs.h
messages.o : messages.c as.h host.h targ-env.h obj-format.h \
targ-cpu.h struc-symbol.h \
write.h flonum.h bignum.h expr.h frags.h hash.h read.h symbols.h tc.h obj.h
alpha-*-osf*) obj_format=ecoff dev=yes ;;
- hppa-*-osf) obj_format=elf emulation=hppa dev=yes ;;
+ hppa-*-osf) obj_format=elf emulation=hppa ;;
hppa-*-hpux*) obj_format=som emulation=hppa ;;
hppa-*-bsd*) obj_format=som emulation=hppa ;;
i386-ibm-aix*) obj_format=coffbfd gas_target=i386coff
emulation=i386aix ;;
i386-*-bsd*) obj_format=aout emulation=386bsd ;;
+ i386-*-netbsd0.8) obj_format=aout emulation=netbsd ;;
+ i386-*-netbsd*) obj_format=aout emulation=netbsd ;;
i386-*-linux*elf*) obj_format=elf emulation=linux ;;
i386-*-linux*coff*) obj_format=coffbfd emulation=linux
gas_target=i386coff ;;
obj_format=elf ;;
i386-*-coff | i386-*-sysv* | i386-*-sco* | i386-*-isc*)
obj_format=coffbfd gas_target=i386coff ;;
+ i386-*-vsta) obj_format=aout ;;
i386-*-go32) obj_format=aout ;;
i960-wrs-vxworks | i960-*-nindy*)
;;
esac
-reject_dev_configs=yes
+reject_dev_configs=no
case ${reject_dev_configs}-${dev} in
yes-yes) # Oops.
# post-target:
case ${bfd_gas} in
- yes) bfddef="BFDDEF=-DBFD_ASSEMBLER" need_bfd=yes ;;
- *) bfddef="" ;;
+ yes) bfddef="BFDDEF=define" need_bfd=yes ;;
+ *) bfddef="BFDDEF=undef" ;;
esac
case ${need_bfd} in