-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
117 lines (96 loc) · 2.56 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#アプリ追加時に書き足すべき箇所
# ファイル生成規則 2箇所
# コマンド
# full, clan_full, src_only_full
TARGET = chnos
TOOLPATH = ../z_tools/
INCPATH = ../z_tools/CHNOSProject/
SRCROOT = ./
include $(SRCROOT)tooldef.txt
# デフォルト動作
default :
$(MAKE) full
$(MAKE) chnos.img
# ファイル生成規則
chnos.img : chnos/chnipl.bin chnos/chnos.sys chnos/chnipl.nas \
asmtest/asmtest.chn \
bug1/bug1.chn \
crack1/crack1.chn \
crack2/crack2.chn \
crack3/crack3.chn \
crack4/crack4.chn \
ctest/ctest.chn
$(EDIMG) imgin:../z_tools/fdimg0at.tek \
wbinimg src:chnos/chnipl.bin len:512 from:0 to:0 \
copy from:chnos/chnos.sys to:@: \
copy from:chnos/chnipl.nas to:@: \
copy from:asmtest/asmtest.chn to:@: \
copy from:bug1/bug1.chn to:@: \
copy from:crack1/crack1.chn to:@: \
copy from:crack2/crack2.chn to:@: \
copy from:crack3/crack3.chn to:@: \
copy from:crack4/crack4.chn to:@: \
copy from:ctest/ctest.chn to:@: \
imgout:chnos.img
# コマンド
run : $(TARGET).img
$(COPY) $(TARGET).img $(TOOLPATH)qemu/fdimage0.bin
$(MAKE) -C $(TOOLPATH)qemu
brun : $(TARGET).img
$(COPY) $(TARGET).img $(TOOLPATH)bochs/fdimage0.bin
$(MAKE) -C $(TOOLPATH)bochs
install : $(TARGET).img
$(COPY) $(TARGET).img $(TOOLPATH)fdwrite/fdimage0.bin
$(MAKE) -C $(TOOLPATH)fdwrite
iso : $(TARGET).img
$(COPY) $(TARGET).img $(TOOLPATH)makeiso/fdimage0.bin
$(MAKE) -C $(TOOLPATH)makeiso
$(COPY) $(TOOLPATH)makeiso/$(TARGET).iso $(TARGET).iso
full :
$(MAKE) -C chnos
$(MAKE) -C asmtest
$(MAKE) -C bug1
$(MAKE) -C crack1
$(MAKE) -C crack2
$(MAKE) -C crack3
$(MAKE) -C crack4
$(MAKE) -C ctest
$(MAKE) chnos.img
run_full :
$(MAKE) full
$(COPY) chnos.img ..\z_tools\qemu\fdimage0.bin
$(MAKE) -C ../z_tools/qemu
install_full :
$(MAKE) full
$(IMGTOL) chnos.img a:
run_os :
$(MAKE) -C chnos
$(MAKE) run
clean :
# 何もしない
src_only :
$(MAKE) clean
-$(DEL) chnos.img
clean_full :
$(MAKE) -C asmtest clean
$(MAKE) -C bug1 clean
$(MAKE) -C crack1 clean
$(MAKE) -C crack2 clean
$(MAKE) -C crack3 clean
$(MAKE) -C crack4 clean
$(MAKE) -C ctest clean
$(MAKE) -C chnos clean
src_only_full :
$(MAKE) -C asmtest src_only
$(MAKE) -C bug1 src_only
$(MAKE) -C crack1 src_only
$(MAKE) -C crack2 src_only
$(MAKE) -C crack3 src_only
$(MAKE) -C crack4 src_only
$(MAKE) -C ctest src_only
$(MAKE) -C chnos src_only
-$(DEL) chnos.img
refresh :
$(MAKE) full
$(MAKE) clean_full
-$(DEL) chnos.img