3 # Copyright (C) 1999, 2000, 2001 Brian Palmer <brianp@sginet.com>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 BOOTCD_DIR
= ..
/..
/bootcd
24 all: $(BIN2C
) dosmbr.bin fat.bin fat32.bin isoboot.bin ext2.bin
28 @
$(MAKE
) --no-print-directory
-C
$(TOOLSDIR
)
30 dosmbr.bin
: dosmbr.asm
31 @echo
===================================================== Assembling dosmbr
32 @
$(NASM_CMD
) $(NFLAGS
) -o dosmbr.bin
-f bin dosmbr.asm
34 fat.bin
: fat.asm
$(BIN2C
)
35 @echo
===================================================== Assembling fat
36 @
$(NASM_CMD
) $(NFLAGS
) -o fat.bin
-f bin fat.asm
37 @
$(BIN2C
) fat.bin fat.h fat_data
40 fat32.bin
: fat32.asm
$(BIN2C
)
41 @echo
===================================================== Assembling fat32
42 @
$(NASM_CMD
) $(NFLAGS
) -o fat32.bin
-f bin fat32.asm
43 @
$(BIN2C
) fat32.bin fat32.h fat32_data
45 isoboot.bin
: isoboot.asm
46 @echo
===================================================== Assembling isoboot
47 @
$(NASM_CMD
) $(NFLAGS
) -o isoboot.bin
-f bin isoboot.asm
50 @echo
===================================================== Assembling ext2
51 @
$(NASM_CMD
) $(NFLAGS
) -o ext2.bin
-f bin ext2.asm
52 @
$(BIN2C
) ext2.bin ext2.h ext2_data
56 bootcd
: bootcd_dirs isoboot.bin
57 $(CP
) isoboot.bin
$(BOOTCD_DIR
)
58 $(CP
) dosmbr.bin
$(BOOTCD_DIR
)/disk
/loader
59 $(CP
) ext2.bin
$(BOOTCD_DIR
)/disk
/loader
60 $(CP
) fat.bin
$(BOOTCD_DIR
)/disk
/loader
61 $(CP
) fat32.bin
$(BOOTCD_DIR
)/disk
/loader
62 $(CP
) isoboot.bin
$(BOOTCD_DIR
)/disk
/loader
66 $(MKDIR
) $(BOOTCD_DIR
)
67 $(MKDIR
) $(BOOTCD_DIR
)/disk
68 $(MKDIR
) $(BOOTCD_DIR
)/disk
/reactos
69 $(MKDIR
) $(BOOTCD_DIR
)/disk
/install
70 $(MKDIR
) $(BOOTCD_DIR
)/disk
/bootdisk
71 $(MKDIR
) $(BOOTCD_DIR
)/disk
/loader