Detect GCC 3.x versus 4.x and use -I- or -isystem, respectively, to
[pintos-anon] / src / Makefile.userprog
index 72e35ce7ee92a285e4d1b6562318247bda427754..dddb1aa4b62f5ca1257dd95130dc95e6c86bcb7f 100644 (file)
@@ -2,7 +2,7 @@
 
 include $(SRCDIR)/Make.config
 
-$(PROGS): CPPFLAGS += -I$(SRCDIR)/lib/user -I.
+$(PROGS): SYSINCDIRS += $(SRCDIR)/lib/user
 
 # Linker flags.
 $(PROGS): LDFLAGS = -nostdlib -static -Wl,-T,$(LDSCRIPT)