]>
Commit | Line | Data |
---|---|---|
14c7c974 A |
1 | |
2 | DIR = boot1 | |
3 | include ../MakePaths.dir | |
4 | ||
5 | INSTALLDIR = $(DSTROOT)/usr/standalone/i386 | |
6 | DIRS_NEEDED = $(OBJROOT) $(SYMROOT) | |
7 | ||
14c7c974 A |
8 | NASM = $(SYMROOT)/nasm |
9 | ||
f083c6c3 | 10 | VERSIONED_FILES = boot1h boot1f |
14c7c974 A |
11 | |
12 | VERS = `vers_string -f 5.0 | tr - .` | |
f083c6c3 | 13 | NEW_VERS = Darwin boot1h v$(VERS) |
14c7c974 A |
14 | ifneq "" "$(wildcard /bin/mkdirs)" |
15 | MKDIRS = /bin/mkdirs | |
16 | else | |
17 | MKDIRS = /bin/mkdir -p | |
18 | endif | |
19 | ||
20 | all: $(DIRS_NEEDED) $(VERSIONED_FILES) | |
21 | ||
f083c6c3 | 22 | boot1h: boot1.s Makefile |
47b0a8bd A |
23 | $(NASM) -dBOOTDEV=HDISK -dVERS="'$(NEW_VERS)'" boot1.s -o $(SYMROOT)/$@ |
24 | ||
14c7c974 A |
25 | boot1f: boot1.s Makefile |
26 | $(NASM) -dBOOTDEV=FLOPPY -dVERS="'$(NEW_VERS)'" boot1.s -o $(SYMROOT)/$@ | |
27 | ||
28 | install_i386:: all $(INSTALLDIR) | |
f083c6c3 | 29 | cp $(SYMROOT)/boot1h $(INSTALLDIR)/ |
14c7c974 | 30 | cp $(SYMROOT)/boot1f $(INSTALLDIR)/ |
47b0a8bd | 31 | cd $(INSTALLDIR); chmod u+w $(VERSIONED_FILES) |
14c7c974 A |
32 | |
33 | include ../MakeInc.dir |