INSTALLDIR = $(DSTROOT)/usr/standalone/i386
DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
-FOREIGNNEXT = boot1f
-
NASM = $(SYMROOT)/nasm
-VERSIONED_FILES = boot1f
+VERSIONED_FILES = boot1 boot1f
VERS = `vers_string -f 5.0 | tr - .`
NEW_VERS = Rhapsody boot1 v$(VERS)
all: $(DIRS_NEEDED) $(VERSIONED_FILES)
+boot1: boot1.s Makefile
+ $(NASM) -dBOOTDEV=HDISK -dVERS="'$(NEW_VERS)'" boot1.s -o $(SYMROOT)/$@
+
boot1f: boot1.s Makefile
$(NASM) -dBOOTDEV=FLOPPY -dVERS="'$(NEW_VERS)'" boot1.s -o $(SYMROOT)/$@
install_i386:: all $(INSTALLDIR)
+ cp $(SYMROOT)/boot1 $(INSTALLDIR)/
cp $(SYMROOT)/boot1f $(INSTALLDIR)/
- cd $(INSTALLDIR); chmod u+w $(FOREIGNNEXT)
+ cd $(INSTALLDIR); chmod u+w $(VERSIONED_FILES)
include ../MakeInc.dir