2 #OBJS_BOOTPACK = naskfunc.obj hankaku.obj gdtidt.obj graphic.obj grap_08.obj grap_16.obj grap_32.obj init.obj intrpt.obj io.obj memory.obj paging.obj sheet.obj fifo.obj mtask.obj timer.obj keyboard.obj mouse.obj window.obj console.obj file.obj uuid.obj api.obj bootpack.obj
\r
3 #OBJS_BOOTPACK = nasfunc0.obj nasfunc1.obj nasfunc2.obj hankaku.obj callbios.obj cfunc.obj display.obj draw08.obj drawing.obj dsctbl.obj emu86.obj emu86asm.obj error.obj fifo.obj intrpt.obj keyboard.obj memory.obj mtask.obj serial.obj system.obj timer.obj vgatmode.obj xception.obj bootpack.obj
\r
4 #HEADS_BOOTPACK = core.h coredef0.h coredef1.h coredef2.h coredef3.h keyid.h
\r
8 TOOLPATH = ../../z_tools/
\r
9 INCPATH = ../../z_tools/CHNOSProject/
\r
11 MAKE = $(TOOLPATH)make.exe -r
\r
12 NASK = $(TOOLPATH)nask.exe
\r
13 CC1 = $(TOOLPATH)cc1.exe -I$(INCPATH) -Os -Wall -quiet
\r
14 BIN2OBJ = $(TOOLPATH)bin2obj.exe
\r
15 GAS2NASK = $(TOOLPATH)gas2nask.exe -a
\r
16 OBJ2BIM = $(TOOLPATH)obj2bim.exe
\r
17 BIM2CHN = $(TOOLPATH)bim2chn.exe
\r
18 RULEFILE = $(INCPATH)chn010.rul
\r
19 EDIMG = $(TOOLPATH)edimg.exe bias:9
\r
20 IMGTOL = $(TOOLPATH)RWFD.EXE
\r
21 MAKEFONT = $(TOOLPATH)makefont.exe
\r
24 SJISCONV = $(TOOLPATH)sjisconv.exe -s
\r
26 #
\83f
\83t
\83H
\83\8b\83g
\93®
\8dì
\r
31 #
\83t
\83@
\83C
\83\8b\90¶
\90¬
\8bK
\91¥
\r
33 chnipl.bin : chnipl.nas Makefile
\r
34 $(NASK) chnipl.nas chnipl.bin chnipl.lst
\r
36 hankaku.bin : hankaku.txt Makefile
\r
37 $(MAKEFONT) hankaku.txt hankaku.bin
\r
39 hankaku.obj : hankaku.bin Makefile
\r
40 $(BIN2OBJ) hankaku.bin hankaku.obj _hankaku
\r
42 asmhead.bin : asmhead.nas Makefile
\r
43 $(NASK) asmhead.nas asmhead.bin asmhead.lst
\r
45 bootpack.gas : bootpack.ca $(HEADS_BOOTPACK) Makefile
\r
46 $(CC1) -o bootpack.gas bootpack.ca
\r
48 bootpack.nas : bootpack.gas Makefile
\r
49 $(GAS2NASK) bootpack.gas bootpack.nas
\r
51 bootpack.obj : bootpack.nas Makefile
\r
52 $(NASK) bootpack.nas bootpack.obj bootpack.lst
\r
54 nasfunc0.obj : nasfunc0.nas Makefile
\r
55 $(NASK) nasfunc0.nas nasfunc0.obj nasfunc0.lst
\r
57 bootpack.bim : $(OBJS_BOOTPACK) Makefile
\r
58 $(OBJ2BIM) @$(RULEFILE) out:bootpack.bim stack:3136k map:bootpack.map \
\r
62 bootpack.chn : bootpack.bim Makefile
\r
63 $(BIM2CHN) bootpack.bim bootpack.chn 0
\r
65 chnos.sys : asmhead.bin bootpack.chn Makefile
\r
66 copy /B asmhead.bin+bootpack.chn chnos.sys
\r
68 chnos.img : chnipl.bin chnos.sys Makefile
\r
69 $(EDIMG) imgin:../../z_tools/fdimg0at.tek \
\r
70 wbinimg src:chnipl.bin len:512 from:0 to:0 \
\r
71 copy from:chnos.sys to:@: \
\r
72 copy from:chnipl.nas to:@: \
\r
73 copy from:chnlogo.bmp to:@: \
\r
79 $(SJISCONV) $*.c $*.ca
\r
81 %.gas : %.ca $(HEADS_BOOTPACK) Makefile
\r
82 $(CC1) -o $*.gas $*.ca
\r
84 %.nas : %.gas Makefile
\r
85 $(GAS2NASK) $*.gas $*.nas
\r
87 %.obj : %.nas Makefile
\r
88 $(NASK) $*.nas $*.obj $*.lst
\r
92 #
\83R
\83}
\83\93\83h
\r
99 $(COPY) chnos.img ..\..\z_tools\qemu\fdimage0.bin
\r
100 $(MAKE) -C ../../z_tools/qemu
\r
103 $(COPY) chnos.img ..\..\z_tools\bochs\fdimage0.bin
\r
104 $(MAKE) -C ../../z_tools/bochs
\r
109 $(MAKE) -C ../../z_tools/qemu_iso
\r
113 $(IMGTOL) chnos.img a:
\r
121 -$(DEL) bootpack.nas
\r
122 -$(DEL) bootpack.map
\r
123 -$(DEL) bootpack.bim
\r
124 -$(DEL) bootpack.chn
\r
133 ..\..\z_tools\mkisofs.exe -v -iso-level 1 -b chnos.img -o ..\..\z_tools\qemu_iso\chnos.iso .
\r