6 # If the host appears to be x86, use the normal tools.
7 # Otherwise assume cross-tools are installed as i386-elf-*.
8 X86 = i.86\|pentium.*\|[pk][56]\|nexgen\|viac3\|6x86\|athlon.*
9 ifneq (0, $(shell expr `uname -m` : '$(X86)'))
16 OBJCOPY = i386-elf-objcopy
24 # Compiler and assembler invocation.
25 WARNINGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wsystem-headers
26 CFLAGS = -g -MMD -msoft-float -masm=intel
27 ASFLAGS = -Wa,--gstabs -MMD
30 $(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS) $(WARNINGS) $(DEFINES)
33 $(CC) -c $< -o $@ $(ASFLAGS) $(CPPFLAGS) $(DEFINES)