X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2FMake.config;h=b1d480e70ae51453e636057e5b7d556722443825;hb=2ca95dc97c9dd591d0f71f1f4c411b3aeb82d690;hp=0a1b46a37ac10de3cf7e37c1670eafff5464b33e;hpb=575dc45e34db19ee7808c116e93485b37e0df716;p=pintos-anon diff --git a/src/Make.config b/src/Make.config index 0a1b46a..b1d480e 100644 --- a/src/Make.config +++ b/src/Make.config @@ -18,11 +18,15 @@ LD = i386-elf-ld OBJCOPY = i386-elf-objcopy endif +ifeq ($(strip $(shell command -v $(CC) 2> /dev/null)),) +$(warning *** Compiler ($(CC)) not found. Did you set $$PATH properly? Please refer to the Getting Started section in the documentation for details. ***) +endif + # Compiler and assembler invocation. DEFINES = WARNINGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wsystem-headers CFLAGS = -g -MMD -msoft-float -CPPFLAGS = -nostdinc -I$(SRCDIR) -I- -I$(SRCDIR)/lib +CPPFLAGS = -nostdinc -I$(SRCDIR) -I$(SRCDIR)/lib ASFLAGS = -Wa,--gstabs -MMD LDFLAGS =