X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2FMake.config;h=fdf6ce164901a928f195355aadb1d588dc34baf5;hb=ff8effb2f514ca54a594074e1cc33b22a1978050;hp=8744f0da4a764c4022f72669668a498f271c6bea;hpb=615bf3b3d2a8573ed6fb9ddc0055745e163ac999;p=pintos-anon diff --git a/src/Make.config b/src/Make.config index 8744f0d..fdf6ce1 100644 --- a/src/Make.config +++ b/src/Make.config @@ -18,11 +18,16 @@ 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 -masm=intel -CPPFLAGS = -nostdinc -I$(SRCDIR) -I- -I$(SRCDIR)/lib +WARNINGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wsystem-headers \ + -Wdeclaration-after-statement +CFLAGS = -g -MMD -msoft-float +CPPFLAGS = -nostdinc -I$(SRCDIR) -I$(SRCDIR)/lib ASFLAGS = -Wa,--gstabs -MMD LDFLAGS =