Nicer way to generate kernel.lds.s.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 5 Sep 2004 16:34:36 +0000 (16:34 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 5 Sep 2004 16:34:36 +0000 (16:34 +0000)
src/Makefile.inc

index 885c6bba53ccefb1fa7d464ca75e459f9cd5bfb2..df6b01046a306f9efb4e20fd60d0819df8009ca0 100644 (file)
@@ -63,8 +63,8 @@ all: diskimage.bin
 intr-stubs.S: $(TOP_SRCDIR)/threads/intr-stubs.pl $(TOP_SRCDIR)/threads/loader.h
        $< > $@
 
+kernel.lds.s: CPPFLAGS += -P -C
 kernel.lds.s: $(TOP_SRCDIR)/threads/kernel.lds.S $(TOP_SRCDIR)/threads/loader.h
-       $(CPP) -x assembler-with-cpp -P $< -o $@
 
 kernel.o: $(OBJECTS) kernel.lds.s
        ld -T kernel.lds.s -o $@ $(OBJECTS) `$(CC) -print-libgcc-file-name`