From: Nathaniel Wesley Filardo Date: Thu, 22 Oct 2015 03:04:44 +0000 (-0400) Subject: .SECONDARY make targets for kernel dependencies X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=5c29240086a0f5879b7fa3d8171c26e195a1349a;p=xv6-public .SECONDARY make targets for kernel dependencies This allows us to ship a binary kernel image that won't get clobbered. --- diff --git a/Makefile b/Makefile index 38f6692..4a2d7ff 100644 --- 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