merge ROS Shell without integrated explorer part into trunk
[reactos.git] / reactos / boot / freeldr / bootsect / Makefile.i386
1 all: $(BIN2C) dosmbr.bin fat.bin fat32.bin isoboot.bin ext2.bin
2
3 $(BIN2C) :
4 @$(MAKE) --no-print-directory -C $(FREELDR_TOOLS_PATH)
5
6 dosmbr.bin : dosmbr.asm
7 @echo ===================================================== Assembling dosmbr
8 @$(NASM_CMD) $(NFLAGS) -o dosmbr.bin -f bin dosmbr.asm
9
10 fat.bin : fat.asm $(BIN2C)
11 @echo ===================================================== Assembling fat
12 @$(NASM_CMD) $(NFLAGS) -o fat.bin -f bin fat.asm
13 @$(BIN2C) fat.bin fat.h fat_data
14
15
16 fat32.bin : fat32.asm $(BIN2C)
17 @echo ===================================================== Assembling fat32
18 @$(NASM_CMD) $(NFLAGS) -o fat32.bin -f bin fat32.asm
19 @$(BIN2C) fat32.bin fat32.h fat32_data
20
21 isoboot.bin : isoboot.asm
22 @echo ===================================================== Assembling isoboot
23 @$(NASM_CMD) $(NFLAGS) -o isoboot.bin -f bin isoboot.asm
24
25 ext2.bin : ext2.asm
26 @echo ===================================================== Assembling ext2
27 @$(NASM_CMD) $(NFLAGS) -o ext2.bin -f bin ext2.asm
28 @$(BIN2C) ext2.bin ext2.h ext2_data
29
30
31 .PHONY : bootcd
32 bootcd: bootcd_dirs isoboot.bin
33 $(CP) isoboot.bin $(BOOTCD_DIR)
34 $(CP) dosmbr.bin $(BOOTCD_DIR)/disk/loader
35 $(CP) ext2.bin $(BOOTCD_DIR)/disk/loader
36 $(CP) fat.bin $(BOOTCD_DIR)/disk/loader
37 $(CP) fat32.bin $(BOOTCD_DIR)/disk/loader
38 $(CP) isoboot.bin $(BOOTCD_DIR)/disk/loader
39
40 .PHONY : bootcd_dirs
41 bootcd_dirs:
42 $(MKDIR) $(BOOTCD_DIR)
43 $(MKDIR) $(BOOTCD_DIR)/disk
44 $(MKDIR) $(BOOTCD_DIR)/disk/reactos
45 $(MKDIR) $(BOOTCD_DIR)/disk/install
46 $(MKDIR) $(BOOTCD_DIR)/disk/bootdisk
47 $(MKDIR) $(BOOTCD_DIR)/disk/loader
48
49 clean:
50 @-$(RM) *.bin
51 @-$(RM) *.h
52 @echo Clean ALL done.