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