]> git.saurik.com Git - apple/boot.git/blob - i386/boot1/Makefile
boot-80.1.tar.gz
[apple/boot.git] / i386 / boot1 / Makefile
1
2 DIR = boot1
3 include ../MakePaths.dir
4
5 INSTALLDIR = $(DSTROOT)/usr/standalone/i386
6 DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
7
8 FOREIGNNEXT = boot1f
9
10 NASM = $(SYMROOT)/nasm
11
12 VERSIONED_FILES = boot1f
13
14 VERS = `vers_string -f 5.0 | tr - .`
15 NEW_VERS = Rhapsody boot1 v$(VERS)
16 ifneq "" "$(wildcard /bin/mkdirs)"
17 MKDIRS = /bin/mkdirs
18 else
19 MKDIRS = /bin/mkdir -p
20 endif
21
22 all: $(DIRS_NEEDED) $(VERSIONED_FILES)
23
24 boot1f: boot1.s Makefile
25 $(NASM) -dBOOTDEV=FLOPPY -dVERS="'$(NEW_VERS)'" boot1.s -o $(SYMROOT)/$@
26
27 install_i386:: all $(INSTALLDIR)
28 cp $(SYMROOT)/boot1f $(INSTALLDIR)/
29 cd $(INSTALLDIR); chmod u+w $(FOREIGNNEXT)
30
31 include ../MakeInc.dir