8 # If the host appears to be x86, use the normal tools.
9 # Otherwise assume cross-tools are installed as i386-elf-*.
10 X86 = i.86\|pentium.*\|[pk][56]\|nexgen\|viac3\|6x86\|athlon.*
11 ifneq (0, $(shell expr `uname -m` : '$(X86)'))
18 OBJCOPY = i386-elf-objcopy
21 ifeq ($(strip $(shell command -v $(CC) 2> /dev/null)),)
22 $(warning *** Compiler ($(CC)) not found. Did you set $$PATH properly? Please refer to the Getting Started section in the documentation for details. ***)
25 # Compiler and assembler invocation.
27 WARNINGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wsystem-headers \
28 -Wdeclaration-after-statement
29 CFLAGS = -g -MMD -msoft-float
30 CPPFLAGS = -nostdinc -I$(SRCDIR) -I$(SRCDIR)/lib
31 ASFLAGS = -Wa,--gstabs -MMD
35 $(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS) $(WARNINGS) $(DEFINES)
38 $(CC) -c $< -o $@ $(ASFLAGS) $(CPPFLAGS) $(DEFINES)