]> hydra-www.ietfng.org Git - xv6-public/commitdiff
.SECONDARY make targets for kernel dependencies
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Thu, 22 Oct 2015 03:04:44 +0000 (23:04 -0400)
committerPeter H. Froehlich <peter.hans.froehlich@gmail.com>
Tue, 3 Nov 2015 22:56:46 +0000 (17:56 -0500)
This allows us to ship a binary kernel image that won't get clobbered.

Makefile

index 38f669299f602fd9856e8db5ef6a0491ecacb43e..4a2d7ff2649c17090b3c08f298e04905ee6a6728 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -112,6 +112,7 @@ initcode: initcode.S
        $(OBJCOPY) -S -O binary initcode.out initcode
        $(OBJDUMP) -S initcode.o > initcode.asm
 
+.SECONDARY: $(OBJS) entry.o entryother initcode
 kernel: $(OBJS) entry.o entryother initcode kernel.ld
        $(LD) $(LDFLAGS) -T kernel.ld -o kernel entry.o $(OBJS) -b binary initcode entryother
        $(OBJDUMP) -S kernel > kernel.asm
@@ -132,6 +133,7 @@ kernelmemfs: $(MEMFSOBJS) entry.o entryother initcode kernel.ld fs.img
 tags: $(OBJS) entryother.S _init
        etags *.S *.c
 
+.SECONDARY: vectors.S
 vectors.S: vectors.pl
        perl vectors.pl > vectors.S