X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2FMake.config;h=8744f0da4a764c4022f72669668a498f271c6bea;hb=0229b2e73dec29d59ed80ff236501064a5824acb;hp=dd7631327b8db857d67ee41b98486e6a5bc24028;hpb=79d2377280eea5d40b83f39fd04e14eeda8db1e1;p=pintos-anon diff --git a/src/Make.config b/src/Make.config index dd76313..8744f0d 100644 --- a/src/Make.config +++ b/src/Make.config @@ -2,6 +2,8 @@ SHELL = /bin/sh +VPATH = $(SRCDIR) + # Binary utilities. # If the host appears to be x86, use the normal tools. # Otherwise assume cross-tools are installed as i386-elf-*. @@ -16,15 +18,13 @@ LD = i386-elf-ld OBJCOPY = i386-elf-objcopy endif -# Other utilities. -DD = dd -RM = rm -CAT = cat - # Compiler and assembler invocation. +DEFINES = WARNINGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wsystem-headers -CFLAGS = -g -O3 -MMD -msoft-float +CFLAGS = -g -MMD -msoft-float -masm=intel +CPPFLAGS = -nostdinc -I$(SRCDIR) -I- -I$(SRCDIR)/lib ASFLAGS = -Wa,--gstabs -MMD +LDFLAGS = %.o: %.c $(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS) $(WARNINGS) $(DEFINES)