]> git.saurik.com Git - apple/boot.git/blobdiff - i386/boot0/Makefile
boot-122.tar.gz
[apple/boot.git] / i386 / boot0 / Makefile
index 38eff11b9b9605a270b566c5390c676b5e9df8b9..828ed38108f9ce6d566b070e3d5ecbfc234f81d7 100644 (file)
@@ -6,15 +6,21 @@ NASM = $(SYMROOT)/nasm
 INSTALLDIR = $(DSTROOT)/usr/standalone/i386
 DIRS_NEEDED = $(SYMROOT)
 
-all: $(DIRS_NEEDED) boot0
+all: $(DIRS_NEEDED) boot0 chain0
 
 boot0: boot0.s Makefile $(NASM)
        $(NASM) boot0.s -o $(SYMROOT)/$@
 
+chain0: chain0.s Makefile $(NASM)
+       $(NASM) chain0.s -o $(SYMROOT)/$@
+
 install_i386:: all $(INSTALLDIR)
-       cp $(SYMROOT)/boot0 $(INSTALLDIR)
+       cp $(SYMROOT)/boot0 $(SYMROOT)/chain0 $(INSTALLDIR)
        cd $(INSTALLDIR); chmod u+w boot0
 
+clean::
+       rm -f $(SYMROOT)/boot0 $(SYMROOT)/chain0
+
 include ../MakeInc.dir
 
 #dependencies