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