Patch by tinus: clean up long lines of = outputted by freeldr build.
[reactos.git] / reactos / boot / freeldr / bootsect / Makefile
1 #
2 # FreeLoader
3 # Copyright (C) 1999, 2000, 2001 Brian Palmer <brianp@sginet.com>
4 #
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.
9 #
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.
14 #
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.
18 #
19
20 PATH_TO_TOP = ../../..
21
22 include ../rules.mak
23
24 BOOTCD_DIR = $(PATH_TO_TOP)/../bootcd
25
26 .PHONY : clean bootcd
27
28 all: $(BIN2C) dosmbr.bin fat.bin fat32.bin isoboot.bin ext2.bin
29
30
31 $(BIN2C) :
32 @$(MAKE) --no-print-directory -C $(FREELDR_TOOLS_PATH)
33
34 dosmbr.bin : dosmbr.asm
35 @echo freeldr: Assembling dosmbr
36 @$(NASM_CMD) $(NFLAGS) -o dosmbr.bin -f bin dosmbr.asm
37
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
42
43
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
48
49 isoboot.bin : isoboot.asm
50 @echo freeldr: Assembling isoboot
51 @$(NASM_CMD) $(NFLAGS) -o isoboot.bin -f bin isoboot.asm
52
53 ext2.bin : ext2.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
57
58
59 .PHONY : bootcd
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
67
68 .PHONY : bootcd_dirs
69 bootcd_dirs:
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
76
77 clean:
78 @-$(RM) *.bin
79 @-$(RM) *.h
80 @echo freeldr: Clean ALL done.