X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=grading%2Fuserprog%2FMakefile;h=2b9669450ea2d0db98c1ed65659771fd79139032;hb=950460691e3c962ef35c9aaea2d950e7a7e567ea;hp=0a09f5ae7353fc6fe09dc3afaedf763e751c44a4;hpb=45bff6ea9a96f6ed8f51efdd8c5709a2b61b27dc;p=pintos-anon diff --git a/grading/userprog/Makefile b/grading/userprog/Makefile index 0a09f5a..2b96694 100644 --- a/grading/userprog/Makefile +++ b/grading/userprog/Makefile @@ -76,10 +76,15 @@ child_arg_SRC = child-arg.c child_bad_SRC = child-bad.c child_close_SRC = child-close.c -DISKS = $(patsubst %,%.dsk,$(TESTS)) +DISKS = $(patsubst %,%.dsk,$(TESTS)) null.dsk disks: $(DISKS) +null.o: null.S +null: null.o + $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ +null.dsk: null + exec-once.dsk exec-multiple.dsk join-simple.dsk join-twice.dsk: child-simple exec-arg.dsk: child-arg join-killed.dsk: child-bad @@ -93,6 +98,8 @@ clean:: include $(SRCDIR)/Makefile.userprog +# Use -Werror because otherwise there's so much output spew +# that it's very difficult to pick out warnings. CFLAGS += -Werror Makefile: Make.base Make.tests mkmf