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 PATH_TO_TOP
= ..
/..
/..
24 BOOTCD_DIR
= $(PATH_TO_TOP
)/..
/bootcd
28 all: $(BIN2C
) dosmbr.bin fat.bin fat32.bin isoboot.bin ext2.bin
32 @
$(MAKE
) --no-print-directory
-C
$(FREELDR_TOOLS_PATH
)
34 dosmbr.bin
: dosmbr.asm
35 @echo freeldr
: Assembling dosmbr
36 @
$(NASM_CMD
) $(NFLAGS
) -o dosmbr.bin
-f bin dosmbr.asm
38 fat.bin
: fat.asm
$(BIN2C
)
39 @echo freeldr
: Assembling fat
40 @
$(NASM_CMD
) $(NFLAGS
) -o fat.bin
-f bin fat.asm
41 @
$(BIN2C
) fat.bin fat.h fat_data
44 fat32.bin
: fat32.asm
$(BIN2C
)
45 @echo freeldr
: Assembling fat32
46 @
$(NASM_CMD
) $(NFLAGS
) -o fat32.bin
-f bin fat32.asm
47 @
$(BIN2C
) fat32.bin fat32.h fat32_data
49 isoboot.bin
: isoboot.asm
50 @echo freeldr
: Assembling isoboot
51 @
$(NASM_CMD
) $(NFLAGS
) -o isoboot.bin
-f bin isoboot.asm
54 @echo freeldr
: Assembling ext2
55 @
$(NASM_CMD
) $(NFLAGS
) -o ext2.bin
-f bin ext2.asm
56 @
$(BIN2C
) ext2.bin ext2.h ext2_data
60 bootcd
: bootcd_dirs isoboot.bin
61 $(CP
) isoboot.bin
$(BOOTCD_DIR
)
62 $(CP
) dosmbr.bin
$(BOOTCD_DIR
)/disk
/loader
63 $(CP
) ext2.bin
$(BOOTCD_DIR
)/disk
/loader
64 $(CP
) fat.bin
$(BOOTCD_DIR
)/disk
/loader
65 $(CP
) fat32.bin
$(BOOTCD_DIR
)/disk
/loader
66 $(CP
) isoboot.bin
$(BOOTCD_DIR
)/disk
/loader
70 $(MKDIR
) $(BOOTCD_DIR
)
71 $(MKDIR
) $(BOOTCD_DIR
)/disk
72 $(MKDIR
) $(BOOTCD_DIR
)/disk
/reactos
73 $(MKDIR
) $(BOOTCD_DIR
)/disk
/install
74 $(MKDIR
) $(BOOTCD_DIR
)/disk
/bootdisk
75 $(MKDIR
) $(BOOTCD_DIR
)/disk
/loader
80 @echo freeldr
: Clean ALL done.