]> git.saurik.com Git - apple/boot.git/blame - i386/boot1/Makefile
boot-83.2.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
14c7c974
A
8NASM = $(SYMROOT)/nasm
9
47b0a8bd 10VERSIONED_FILES = boot1 boot1f
14c7c974
A
11
12VERS = `vers_string -f 5.0 | tr - .`
13NEW_VERS = Rhapsody boot1 v$(VERS)
14ifneq "" "$(wildcard /bin/mkdirs)"
15 MKDIRS = /bin/mkdirs
16else
17 MKDIRS = /bin/mkdir -p
18endif
19
20all: $(DIRS_NEEDED) $(VERSIONED_FILES)
21
47b0a8bd
A
22boot1: boot1.s Makefile
23 $(NASM) -dBOOTDEV=HDISK -dVERS="'$(NEW_VERS)'" boot1.s -o $(SYMROOT)/$@
24
14c7c974
A
25boot1f: boot1.s Makefile
26 $(NASM) -dBOOTDEV=FLOPPY -dVERS="'$(NEW_VERS)'" boot1.s -o $(SYMROOT)/$@
27
28install_i386:: all $(INSTALLDIR)
47b0a8bd 29 cp $(SYMROOT)/boot1 $(INSTALLDIR)/
14c7c974 30 cp $(SYMROOT)/boot1f $(INSTALLDIR)/
47b0a8bd 31 cd $(INSTALLDIR); chmod u+w $(VERSIONED_FILES)
14c7c974
A
32
33include ../MakeInc.dir