Rev 2255 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2255 | Rev 2260 | ||
---|---|---|---|
1 | # General rule for naming: variables with CAPITALIZED names hold settings, |
1 | # General rule for naming: variables with CAPITALIZED names hold settings, |
2 | # you can - and are expected - to modify it; variables with lowercase names |
2 | # you can - and are expected - to modify it; variables with lowercase names |
3 | # are intermediate variables and macroses not to be modified unless you |
3 | # are intermediate variables and macroses not to be modified unless you |
4 | # know what you're doing. |
4 | # know what you're doing. |
5 | 5 | ||
6 | # Define directories for destination, source repository, sources of kernel, sources of programs. |
6 | # Define directories for destination, source repository, sources of kernel, sources of programs. |
7 | BUILD_DIR:=build |
7 | BUILD_DIR:=build |
8 | REPOSITORY:=../.. |
8 | REPOSITORY:=../.. |
9 | KERNEL:=$(REPOSITORY)/kernel/trunk |
9 | KERNEL:=$(REPOSITORY)/kernel/trunk |
10 | PROGS:=$(REPOSITORY)/programs |
10 | PROGS:=$(REPOSITORY)/programs |
11 | 11 | ||
12 | # Docpak requires some documents; we place them |
12 | # Docpak requires some documents; we place them |
13 | # into 'docs' subdir and communicate with FASM |
13 | # into 'docs' subdir and communicate with FASM |
14 | # through environment var DOCDIR. |
14 | # through environment var DOCDIR. |
15 | DOCDIR:=docs/ |
15 | DOCDIR:=docs/ |
16 | export DOCDIR |
16 | export DOCDIR |
17 | 17 | ||
18 | # Because most programs are written in FASM and have |
18 | # Because most programs are written in FASM and have |
19 | # the common structure of one main .asm file possibly including |
19 | # the common structure of one main .asm file possibly including |
20 | # several .inc files, we handle this case separately. |
20 | # several .inc files, we handle this case separately. |
21 | # Namely, we organize one big list of such programs |
21 | # Namely, we organize one big list of such programs |
22 | # (FASM_PROGRAMS, see below) containing name of local binary file, |
22 | # (FASM_PROGRAMS, see below) containing name of local binary file, |
23 | # name of file inside kolibri.img and name of the source file. |
23 | # name of file inside kolibri.img and name of the source file. |
24 | # This list is maintained by hand, and the rest is done with some macroses... |
24 | # This list is maintained by hand, and the rest is done with some macroses... |
25 | # well, slightly complicated macroses - however, you do not need to |
25 | # well, slightly complicated macroses - however, you do not need to |
26 | # understand them in order to maintain the list. |
26 | # understand them in order to maintain the list. |
27 | # To add a FASM program with one .asm file, just |
27 | # To add a FASM program with one .asm file, just |
28 | # add the corresponding item to the list and enjoy |
28 | # add the corresponding item to the list and enjoy |
29 | # the power of GNU make. |
29 | # the power of GNU make. |
30 | 30 | ||
31 | # The list of all FASM programs with one main FASM file. |
31 | # The list of all FASM programs with one main FASM file. |
32 | # Every item consists of three parts, separated by ':'. |
32 | # Every item consists of three parts, separated by ':'. |
33 | # First part is the real name of binary file in $(BUILD_DIR) |
33 | # First part is the real name of binary file in $(BUILD_DIR) |
34 | # as it should be produced by make. |
34 | # as it should be produced by make. |
35 | # Second part is the name of a file inside kolibri.img, |
35 | # Second part is the name of a file inside kolibri.img, |
36 | # usually uppercased version of first part - to save space |
36 | # usually uppercased version of first part - to save space |
37 | # for FAT filesystem. |
37 | # for FAT filesystem. |
38 | # Third part is the name of the source file. |
38 | # Third part is the name of the source file. |
39 | # Spaces separate items, so spaces in names should be |
39 | # Spaces separate items, so spaces in names should be |
40 | # represented as '|'. |
40 | # represented as '|'. |
41 | FASM_PROGRAMS:=\ |
41 | FASM_PROGRAMS:=\ |
42 | @clip:@CLIP:$(PROGS)/system/clip/trunk/@clip.ASM \ |
42 | @clip:@CLIP:$(PROGS)/system/clip/trunk/@clip.ASM \ |
43 | @menu:@MENU:$(PROGS)/system/menu/trunk/menu.asm \ |
43 | @menu:@MENU:$(PROGS)/system/menu/trunk/menu.asm \ |
44 | @notify:@NOTIFY:$(PROGS)/system/notify/trunk/@notify.asm \ |
44 | @notify:@NOTIFY:$(PROGS)/system/notify/trunk/@notify.asm \ |
45 | @panel:@PANEL:$(PROGS)/system/panel/trunk/@PANEL.ASM \ |
45 | @panel:@PANEL:$(PROGS)/system/panel/trunk/@PANEL.ASM \ |
46 | @rb:@RB:$(PROGS)/system/rb/trunk/@RB.ASM \ |
46 | @rb:@RB:$(PROGS)/system/rb/trunk/@RB.ASM \ |
47 | @ss:@SS:$(PROGS)/system/ss/trunk/@ss.asm \ |
47 | @ss:@SS:$(PROGS)/system/ss/trunk/@ss.asm \ |
48 | asciivju:ASCIIVJU:$(PROGS)/develop/asciivju/trunk/asciivju.asm \ |
48 | asciivju:ASCIIVJU:$(PROGS)/develop/asciivju/trunk/asciivju.asm \ |
49 | calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \ |
49 | calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \ |
50 | calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.asm \ |
50 | calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.asm \ |
51 | commouse:COMMOUSE:$(PROGS)/system/commouse/trunk/commouse.asm \ |
51 | commouse:COMMOUSE:$(PROGS)/system/commouse/trunk/commouse.asm \ |
52 | cpu:CPU:$(PROGS)/system/cpu/trunk/cpu.asm \ |
52 | cpu:CPU:$(PROGS)/system/cpu/trunk/cpu.asm \ |
53 | cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \ |
53 | cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \ |
54 | desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \ |
54 | desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \ |
55 | disptest:DISPTEST:$(PROGS)/system/disptest/trunk/disptest.ASM \ |
55 | disptest:DISPTEST:$(PROGS)/system/disptest/trunk/disptest.ASM \ |
56 | docpak:DOCPAK:$(PROGS)/system/docpack/trunk/docpack.asm \ |
56 | docpak:DOCPAK:$(PROGS)/system/docpack/trunk/docpack.asm \ |
57 | end:END:$(PROGS)/system/end/light/end.asm \ |
57 | end:END:$(PROGS)/system/end/light/end.asm \ |
58 | gmon:GMON:$(PROGS)/system/gmon/gmon.asm \ |
58 | gmon:GMON:$(PROGS)/system/gmon/gmon.asm \ |
59 | hdd_info:HDD_INFO:$(PROGS)/system/hdd_info/trunk/hdd_info.asm \ |
59 | hdd_info:HDD_INFO:$(PROGS)/system/hdd_info/trunk/hdd_info.asm \ |
60 | icon:ICON:$(PROGS)/system/icon/trunk/icon.asm \ |
60 | icon:ICON:$(PROGS)/system/icon/trunk/icon.asm \ |
61 | kbd:KBD:$(PROGS)/system/kbd/trunk/kbd.ASM \ |
61 | kbd:KBD:$(PROGS)/system/kbd/trunk/kbd.ASM \ |
62 | kpack:KPACK:$(PROGS)/other/kpack/trunk/kpack.asm \ |
62 | kpack:KPACK:$(PROGS)/other/kpack/trunk/kpack.asm \ |
63 | launcher:LAUNCHER:$(PROGS)/system/launcher/trunk/launcher.asm \ |
63 | launcher:LAUNCHER:$(PROGS)/system/launcher/trunk/launcher.asm \ |
64 | magnify:MAGNIFY:$(PROGS)/demos/magnify/trunk/magnify.asm \ |
64 | magnify:MAGNIFY:$(PROGS)/demos/magnify/trunk/magnify.asm \ |
65 | mgb:MGB:$(PROGS)/system/mgb/trunk/mgb.asm \ |
65 | mgb:MGB:$(PROGS)/system/mgb/trunk/mgb.asm \ |
66 | mousemul:MOUSEMUL:$(PROGS)/system/mousemul/trunk/mousemul.asm \ |
66 | mousemul:MOUSEMUL:$(PROGS)/system/mousemul/trunk/mousemul.asm \ |
67 | mykey:MYKEY:$(PROGS)/system/MyKey/trunk/MyKey.asm \ |
67 | mykey:MYKEY:$(PROGS)/system/MyKey/trunk/MyKey.asm \ |
68 | pcidev:PCIDEV:$(PROGS)/system/pcidev/trunk/PCIDEV.ASM \ |
68 | pcidev:PCIDEV:$(PROGS)/system/pcidev/trunk/PCIDEV.ASM \ |
69 | period:PERIOD:$(PROGS)/other/period/trunk/period.asm \ |
69 | period:PERIOD:$(PROGS)/other/period/trunk/period.asm \ |
70 | pic4:PIC4:$(PROGS)/media/pic4/trunk/pic4.asm \ |
70 | pic4:PIC4:$(PROGS)/media/pic4/trunk/pic4.asm \ |
71 | rdsave:RDSAVE:$(PROGS)/system/rdsave/trunk/rdsave.asm \ |
71 | rdsave:RDSAVE:$(PROGS)/system/rdsave/trunk/rdsave.asm \ |
72 | rtfread:RTFREAD:$(PROGS)/other/rtfread/trunk/rtfread.asm \ |
72 | rtfread:RTFREAD:$(PROGS)/other/rtfread/trunk/rtfread.asm \ |
73 | run:RUN:$(PROGS)/system/run/trunk/run.asm \ |
73 | run:RUN:$(PROGS)/system/run/trunk/run.asm \ |
74 | scrshoot:SCRSHOOT:$(PROGS)/media/scrshoot/scrshoot.asm \ |
74 | scrshoot:SCRSHOOT:$(PROGS)/media/scrshoot/scrshoot.asm \ |
75 | setup:SETUP:$(PROGS)/system/setup/trunk/setup.asm \ |
75 | setup:SETUP:$(PROGS)/system/setup/trunk/setup.asm \ |
76 | spanel:SPANEL:$(PROGS)/system/spanel/trunk/spanel.asm \ |
- | |
77 | test:TEST:$(PROGS)/system/test/trunk/test.asm \ |
76 | test:TEST:$(PROGS)/system/test/trunk/test.asm \ |
78 | tinypad:TINYPAD:$(PROGS)/develop/tinypad/trunk/tinypad.asm \ |
77 | tinypad:TINYPAD:$(PROGS)/develop/tinypad/trunk/tinypad.asm \ |
79 | zkey:ZKEY:$(PROGS)/system/zkey/trunk/ZKEY.ASM \ |
78 | zkey:ZKEY:$(PROGS)/system/zkey/trunk/ZKEY.ASM \ |
80 | 3d/3dcube2:3D/3DCUBE2:$(PROGS)/demos/3dcube2/trunk/3DCUBE2.ASM \ |
79 | 3d/3dcube2:3D/3DCUBE2:$(PROGS)/demos/3dcube2/trunk/3DCUBE2.ASM \ |
81 | 3d/3dspiral:3D/3DSPIRAL:$(PROGS)/demos/3dspiral/trunk/3dspiral.asm \ |
80 | 3d/3dspiral:3D/3DSPIRAL:$(PROGS)/demos/3dspiral/trunk/3dspiral.asm \ |
82 | 3d/3dtcub10:3D/3DTCUB10:$(PROGS)/demos/3dtcub10/trunk/3DTCUB10.ASM \ |
81 | 3d/3dtcub10:3D/3DTCUB10:$(PROGS)/demos/3dtcub10/trunk/3DTCUB10.ASM \ |
83 | 3d/crownscr:3D/CROWNSCR:$(PROGS)/demos/crownscr/trunk/crownscr.asm \ |
82 | 3d/crownscr:3D/CROWNSCR:$(PROGS)/demos/crownscr/trunk/crownscr.asm \ |
84 | 3d/flatwav:3D/FLATWAV:$(PROGS)/demos/flatwav/trunk/FLATWAV.ASM \ |
83 | 3d/flatwav:3D/FLATWAV:$(PROGS)/demos/flatwav/trunk/FLATWAV.ASM \ |
85 | 3d/free3d04:3D/FREE3D04:$(PROGS)/demos/free3d04/trunk/free3d04.asm \ |
84 | 3d/free3d04:3D/FREE3D04:$(PROGS)/demos/free3d04/trunk/free3d04.asm \ |
86 | 3d/view3ds:3D/VIEW3DS:$(PROGS)/demos/3DS/VIEW3DS.ASM \ |
85 | 3d/view3ds:3D/VIEW3DS:$(PROGS)/demos/3DS/VIEW3DS.ASM \ |
87 | demos/bcdclk:DEMOS/BCDCLK:$(PROGS)/demos/bcdclk/trunk/bcdclk.asm \ |
86 | demos/bcdclk:DEMOS/BCDCLK:$(PROGS)/demos/bcdclk/trunk/bcdclk.asm \ |
88 | demos/circle:DEMOS/CIRCLE:$(PROGS)/develop/examples/circle/trunk/circle.asm \ |
87 | demos/circle:DEMOS/CIRCLE:$(PROGS)/develop/examples/circle/trunk/circle.asm \ |
89 | demos/colorref:DEMOS/COLORREF:$(PROGS)/demos/colorref/trunk/colorref.asm \ |
88 | demos/colorref:DEMOS/COLORREF:$(PROGS)/demos/colorref/trunk/colorref.asm \ |
90 | demos/cslide:DEMOS/CSLIDE:$(PROGS)/demos/cslide/trunk/cslide.asm \ |
89 | demos/cslide:DEMOS/CSLIDE:$(PROGS)/demos/cslide/trunk/cslide.asm \ |
91 | demos/eyes:DEMOS/EYES:$(PROGS)/demos/eyes/trunk/eyes.asm \ |
90 | demos/eyes:DEMOS/EYES:$(PROGS)/demos/eyes/trunk/eyes.asm \ |
92 | demos/fire:DEMOS/FIRE:$(PROGS)/demos/fire/trunk/fire.asm \ |
91 | demos/fire:DEMOS/FIRE:$(PROGS)/demos/fire/trunk/fire.asm \ |
93 | demos/firework:DEMOS/FIREWORK:$(PROGS)/demos/firework/trunk/firework.asm \ |
92 | demos/firework:DEMOS/FIREWORK:$(PROGS)/demos/firework/trunk/firework.asm \ |
94 | demos/movback:DEMOS/MOVBACK:$(PROGS)/demos/movback/trunk/movback.asm \ |
93 | demos/movback:DEMOS/MOVBACK:$(PROGS)/demos/movback/trunk/movback.asm \ |
95 | demos/plasma:DEMOS/PLASMA:$(PROGS)/demos/plasma/trunk/plasma.asm \ |
94 | demos/plasma:DEMOS/PLASMA:$(PROGS)/demos/plasma/trunk/plasma.asm \ |
96 | demos/timer:DEMOS/TIMER:$(PROGS)/demos/timer/trunk/timer.asm \ |
95 | demos/timer:DEMOS/TIMER:$(PROGS)/demos/timer/trunk/timer.asm \ |
97 | demos/tinyfrac:DEMOS/TINYFRAC:$(PROGS)/demos/tinyfrac/trunk/tinyfrac.asm \ |
96 | demos/tinyfrac:DEMOS/TINYFRAC:$(PROGS)/demos/tinyfrac/trunk/tinyfrac.asm \ |
98 | demos/trantest:DEMOS/TRANTEST:$(PROGS)/demos/trantest/trunk/trantest.asm \ |
97 | demos/trantest:DEMOS/TRANTEST:$(PROGS)/demos/trantest/trunk/trantest.asm \ |
99 | demos/tube:DEMOS/TUBE:$(PROGS)/demos/tube/trunk/tube.asm \ |
98 | demos/tube:DEMOS/TUBE:$(PROGS)/demos/tube/trunk/tube.asm \ |
100 | demos/unvwater:DEMOS/UNVWATER:$(PROGS)/demos/unvwater/trunk/unvwater.asm \ |
99 | demos/unvwater:DEMOS/UNVWATER:$(PROGS)/demos/unvwater/trunk/unvwater.asm \ |
101 | demos/web:DEMOS/WEB:$(PROGS)/demos/web/trunk/web.asm \ |
100 | demos/web:DEMOS/WEB:$(PROGS)/demos/web/trunk/web.asm \ |
102 | develop/board:DEVELOP/BOARD:$(PROGS)/system/board/trunk/board.asm \ |
101 | develop/board:DEVELOP/BOARD:$(PROGS)/system/board/trunk/board.asm \ |
103 | develop/cObj:DEVELOP/cObj:$(PROGS)/develop/cObj/trunk/cObj.asm \ |
102 | develop/cObj:DEVELOP/cObj:$(PROGS)/develop/cObj/trunk/cObj.asm \ |
104 | develop/fasm:DEVELOP/FASM:$(PROGS)/develop/fasm/trunk/fasm.asm \ |
103 | develop/fasm:DEVELOP/FASM:$(PROGS)/develop/fasm/trunk/fasm.asm \ |
105 | develop/h2d2b:DEVELOP/H2D2B:$(PROGS)/develop/h2d2b/trunk/h2d2b.asm \ |
104 | develop/h2d2b:DEVELOP/H2D2B:$(PROGS)/develop/h2d2b/trunk/h2d2b.asm \ |
106 | develop/heed:DEVELOP/HEED:$(PROGS)/develop/heed/trunk/heed.asm \ |
105 | develop/heed:DEVELOP/HEED:$(PROGS)/develop/heed/trunk/heed.asm \ |
107 | develop/ipc:DEVELOP/IPC:$(PROGS)/network/ipc/trunk/ipc.asm \ |
106 | develop/ipc:DEVELOP/IPC:$(PROGS)/network/ipc/trunk/ipc.asm \ |
108 | develop/keyascii:DEVELOP/KEYASCII:$(PROGS)/develop/keyascii/trunk/keyascii.asm \ |
107 | develop/keyascii:DEVELOP/KEYASCII:$(PROGS)/develop/keyascii/trunk/keyascii.asm \ |
109 | develop/mtdbg:DEVELOP/MTDBG:$(PROGS)/develop/mtdbg/mtdbg.asm \ |
108 | develop/mtdbg:DEVELOP/MTDBG:$(PROGS)/develop/mtdbg/mtdbg.asm \ |
110 | develop/scancode:DEVELOP/SCANCODE:$(PROGS)/develop/scancode/trunk/scancode.asm \ |
109 | develop/scancode:DEVELOP/SCANCODE:$(PROGS)/develop/scancode/trunk/scancode.asm \ |
111 | develop/test_gets:DEVELOP/test_gets:$(PROGS)/develop/libraries/console/examples/test_gets.asm \ |
110 | develop/test_gets:DEVELOP/test_gets:$(PROGS)/develop/libraries/console/examples/test_gets.asm \ |
112 | develop/testcon2:DEVELOP/TESTCON2:$(PROGS)/develop/libraries/console/examples/testcon2.asm \ |
111 | develop/testcon2:DEVELOP/TESTCON2:$(PROGS)/develop/libraries/console/examples/testcon2.asm \ |
113 | develop/thread:DEVELOP/THREAD:$(PROGS)/develop/examples/thread/trunk/thread.asm \ |
112 | develop/thread:DEVELOP/THREAD:$(PROGS)/develop/examples/thread/trunk/thread.asm \ |
114 | drivers/com_mouse.obj:DRIVERS/COM_MOUSE.OBJ:$(KERNEL)/drivers/com_mouse.asm \ |
113 | drivers/com_mouse.obj:DRIVERS/COM_MOUSE.OBJ:$(KERNEL)/drivers/com_mouse.asm \ |
115 | drivers/emu10k1x.obj:DRIVERS/EMU10K1X.OBJ:$(KERNEL)/drivers/emu10k1x.asm \ |
114 | drivers/emu10k1x.obj:DRIVERS/EMU10K1X.OBJ:$(KERNEL)/drivers/emu10k1x.asm \ |
116 | drivers/fm801.obj:DRIVERS/FM801.OBJ:$(KERNEL)/drivers/fm801.asm \ |
115 | drivers/fm801.obj:DRIVERS/FM801.OBJ:$(KERNEL)/drivers/fm801.asm \ |
117 | drivers/infinity.obj:DRIVERS/INFINITY.OBJ:$(KERNEL)/drivers/infinity.asm \ |
116 | drivers/infinity.obj:DRIVERS/INFINITY.OBJ:$(KERNEL)/drivers/infinity.asm \ |
118 | drivers/ps2mouse.obj:DRIVERS/PS2MOUSE.OBJ:$(REPOSITORY)/drivers/mouse/ps2mouse4d/trunk/ps2mouse.asm \ |
117 | drivers/ps2mouse.obj:DRIVERS/PS2MOUSE.OBJ:$(REPOSITORY)/drivers/mouse/ps2mouse4d/trunk/ps2mouse.asm \ |
119 | drivers/sb16.obj:DRIVERS/SB16.OBJ:$(KERNEL)/drivers/sb16/sb16.asm \ |
118 | drivers/sb16.obj:DRIVERS/SB16.OBJ:$(KERNEL)/drivers/sb16/sb16.asm \ |
120 | drivers/sound.obj:DRIVERS/SOUND.OBJ:$(KERNEL)/drivers/sound.asm \ |
119 | drivers/sound.obj:DRIVERS/SOUND.OBJ:$(KERNEL)/drivers/sound.asm \ |
121 | drivers/vt8235.obj:DRIVERS/VT8235.OBJ:$(KERNEL)/drivers/vt823x.asm \ |
120 | drivers/vt8235.obj:DRIVERS/VT8235.OBJ:$(KERNEL)/drivers/vt823x.asm \ |
122 | File|Managers/kfar:File|Managers/KFAR:$(PROGS)/fs/kfar/trunk/kfar.asm \ |
121 | File|Managers/kfar:File|Managers/KFAR:$(PROGS)/fs/kfar/trunk/kfar.asm \ |
123 | File|Managers/kfm:File|Managers/KFM:$(PROGS)/fs/kfm/trunk/kfm.asm \ |
122 | File|Managers/kfm:File|Managers/KFM:$(PROGS)/fs/kfm/trunk/kfm.asm \ |
124 | File|Managers/opendial:File|Managers/OPENDIAL:$(PROGS)/fs/opendial/opendial.asm \ |
123 | File|Managers/opendial:File|Managers/OPENDIAL:$(PROGS)/fs/opendial/opendial.asm \ |
125 | fonts/bgitest:FONTS/BGITEST:$(PROGS)/demos/bgitest/trunk/bgitest.asm \ |
124 | fonts/bgitest:FONTS/BGITEST:$(PROGS)/demos/bgitest/trunk/bgitest.asm \ |
126 | games/15:GAMES/15:$(PROGS)/games/15/trunk/15.ASM \ |
125 | games/15:GAMES/15:$(PROGS)/games/15/trunk/15.ASM \ |
127 | games/arcanii:GAMES/ARCANII:$(PROGS)/games/arcanii/trunk/arcanii.asm \ |
126 | games/arcanii:GAMES/ARCANII:$(PROGS)/games/arcanii/trunk/arcanii.asm \ |
128 | games/bnc:GAMES/BNC:$(PROGS)/games/bnc/trunk/bnc.asm \ |
127 | games/bnc:GAMES/BNC:$(PROGS)/games/bnc/trunk/bnc.asm \ |
129 | games/freecell:GAMES/FREECELL:$(PROGS)/games/freecell/freecell.asm \ |
128 | games/freecell:GAMES/FREECELL:$(PROGS)/games/freecell/freecell.asm \ |
130 | games/gomoku:GAMES/GOMOKU:$(PROGS)/games/gomoku/trunk/gomoku.asm \ |
129 | games/gomoku:GAMES/GOMOKU:$(PROGS)/games/gomoku/trunk/gomoku.asm \ |
131 | games/invaders:GAMES/INVADERS:$(PROGS)/games/invaders/invaders.asm \ |
130 | games/invaders:GAMES/INVADERS:$(PROGS)/games/invaders/invaders.asm \ |
132 | games/klavisha:GAMES/KLAVISHA:$(PROGS)/games/klavisha/trunk/klavisha.asm \ |
131 | games/klavisha:GAMES/KLAVISHA:$(PROGS)/games/klavisha/trunk/klavisha.asm \ |
133 | games/kox:GAMES/KOX:$(PROGS)/games/kox/trunk/kox.asm \ |
132 | games/kox:GAMES/KOX:$(PROGS)/games/kox/trunk/kox.asm \ |
134 | games/lights:GAMES/LIGHTS:$(PROGS)/games/lights/trunk/lights.asm \ |
133 | games/lights:GAMES/LIGHTS:$(PROGS)/games/lights/trunk/lights.asm \ |
135 | games/lines:GAMES/LINES:$(PROGS)/games/lines/lines.asm \ |
134 | games/lines:GAMES/LINES:$(PROGS)/games/lines/lines.asm \ |
136 | games/mblocks:GAMES/MBLOCKS:$(PROGS)/games/mblocks/trunk/mblocks.asm \ |
135 | games/mblocks:GAMES/MBLOCKS:$(PROGS)/games/mblocks/trunk/mblocks.asm \ |
137 | games/msquare:GAMES/MSQUARE:$(PROGS)/games/MSquare/trunk/MSquare.asm \ |
136 | games/msquare:GAMES/MSQUARE:$(PROGS)/games/MSquare/trunk/MSquare.asm \ |
138 | games/phenix:GAMES/PHENIX:$(PROGS)/games/phenix/trunk/phenix.asm \ |
137 | games/phenix:GAMES/PHENIX:$(PROGS)/games/phenix/trunk/phenix.asm \ |
139 | games/pipes:GAMES/PIPES:$(PROGS)/games/pipes/pipes.asm \ |
138 | games/pipes:GAMES/PIPES:$(PROGS)/games/pipes/pipes.asm \ |
140 | games/pong:GAMES/PONG:$(PROGS)/games/pong/trunk/pong.asm \ |
139 | games/pong:GAMES/PONG:$(PROGS)/games/pong/trunk/pong.asm \ |
141 | games/pong3:GAMES/PONG3:$(PROGS)/games/pong3/trunk/pong3.asm \ |
140 | games/pong3:GAMES/PONG3:$(PROGS)/games/pong3/trunk/pong3.asm \ |
142 | games/rsquare:GAMES/RSQUARE:$(PROGS)/games/rsquare/trunk/rsquare.asm \ |
141 | games/rsquare:GAMES/RSQUARE:$(PROGS)/games/rsquare/trunk/rsquare.asm \ |
143 | games/snake:GAMES/SNAKE:$(PROGS)/games/snake/trunk/snake.asm \ |
142 | games/snake:GAMES/SNAKE:$(PROGS)/games/snake/trunk/snake.asm \ |
144 | games/sq_game:GAMES/SQ_GAME:$(PROGS)/games/sq_game/trunk/SQ_GAME.ASM \ |
143 | games/sq_game:GAMES/SQ_GAME:$(PROGS)/games/sq_game/trunk/SQ_GAME.ASM \ |
145 | games/sudoku:GAMES/SUDOKU:$(PROGS)/games/sudoku/trunk/sudoku.asm \ |
144 | games/sudoku:GAMES/SUDOKU:$(PROGS)/games/sudoku/trunk/sudoku.asm \ |
146 | games/sw:GAMES/SW:$(PROGS)/games/sw/trunk/sw.asm \ |
145 | games/sw:GAMES/SW:$(PROGS)/games/sw/trunk/sw.asm \ |
147 | games/tanks:GAMES/TANKS:$(PROGS)/games/tanks/trunk/tanks.asm \ |
146 | games/tanks:GAMES/TANKS:$(PROGS)/games/tanks/trunk/tanks.asm \ |
148 | games/tetris:GAMES/TETRIS:$(PROGS)/games/tetris/trunk/tetris.asm \ |
147 | games/tetris:GAMES/TETRIS:$(PROGS)/games/tetris/trunk/tetris.asm \ |
149 | lib/archiver.obj:LIB/ARCHIVER.OBJ:$(PROGS)/fs/kfar/trunk/kfar_arc/kfar_arc.asm \ |
148 | lib/archiver.obj:LIB/ARCHIVER.OBJ:$(PROGS)/fs/kfar/trunk/kfar_arc/kfar_arc.asm \ |
150 | lib/box_lib.obj:LIB/BOX_LIB.OBJ:$(PROGS)/develop/libraries/box_lib/trunk/box_lib.asm \ |
149 | lib/box_lib.obj:LIB/BOX_LIB.OBJ:$(PROGS)/develop/libraries/box_lib/trunk/box_lib.asm \ |
151 | lib/console.obj:LIB/CONSOLE.OBJ:$(PROGS)/develop/libraries/console/console.asm \ |
150 | lib/console.obj:LIB/CONSOLE.OBJ:$(PROGS)/develop/libraries/console/console.asm \ |
152 | lib/libgfx.obj:LIB/LIBGFX.OBJ:$(PROGS)/develop/libraries/libs-dev/libgfx/libgfx.asm \ |
151 | lib/libgfx.obj:LIB/LIBGFX.OBJ:$(PROGS)/develop/libraries/libs-dev/libgfx/libgfx.asm \ |
153 | lib/libimg.obj:LIB/LIBIMG.OBJ:$(PROGS)/develop/libraries/libs-dev/libimg/libimg.asm \ |
152 | lib/libimg.obj:LIB/LIBIMG.OBJ:$(PROGS)/develop/libraries/libs-dev/libimg/libimg.asm \ |
154 | lib/libini.obj:LIB/LIBINI.OBJ:$(PROGS)/develop/libraries/libs-dev/libini/libini.asm \ |
153 | lib/libini.obj:LIB/LIBINI.OBJ:$(PROGS)/develop/libraries/libs-dev/libini/libini.asm \ |
155 | lib/libio.obj:LIB/LIBIO.OBJ:$(PROGS)/develop/libraries/libs-dev/libio/libio.asm \ |
154 | lib/libio.obj:LIB/LIBIO.OBJ:$(PROGS)/develop/libraries/libs-dev/libio/libio.asm \ |
156 | lib/network.obj:LIB/NETWORK.OBJ:$(PROGS)/develop/libraries/network/network.asm \ |
155 | lib/network.obj:LIB/NETWORK.OBJ:$(PROGS)/develop/libraries/network/network.asm \ |
157 | lib/proc_lib.obj:LIB/PROC_LIB.OBJ:$(PROGS)/develop/libraries/proc_lib/trunk/proc_lib.asm \ |
156 | lib/proc_lib.obj:LIB/PROC_LIB.OBJ:$(PROGS)/develop/libraries/proc_lib/trunk/proc_lib.asm \ |
158 | lib/cnv_png.obj:LIB/CNV_PNG.OBJ:$(PROGS)/media/zsea/plugins/png/cnv_png.asm \ |
157 | lib/cnv_png.obj:LIB/CNV_PNG.OBJ:$(PROGS)/media/zsea/plugins/png/cnv_png.asm \ |
159 | media/animage:MEDIA/ANIMAGE:$(PROGS)/media/animage/trunk/animage.asm \ |
158 | media/animage:MEDIA/ANIMAGE:$(PROGS)/media/animage/trunk/animage.asm \ |
160 | media/cdp:MEDIA/CDP:$(PROGS)/media/cdp/trunk/cdp.asm \ |
159 | media/cdp:MEDIA/CDP:$(PROGS)/media/cdp/trunk/cdp.asm \ |
161 | media/kiv:MEDIA/KIV:$(PROGS)/media/kiv/trunk/kiv.asm \ |
160 | media/kiv:MEDIA/KIV:$(PROGS)/media/kiv/trunk/kiv.asm \ |
162 | media/listplay:MEDIA/LISTPLAY:$(PROGS)/media/listplay/trunk/listplay.asm \ |
161 | media/listplay:MEDIA/LISTPLAY:$(PROGS)/media/listplay/trunk/listplay.asm \ |
163 | media/midamp:MEDIA/MIDAMP:$(PROGS)/media/midamp/trunk/midamp.asm \ |
162 | media/midamp:MEDIA/MIDAMP:$(PROGS)/media/midamp/trunk/midamp.asm \ |
164 | media/startmus:MEDIA/STARTMUS:$(PROGS)/media/startmus/trunk/STARTMUS.ASM \ |
163 | media/startmus:MEDIA/STARTMUS:$(PROGS)/media/startmus/trunk/STARTMUS.ASM \ |
165 | network/airc:NETWORK/AIRC:$(PROGS)/network/airc/trunk/airc.asm \ |
164 | network/airc:NETWORK/AIRC:$(PROGS)/network/airc/trunk/airc.asm \ |
166 | network/arpstat:NETWORK/ARPSTAT:$(PROGS)/network/arpstat/trunk/arpstat.asm \ |
165 | network/arpstat:NETWORK/ARPSTAT:$(PROGS)/network/arpstat/trunk/arpstat.asm \ |
167 | network/chess:NETWORK/CHESS:$(PROGS)/network/chess/trunk/chess.asm \ |
166 | network/chess:NETWORK/CHESS:$(PROGS)/network/chess/trunk/chess.asm \ |
168 | network/downloader:NETWORK/DOWNLOADER:$(PROGS)/network/downloader/trunk/downloader.asm \ |
167 | network/downloader:NETWORK/DOWNLOADER:$(PROGS)/network/downloader/trunk/downloader.asm \ |
169 | network/ethstat:NETWORK/ETHSTAT:$(PROGS)/network/ethstat/trunk/ethstat.asm \ |
168 | network/ethstat:NETWORK/ETHSTAT:$(PROGS)/network/ethstat/trunk/ethstat.asm \ |
170 | network/ftps:NETWORK/FTPS:$(PROGS)/network/ftps/trunk/FTPS.ASM \ |
169 | network/ftps:NETWORK/FTPS:$(PROGS)/network/ftps/trunk/FTPS.ASM \ |
171 | network/https:NETWORK/HTTPS:$(PROGS)/network/https/trunk/https.asm \ |
170 | network/https:NETWORK/HTTPS:$(PROGS)/network/https/trunk/https.asm \ |
172 | network/nntpc:NETWORK/NNTPC:$(PROGS)/network/nntpc/trunk/nntpc.asm \ |
171 | network/nntpc:NETWORK/NNTPC:$(PROGS)/network/nntpc/trunk/nntpc.asm \ |
173 | network/nslookup:NETWORK/NSLOOKUP:$(PROGS)/develop/libraries/network/examples/nslookup.asm \ |
172 | network/nslookup:NETWORK/NSLOOKUP:$(PROGS)/develop/libraries/network/examples/nslookup.asm \ |
174 | network/popc:NETWORK/POPC:$(PROGS)/network/popc/trunk/popc.asm \ |
173 | network/popc:NETWORK/POPC:$(PROGS)/network/popc/trunk/popc.asm \ |
175 | network/smtps:NETWORK/SMTPS:$(PROGS)/network/smtps/trunk/smtps.asm \ |
174 | network/smtps:NETWORK/SMTPS:$(PROGS)/network/smtps/trunk/smtps.asm \ |
176 | network/stackcfg:NETWORK/STACKCFG:$(PROGS)/network/stackcfg/trunk/stackcfg.asm \ |
175 | network/stackcfg:NETWORK/STACKCFG:$(PROGS)/network/stackcfg/trunk/stackcfg.asm \ |
177 | network/telnet:NETWORK/TELNET:$(PROGS)/network/telnet/trunk/telnet.asm \ |
176 | network/telnet:NETWORK/TELNET:$(PROGS)/network/telnet/trunk/telnet.asm \ |
178 | network/tftpc:NETWORK/TFTPC:$(PROGS)/network/tftpc/trunk/tftpc.asm \ |
177 | network/tftpc:NETWORK/TFTPC:$(PROGS)/network/tftpc/trunk/tftpc.asm \ |
179 | network/VNCclient:NETWORK/VNCclient:$(PROGS)/network/VNCclient/VNCclient.asm \ |
178 | network/VNCclient:NETWORK/VNCclient:$(PROGS)/network/VNCclient/VNCclient.asm \ |
180 | network/ym:NETWORK/YM:$(PROGS)/network/ym/trunk/ym.asm \ |
179 | network/ym:NETWORK/YM:$(PROGS)/network/ym/trunk/ym.asm \ |
181 | network/zeroconf:NETWORK/ZEROCONF:$(PROGS)/network/zeroconf/trunk/zeroconf.asm \ |
180 | network/zeroconf:NETWORK/ZEROCONF:$(PROGS)/network/zeroconf/trunk/zeroconf.asm \ |
182 | # end of list |
181 | # end of list |
183 | # The list of all FASM programs with one main FASM file for CD image. |
182 | # The list of all FASM programs with one main FASM file for CD image. |
184 | # Format of an item is exactly the same as in the previous list. |
183 | # Format of an item is exactly the same as in the previous list. |
185 | FASM_PROGRAMS_CD:=\ |
184 | FASM_PROGRAMS_CD:=\ |
186 | drivers/atikms:DRIVERS/ATIKMS:$(REPOSITORY)/drivers/video/drm/radeon/atikms.asm \ |
185 | drivers/atikms:DRIVERS/ATIKMS:$(REPOSITORY)/drivers/video/drm/radeon/atikms.asm \ |
187 | # end of list |
186 | # end of list |
188 | 187 | ||
189 | # The list of all NASM programs with one main NASM file. |
188 | # The list of all NASM programs with one main NASM file. |
190 | # Format of an item is exactly the same as in the previous list. |
189 | # Format of an item is exactly the same as in the previous list. |
191 | NASM_PROGRAMS:=\ |
190 | NASM_PROGRAMS:=\ |
192 | demos/aclock:DEMOS/ACLOCK:$(PROGS)/demos/aclock/trunk/aclock.asm \ |
191 | demos/aclock:DEMOS/ACLOCK:$(PROGS)/demos/aclock/trunk/aclock.asm \ |
193 | games/c4:GAMES/C4:$(PROGS)/games/c4/trunk/c4.asm \ |
192 | games/c4:GAMES/C4:$(PROGS)/games/c4/trunk/c4.asm \ |
194 | # end of list |
193 | # end of list |
195 | 194 | ||
196 | # The list of files which should be copied from somewhere. |
195 | # The list of files which should be copied from somewhere. |
197 | # Format of an item is exactly the same as in the previous list. |
196 | # Format of an item is exactly the same as in the previous list. |
198 | COPY_FILES:=\ |
197 | COPY_FILES:=\ |
199 | macros.inc:MACROS.INC:$(PROGS)/macros.inc \ |
198 | macros.inc:MACROS.INC:$(PROGS)/macros.inc \ |
200 | config.inc:CONFIG.INC:$(PROGS)/config.inc \ |
199 | config.inc:CONFIG.INC:$(PROGS)/config.inc \ |
201 | struct.inc:STRUCT.INC:$(PROGS)/struct.inc \ |
200 | struct.inc:STRUCT.INC:$(PROGS)/struct.inc \ |
202 | File|Managers/z_icons.png:File|Managers/Z_ICONS.PNG:$(PROGS)/fs/opendial/z_icons.png \ |
201 | File|Managers/z_icons.png:File|Managers/Z_ICONS.PNG:$(PROGS)/fs/opendial/z_icons.png \ |
203 | File|Managers/kfm_keys.txt:File|Managers/KFM_KEYS.TXT:$(PROGS)/fs/kfm/trunk/docs/russian/dos_kolibri/kfm_keys.txt \ |
202 | File|Managers/kfm_keys.txt:File|Managers/KFM_KEYS.TXT:$(PROGS)/fs/kfm/trunk/docs/russian/dos_kolibri/kfm_keys.txt \ |
204 | File|Managers/buttons.bmp:File|Managers/BUTTONS.BMP:$(PROGS)/fs/kfm/trunk/buttons.bmp \ |
203 | File|Managers/buttons.bmp:File|Managers/BUTTONS.BMP:$(PROGS)/fs/kfm/trunk/buttons.bmp \ |
205 | File|Managers/icons.bmp:File|Managers/ICONS.BMP:$(PROGS)/fs/kfm/trunk/icons.bmp \ |
204 | File|Managers/icons.bmp:File|Managers/ICONS.BMP:$(PROGS)/fs/kfm/trunk/icons.bmp \ |
206 | fonts/euro.chr:FONTS/EURO.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/EURO.CHR \ |
205 | fonts/euro.chr:FONTS/EURO.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/EURO.CHR \ |
207 | fonts/goth.chr:FONTS/GOTH.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/GOTH.CHR \ |
206 | fonts/goth.chr:FONTS/GOTH.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/GOTH.CHR \ |
208 | fonts/lcom.chr:FONTS/LCOM.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/LCOM.CHR \ |
207 | fonts/lcom.chr:FONTS/LCOM.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/LCOM.CHR \ |
209 | fonts/litt.chr:FONTS/LITT.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/LITT.CHR \ |
208 | fonts/litt.chr:FONTS/LITT.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/LITT.CHR \ |
210 | fonts/sans.chr:FONTS/SANS.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/SANS.CHR \ |
209 | fonts/sans.chr:FONTS/SANS.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/SANS.CHR \ |
211 | fonts/scri.chr:FONTS/SCRI.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/SCRI.CHR \ |
210 | fonts/scri.chr:FONTS/SCRI.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/SCRI.CHR \ |
212 | fonts/simp.chr:FONTS/SIMP.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/SIMP.CHR \ |
211 | fonts/simp.chr:FONTS/SIMP.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/SIMP.CHR \ |
213 | fonts/smal.chr:FONTS/SMAL.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/SMAL.CHR \ |
212 | fonts/smal.chr:FONTS/SMAL.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/SMAL.CHR \ |
214 | fonts/trip.chr:FONTS/TRIP.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/TRIP.CHR \ |
213 | fonts/trip.chr:FONTS/TRIP.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/TRIP.CHR \ |
215 | fonts/tscr.chr:FONTS/TSCR.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/TSCR.CHR \ |
214 | fonts/tscr.chr:FONTS/TSCR.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/TSCR.CHR \ |
216 | games/snake.ini:GAMES/SNAKE.INI:$(PROGS)/games/snake/trunk/snake.ini \ |
215 | games/snake.ini:GAMES/SNAKE.INI:$(PROGS)/games/snake/trunk/snake.ini \ |
217 | media/kiv.ini:MEDIA/KIV.INI:$(PROGS)/media/kiv/trunk/kiv.ini \ |
216 | media/kiv.ini:MEDIA/KIV.INI:$(PROGS)/media/kiv/trunk/kiv.ini \ |
218 | .shell:.shell:$(PROGS)/system/shell/bin/rus/.shell \ |
217 | .shell:.shell:$(PROGS)/system/shell/bin/rus/.shell \ |
219 | mykey.ini:MYKEY.INI:$(PROGS)/system/MyKey/trunk/mykey.ini \ |
218 | mykey.ini:MYKEY.INI:$(PROGS)/system/MyKey/trunk/mykey.ini \ |
220 | # end of list |
219 | # end of list |
221 | 220 | ||
222 | # The list of all C-- programs with one main C-- file. |
221 | # The list of all C-- programs with one main C-- file. |
223 | # Format of an item is exactly the same as in the previous list, |
222 | # Format of an item is exactly the same as in the previous list, |
224 | # except that there can be fourth field with parameters for a compiler. |
223 | # except that there can be fourth field with parameters for a compiler. |
225 | CMM_PROGRAMS:=\ |
224 | CMM_PROGRAMS:=\ |
226 | File|Managers/eolite:File|Managers/EOLITE:$(PROGS)/fs/Eolite/trunk/Eolite.c-- \ |
225 | File|Managers/eolite:File|Managers/EOLITE:$(PROGS)/fs/Eolite/trunk/Eolite.c-- \ |
227 | games/clicks:GAMES/CLICKS:$(PROGS)/games/clicks/trunk/clicks.c-- \ |
226 | games/clicks:GAMES/CLICKS:$(PROGS)/games/clicks/trunk/clicks.c-- \ |
228 | games/FindNumbers:GAMES/FindNumbers:$(PROGS)/games/FindNumbers/trunk/FindNumbers.c-- \ |
227 | games/FindNumbers:GAMES/FindNumbers:$(PROGS)/games/FindNumbers/trunk/FindNumbers.c-- \ |
229 | games/mine:GAMES/MINE:$(PROGS)/games/mine/trunk/mine.c--:/MEOS \ |
228 | games/mine:GAMES/MINE:$(PROGS)/games/mine/trunk/mine.c--:/MEOS \ |
230 | HTMLv:HTMLv:$(PROGS)/network/htmlv/browser/HTMLv.c-- \ |
229 | HTMLv:HTMLv:$(PROGS)/network/htmlv/browser/HTMLv.c-- \ |
231 | # end of list |
230 | # end of list |
232 | 231 | ||
233 | # List of other files to be included in the image file. |
232 | # List of other files to be included in the image file. |
234 | # Some of them are auto-built with special rules, some just exist before build. |
233 | # Some of them are auto-built with special rules, some just exist before build. |
235 | # Each item is of the form |
234 | # Each item is of the form |
236 | # Spaces should be represented as |. |
235 | # Spaces should be represented as |. |
237 | # |
236 | # |
238 | # yogev_ezra: Removed '3dsheart' to free some space on RAMDISK. This demo has 90% in common with VIEW3DS |
237 | # yogev_ezra: Removed '3dsheart' to free some space on RAMDISK. This demo has 90% in common with VIEW3DS |
239 | OTHER_FILES:=autorun.dat:AUTORUN.DAT \ |
238 | OTHER_FILES:=autorun.dat:AUTORUN.DAT \ |
240 | background.gif:background.gif default.skn:DEFAULT.SKN \ |
239 | background.gif:background.gif default.skn:DEFAULT.SKN \ |
241 | e80:E80 graph:GRAPH hdread:HDREAD \ |
240 | e80:E80 graph:GRAPH hdread:HDREAD \ |
242 | icons.dat:ICONS.DAT iconstrp.gif:ICONSTRP.GIF index_htm:INDEX.HTM \ |
241 | icons.dat:ICONS.DAT iconstrp.gif:ICONSTRP.GIF index_htm:INDEX.HTM \ |
243 | kernel.mnt:KERNEL.MNT kerpack:KERPACK keymap.key:KEYMAP.KEY \ |
242 | kernel.mnt:KERNEL.MNT kerpack:KERPACK keymap.key:KEYMAP.KEY \ |
244 | kuzkina.mid:KUZKINA.MID lang.inc:LANG.INC lang.ini:LANG.INI \ |
243 | kuzkina.mid:KUZKINA.MID lang.inc:LANG.INC lang.ini:LANG.INI \ |
245 | menu.dat:MENU.DAT \ |
244 | menu.dat:MENU.DAT \ |
246 | panel.dat:PANEL.DAT pipetka:PIPETKA setup.dat:SETUP.DAT \ |
245 | panel.dat:PANEL.DAT pipetka:PIPETKA setup.dat:SETUP.DAT \ |
247 | shell:SHELL table:TABLE vmode:VMODE \ |
246 | shell:SHELL table:TABLE vmode:VMODE \ |
248 | 3d/cubeline:3D/CUBELINE 3d/gears:3D/GEARS 3d/house.3ds:3D/HOUSE.3DS \ |
247 | 3d/cubeline:3D/CUBELINE 3d/gears:3D/GEARS 3d/house.3ds:3D/HOUSE.3DS \ |
249 | demos/ak47.lif:DEMOS/AK47.LIF \ |
248 | demos/ak47.lif:DEMOS/AK47.LIF \ |
250 | demos/barge.lif:DEMOS/BARGE.LIF demos/life2:DEMOS/LIFE2 \ |
249 | demos/barge.lif:DEMOS/BARGE.LIF demos/life2:DEMOS/LIFE2 \ |
251 | demos/relay.lif:DEMOS/RELAY.LIF demos/rpento.lif:DEMOS/RPENTO.LIF \ |
250 | demos/relay.lif:DEMOS/RELAY.LIF demos/rpento.lif:DEMOS/RPENTO.LIF \ |
252 | demos/use_mb:DEMOS/USE_MB \ |
251 | demos/use_mb:DEMOS/USE_MB \ |
253 | File|Managers/eolite.ini:File|Managers/EOLITE.INI \ |
252 | File|Managers/eolite.ini:File|Managers/EOLITE.INI \ |
254 | File|Managers/icons.ini:File|Managers/ICONS.INI \ |
253 | File|Managers/icons.ini:File|Managers/ICONS.INI \ |
255 | File|Managers/kfar.ini:File|Managers/KFAR.INI \ |
254 | File|Managers/kfar.ini:File|Managers/KFAR.INI \ |
256 | File|Managers/kfm.ini:File|Managers/KFM.INI \ |
255 | File|Managers/kfm.ini:File|Managers/KFM.INI \ |
257 | fonts/bold.chr:FONTS/BOLD.CHR fonts/char2.mt:FONTS/CHAR2.MT \ |
256 | fonts/bold.chr:FONTS/BOLD.CHR fonts/char2.mt:FONTS/CHAR2.MT \ |
258 | fonts/char.mt:FONTS/CHAR.MT \ |
257 | fonts/char.mt:FONTS/CHAR.MT \ |
259 | games/appdata.dat:GAMES/APPDATA.DAT games/ataka:GAMES/ATAKA \ |
258 | games/appdata.dat:GAMES/APPDATA.DAT games/ataka:GAMES/ATAKA \ |
260 | games/basekurs.kla:GAMES/BASEKURS.KLA games/checkers:GAMES/CHECKERS \ |
259 | games/basekurs.kla:GAMES/BASEKURS.KLA games/checkers:GAMES/CHECKERS \ |
261 | games/kosilka:GAMES/KOSILKA games/kosskin.gfx:GAMES/KOSSKIN.GFX \ |
260 | games/kosilka:GAMES/KOSILKA games/kosskin.gfx:GAMES/KOSSKIN.GFX \ |
262 | games/megamaze:GAMES/MEGAMAZE games/padenie:GAMES/PADENIE \ |
261 | games/megamaze:GAMES/MEGAMAZE games/padenie:GAMES/PADENIE \ |
263 | games/reversi:GAMES/REVERSI games/rforces:GAMES/RFORCES \ |
262 | games/reversi:GAMES/REVERSI games/rforces:GAMES/RFORCES \ |
264 | games/whowtbam:GAMES/WHOWTBAM games/xonix:GAMES/XONIX \ |
263 | games/whowtbam:GAMES/WHOWTBAM games/xonix:GAMES/XONIX \ |
265 | lib/msgbox.obj:LIB/MSGBOX.OBJ \ |
264 | lib/msgbox.obj:LIB/MSGBOX.OBJ \ |
266 | lib/pixlib.obj:LIB/PIXLIB.OBJ lib/sort.obj:LIB/SORT.OBJ \ |
265 | lib/pixlib.obj:LIB/PIXLIB.OBJ lib/sort.obj:LIB/SORT.OBJ \ |
267 | media/ac97snd:MEDIA/AC97SND \ |
266 | media/ac97snd:MEDIA/AC97SND \ |
268 | network/jmail:NETWORK/JMAIL network/zeroconf.ini:NETWORK/ZEROCONF.INI \ |
267 | network/jmail:NETWORK/JMAIL network/zeroconf.ini:NETWORK/ZEROCONF.INI \ |
269 | #end of list |
268 | #end of list |
270 | #3d/logio.bmp:3D/LOGIO.BMP 3d/cubetext:3D/CUBETEXT |
269 | #3d/logio.bmp:3D/LOGIO.BMP 3d/cubetext:3D/CUBETEXT |
271 | 270 | ||
272 | # Extra targets for LiveCD image in the syntax of mkisofs |
271 | # Extra targets for LiveCD image in the syntax of mkisofs |
273 | MKISOFS_EXTRA:=\ |
272 | MKISOFS_EXTRA:=\ |
274 | dosbox/=$(PROGS)/emulator/DosBox/dosbox \ |
273 | dosbox/=$(PROGS)/emulator/DosBox/dosbox \ |
275 | dosbox/=$(PROGS)/emulator/DosBox/dosbox.conf \ |
274 | dosbox/=$(PROGS)/emulator/DosBox/dosbox.conf \ |
276 | dosbox/=$(PROGS)/emulator/DosBox/readme.txt \ |
275 | dosbox/=$(PROGS)/emulator/DosBox/readme.txt \ |
277 | /=drivers/atikms \ |
276 | /=drivers/atikms \ |
278 | /=drivers/atikms.dll \ |
277 | /=drivers/atikms.dll \ |
279 | #end of list |
278 | #end of list |
280 | 279 | ||
281 | # Some macro for convenient work. |
280 | # Some macro for convenient work. |
282 | # Macros for replacing '|' to escaped space '\ '. |
281 | # Macros for replacing '|' to escaped space '\ '. |
283 | space:=\ #plus space |
282 | space:=\ #plus space |
284 | respace=$(subst |,$(space),$(1)) |
283 | respace=$(subst |,$(space),$(1)) |
285 | # Macro for selecting different parts of ':'-separated items. |
284 | # Macro for selecting different parts of ':'-separated items. |
286 | binarypart=$(word 1,$(subst :, ,$(1))) |
285 | binarypart=$(word 1,$(subst :, ,$(1))) |
287 | imagepart=$(word 2,$(subst :, ,$(1))) |
286 | imagepart=$(word 2,$(subst :, ,$(1))) |
288 | sourcepart=$(word 3,$(subst :, ,$(1))) |
287 | sourcepart=$(word 3,$(subst :, ,$(1))) |
289 | parampart=$(word 4,$(subst :, ,$(1))) |
288 | parampart=$(word 4,$(subst :, ,$(1))) |
290 | # Get file names, possibly with spaces inside, from an item. |
289 | # Get file names, possibly with spaces inside, from an item. |
291 | # Here $(f) is an item - in fact, macro argument. |
290 | # Here $(f) is an item - in fact, macro argument. |
292 | fbinary=$(call respace,$(call binarypart,$(f))) |
291 | fbinary=$(call respace,$(call binarypart,$(f))) |
293 | fimage=$(call respace,$(call imagepart,$(f))) |
292 | fimage=$(call respace,$(call imagepart,$(f))) |
294 | fsource=$(call respace,$(call sourcepart,$(f))) |
293 | fsource=$(call respace,$(call sourcepart,$(f))) |
295 | fparam=$(call respace,$(call parampart,$(f))) |
294 | fparam=$(call respace,$(call parampart,$(f))) |
296 | 295 | ||
297 | # Define targets for image file. |
296 | # Define targets for image file. |
298 | # Join all the lists above. |
297 | # Join all the lists above. |
299 | targets_full:=$(COPY_FILES) $(FASM_PROGRAMS) $(NASM_PROGRAMS) $(OTHER_FILES) $(CMM_PROGRAMS) |
298 | targets_full:=$(COPY_FILES) $(FASM_PROGRAMS) $(NASM_PROGRAMS) $(OTHER_FILES) $(CMM_PROGRAMS) |
300 | # For each item in the united list call fbinary. |
299 | # For each item in the united list call fbinary. |
301 | targets:=$(foreach f,$(targets_full),$(fbinary)) |
300 | targets:=$(foreach f,$(targets_full),$(fbinary)) |
302 | 301 | ||
303 | # Define a command for copying a file inside the image. |
302 | # Define a command for copying a file inside the image. |
304 | # mcopy_command is a macro with two parameters, |
303 | # mcopy_command is a macro with two parameters, |
305 | # local file name $(1) and image file name $(2). |
304 | # local file name $(1) and image file name $(2). |
306 | # Note that spaces in these have to be escaped with backslashes. |
305 | # Note that spaces in these have to be escaped with backslashes. |
307 | mcopy_command=mcopy -moi $(BUILD_DIR)/kolibri.img $(1) ::$(2) |
306 | mcopy_command=mcopy -moi $(BUILD_DIR)/kolibri.img $(1) ::$(2) |
308 | # Specialize a previous command for an item $(f) in one of lists. |
307 | # Specialize a previous command for an item $(f) in one of lists. |
309 | mcopy_item_command=$(call mcopy_command,$(fbinary),$(fimage)) |
308 | mcopy_item_command=$(call mcopy_command,$(fbinary),$(fimage)) |
310 | 309 | ||
311 | # Join all $(mcopy_item_command) for all items, |
310 | # Join all $(mcopy_item_command) for all items, |
312 | # append newline after each item. |
311 | # append newline after each item. |
313 | # The first newline character after "define" line and |
312 | # The first newline character after "define" line and |
314 | # the last newline character before "endef" line get away |
313 | # the last newline character before "endef" line get away |
315 | # with define/endef, so we make three newline characters, |
314 | # with define/endef, so we make three newline characters, |
316 | # that is two empty lines, in order to get one in $(newline). |
315 | # that is two empty lines, in order to get one in $(newline). |
317 | define newline |
316 | define newline |
318 | 317 | ||
319 | 318 | ||
320 | endef |
319 | endef |
321 | mcopy_all_items:=$(foreach f,$(targets_full),$(mcopy_item_command)$(newline)) |
320 | mcopy_all_items:=$(foreach f,$(targets_full),$(mcopy_item_command)$(newline)) |
322 | 321 | ||
323 | # dependencies of MKISOFS_EXTRA; we iterate through $(MKISOFS_EXTRA), |
322 | # dependencies of MKISOFS_EXTRA; we iterate through $(MKISOFS_EXTRA), |
324 | # substitute "=" with space, get the 2nd word and join all results |
323 | # substitute "=" with space, get the 2nd word and join all results |
325 | mkisofs_extra_targets:=$(foreach f,$(MKISOFS_EXTRA),$(word 2,$(subst =, ,$(f)))) |
324 | mkisofs_extra_targets:=$(foreach f,$(MKISOFS_EXTRA),$(word 2,$(subst =, ,$(f)))) |
326 | 325 | ||
327 | # The main goal: build kolibri.img and kolibri.iso |
326 | # The main goal: build kolibri.img and kolibri.iso |
328 | all: $(BUILD_DIR)/kolibri.img $(BUILD_DIR)/kolibri.iso |
327 | all: $(BUILD_DIR)/kolibri.img $(BUILD_DIR)/kolibri.iso |
329 | 328 | ||
330 | # The first goal: floppy image. |
329 | # The first goal: floppy image. |
331 | $(BUILD_DIR)/kolibri.img: $(BUILD_DIR)/.dir \ |
330 | $(BUILD_DIR)/kolibri.img: $(BUILD_DIR)/.dir \ |
332 | Makefile \ |
331 | Makefile \ |
333 | $(BUILD_DIR)/boot_fat12.bin \ |
332 | $(BUILD_DIR)/boot_fat12.bin \ |
334 | $(targets) |
333 | $(targets) |
335 | # SYSXTREE |
334 | # SYSXTREE |
336 | # 3d/CUBETEXT |
335 | # 3d/CUBETEXT |
337 | # 3d/LOGIO.BMP |
336 | # 3d/LOGIO.BMP |
338 | str=`LANG=ru_RU.utf8 date -u +"[автосборка %d %b %Y %R, r$(REV)]"|iconv -f utf8 -t cp866`; \ |
337 | str=`LANG=ru_RU.utf8 date -u +"[автосборка %d %b %Y %R, r$(REV)]"|iconv -f utf8 -t cp866`; \ |
339 | echo -n $$str|dd of=kernel.mnt bs=1 seek=`expr 279 - length "$$str"` conv=notrunc 2>/dev/null |
338 | echo -n $$str|dd of=kernel.mnt bs=1 seek=`expr 279 - length "$$str"` conv=notrunc 2>/dev/null |
340 | dd if=/dev/zero of=$(BUILD_DIR)/kolibri.img count=2880 bs=512 2>&1 |
339 | dd if=/dev/zero of=$(BUILD_DIR)/kolibri.img count=2880 bs=512 2>&1 |
341 | mformat -f 1440 -i $(BUILD_DIR)/kolibri.img :: |
340 | mformat -f 1440 -i $(BUILD_DIR)/kolibri.img :: |
342 | dd if=$(BUILD_DIR)/boot_fat12.bin of=$(BUILD_DIR)/kolibri.img count=1 bs=512 conv=notrunc 2>&1 |
341 | dd if=$(BUILD_DIR)/boot_fat12.bin of=$(BUILD_DIR)/kolibri.img count=1 bs=512 conv=notrunc 2>&1 |
343 | mmd -i $(BUILD_DIR)/kolibri.img ::3D |
342 | mmd -i $(BUILD_DIR)/kolibri.img ::3D |
344 | mmd -i $(BUILD_DIR)/kolibri.img ::DEMOS |
343 | mmd -i $(BUILD_DIR)/kolibri.img ::DEMOS |
345 | mmd -i $(BUILD_DIR)/kolibri.img ::DEVELOP |
344 | mmd -i $(BUILD_DIR)/kolibri.img ::DEVELOP |
346 | mmd -i $(BUILD_DIR)/kolibri.img ::DRIVERS |
345 | mmd -i $(BUILD_DIR)/kolibri.img ::DRIVERS |
347 | mmd -i $(BUILD_DIR)/kolibri.img ::File\ Managers |
346 | mmd -i $(BUILD_DIR)/kolibri.img ::File\ Managers |
348 | mmd -i $(BUILD_DIR)/kolibri.img ::FONTS |
347 | mmd -i $(BUILD_DIR)/kolibri.img ::FONTS |
349 | mmd -i $(BUILD_DIR)/kolibri.img ::GAMES |
348 | mmd -i $(BUILD_DIR)/kolibri.img ::GAMES |
350 | mmd -i $(BUILD_DIR)/kolibri.img ::LIB |
349 | mmd -i $(BUILD_DIR)/kolibri.img ::LIB |
351 | mmd -i $(BUILD_DIR)/kolibri.img ::MEDIA |
350 | mmd -i $(BUILD_DIR)/kolibri.img ::MEDIA |
352 | mmd -i $(BUILD_DIR)/kolibri.img ::NETWORK |
351 | mmd -i $(BUILD_DIR)/kolibri.img ::NETWORK |
353 | $(mcopy_all_items) |
352 | $(mcopy_all_items) |
354 | 353 | ||
355 | # The second goal: LiveCD image. |
354 | # The second goal: LiveCD image. |
356 | $(BUILD_DIR)/kolibri.iso: $(BUILD_DIR)/kolibri.img $(mkisofs_extra_targets) |
355 | $(BUILD_DIR)/kolibri.iso: $(BUILD_DIR)/kolibri.img $(mkisofs_extra_targets) |
357 | mkisofs -U -J -pad -b kolibri.img -c boot.catalog -hide-joliet boot.catalog -hide-joliet kolibri.img -graft-points \ |
356 | mkisofs -U -J -pad -b kolibri.img -c boot.catalog -hide-joliet boot.catalog -hide-joliet kolibri.img -graft-points \ |
358 | -A "KolibriOS AutoBuilder" -p "CleverMouse" -publisher "KolibriOS Team" -V "KolibriOS r$(REV)" -sysid "KOLIBRI" \ |
357 | -A "KolibriOS AutoBuilder" -p "CleverMouse" -publisher "KolibriOS Team" -V "KolibriOS r$(REV)" -sysid "KOLIBRI" \ |
359 | -iso-level 3 -o $(BUILD_DIR)/kolibri.iso $(BUILD_DIR)/kolibri.img $(MKISOFS_EXTRA) 2>&1 |
358 | -iso-level 3 -o $(BUILD_DIR)/kolibri.iso $(BUILD_DIR)/kolibri.img $(MKISOFS_EXTRA) 2>&1 |
360 | 359 | ||
361 | # Special targets to modify behaviour of make. |
360 | # Special targets to modify behaviour of make. |
362 | .DELETE_ON_ERROR: |
361 | .DELETE_ON_ERROR: |
363 | .SUFFIXES: # disable all predefined rules |
362 | .SUFFIXES: # disable all predefined rules |
364 | 363 | ||
365 | # The floppy bootsector. |
364 | # The floppy bootsector. |
366 | $(BUILD_DIR)/boot_fat12.bin: $(KERNEL)/bootloader/boot_fat12.asm $(KERNEL)/bootloader/floppy1440.inc |
365 | $(BUILD_DIR)/boot_fat12.bin: $(KERNEL)/bootloader/boot_fat12.asm $(KERNEL)/bootloader/floppy1440.inc |
367 | fasm $(KERNEL)/bootloader/boot_fat12.asm $(BUILD_DIR)/boot_fat12.bin |
366 | fasm $(KERNEL)/bootloader/boot_fat12.asm $(BUILD_DIR)/boot_fat12.bin |
368 | 367 | ||
369 | $(BUILD_DIR)/.dir 3d/.dir demos/.dir develop/.dir drivers/.dir fonts/.dir \ |
368 | $(BUILD_DIR)/.dir 3d/.dir demos/.dir develop/.dir drivers/.dir fonts/.dir \ |
370 | games/.dir lib/.dir media/.dir network/.dir .deps/.dir: |
369 | games/.dir lib/.dir media/.dir network/.dir .deps/.dir: |
371 | mkdir -p $(dir $@) |
370 | mkdir -p $(dir $@) |
372 | touch $@ |
371 | touch $@ |
373 | File\ Managers/.dir: |
372 | File\ Managers/.dir: |
374 | mkdir -p "File Managers" |
373 | mkdir -p "File Managers" |
375 | touch "File Managers/.dir" |
374 | touch "File Managers/.dir" |
376 | 375 | ||
377 | # FASM black magic goes to Makefile.fasm. |
376 | # FASM black magic goes to Makefile.fasm. |
378 | include Makefile.fasm |
377 | include Makefile.fasm |
379 | 378 | ||
380 | # Similar for NASM. |
379 | # Similar for NASM. |
381 | include Makefile.nasm |
380 | include Makefile.nasm |
382 | 381 | ||
383 | # Similar for copying files. |
382 | # Similar for copying files. |
384 | include Makefile.copy |
383 | include Makefile.copy |
385 | 384 | ||
386 | # Special rules for copying sysfuncr.txt - it isn't directly included in the image. |
385 | # Special rules for copying sysfuncr.txt - it isn't directly included in the image. |
387 | docpak: $(DOCDIR)SYSFUNCR.TXT $(wildcard $(DOCDIR)*) |
386 | docpak: $(DOCDIR)SYSFUNCR.TXT $(wildcard $(DOCDIR)*) |
388 | $(DOCDIR)SYSFUNCR.TXT: $(KERNEL)/docs/sysfuncr.txt |
387 | $(DOCDIR)SYSFUNCR.TXT: $(KERNEL)/docs/sysfuncr.txt |
389 | cp $(KERNEL)/docs/sysfuncr.txt $(DOCDIR)SYSFUNCR.TXT |
388 | cp $(KERNEL)/docs/sysfuncr.txt $(DOCDIR)SYSFUNCR.TXT |
390 | 389 | ||
391 | # Similar for C--. |
390 | # Similar for C--. |
392 | include Makefile.cmm |
391 | include Makefile.cmm |
393 | 392 | ||
394 | # Sorry, even black magic seems to be insufficient for |
393 | # Sorry, even black magic seems to be insufficient for |
395 | # auto-handling all subtle effects. So we just define |
394 | # auto-handling all subtle effects. So we just define |
396 | # command lines for compiling and linking, and |
395 | # command lines for compiling and linking, and |
397 | # maintain the list of sources and objects by hand. |
396 | # maintain the list of sources and objects by hand. |
398 | include Makefile.msvc |
397 | include Makefile.msvc |
399 | 398 | ||
400 | # Rules for table |
399 | # Rules for table |
401 | table: .obj.table/table.exe |
400 | table: .obj.table/table.exe |
402 | $(msvc_final) |
401 | $(msvc_final) |
403 | TABLE_OBJECTS:=.obj.table/calc.obj .obj.table/func.obj .obj.table/hello.obj \ |
402 | TABLE_OBJECTS:=.obj.table/calc.obj .obj.table/func.obj .obj.table/hello.obj \ |
404 | .obj.table/KosFile.obj .obj.table/kosSyst.obj .obj.table/math2.obj \ |
403 | .obj.table/KosFile.obj .obj.table/kosSyst.obj .obj.table/math2.obj \ |
405 | .obj.table/mcsmemm.obj .obj.table/parser.obj |
404 | .obj.table/mcsmemm.obj .obj.table/parser.obj |
406 | TABLE_H_FILES:=$(wildcard $(PROGS)/other/table/*.h) |
405 | TABLE_H_FILES:=$(wildcard $(PROGS)/other/table/*.h) |
407 | .obj.table/table.exe: $(TABLE_OBJECTS) |
406 | .obj.table/table.exe: $(TABLE_OBJECTS) |
408 | $(msvc_link) |
407 | $(msvc_link) |
409 | $(TABLE_OBJECTS): .obj.table/%.obj: $(PROGS)/other/table/%.cpp $(TABLE_H_FILES) Makefile.msvc | .obj.table |
408 | $(TABLE_OBJECTS): .obj.table/%.obj: $(PROGS)/other/table/%.cpp $(TABLE_H_FILES) Makefile.msvc | .obj.table |
410 | $(msvc_compile) |
409 | $(msvc_compile) |
411 | .obj.table: |
410 | .obj.table: |
412 | mkdir -p .obj.table |
411 | mkdir -p .obj.table |
413 | 412 | ||
414 | # Rules for graph |
413 | # Rules for graph |
415 | graph: .obj.graph/graph.exe |
414 | graph: .obj.graph/graph.exe |
416 | $(msvc_final) |
415 | $(msvc_final) |
417 | GRAPH_CPP_OBJECTS:=.obj.graph/func.obj .obj.graph/hello.obj .obj.graph/kolibri.obj \ |
416 | GRAPH_CPP_OBJECTS:=.obj.graph/func.obj .obj.graph/hello.obj .obj.graph/kolibri.obj \ |
418 | .obj.graph/KosFile.obj .obj.graph/kosSyst.obj .obj.graph/math2.obj \ |
417 | .obj.graph/KosFile.obj .obj.graph/kosSyst.obj .obj.graph/math2.obj \ |
419 | .obj.graph/mcsmemm.obj .obj.graph/parser.obj |
418 | .obj.graph/mcsmemm.obj .obj.graph/parser.obj |
420 | GRAPH_C_OBJECTS:=.obj.graph/string.obj |
419 | GRAPH_C_OBJECTS:=.obj.graph/string.obj |
421 | GRAPH_H_FILES:=$(wildcard $(PROGS)/other/graph/*.h) |
420 | GRAPH_H_FILES:=$(wildcard $(PROGS)/other/graph/*.h) |
422 | GRAPH_FASM_OBJECTS:=.obj.graph/memcpy.obj .obj.graph/memset.obj |
421 | GRAPH_FASM_OBJECTS:=.obj.graph/memcpy.obj .obj.graph/memset.obj |
423 | .obj.graph/graph.exe: $(GRAPH_CPP_OBJECTS) $(GRAPH_C_OBJECTS) $(GRAPH_FASM_OBJECTS) |
422 | .obj.graph/graph.exe: $(GRAPH_CPP_OBJECTS) $(GRAPH_C_OBJECTS) $(GRAPH_FASM_OBJECTS) |
424 | $(msvc_link) |
423 | $(msvc_link) |
425 | $(GRAPH_CPP_OBJECTS): .obj.graph/%.obj: $(PROGS)/other/graph/%.cpp $(GRAPH_H_FILES) Makefile.msvc | .obj.graph |
424 | $(GRAPH_CPP_OBJECTS): .obj.graph/%.obj: $(PROGS)/other/graph/%.cpp $(GRAPH_H_FILES) Makefile.msvc | .obj.graph |
426 | $(msvc_compile) |
425 | $(msvc_compile) |
427 | $(GRAPH_C_OBJECTS): .obj.graph/%.obj: $(PROGS)/other/graph/%.c $(GRAPH_H_FILES) Makefile.msvc | .obj.graph |
426 | $(GRAPH_C_OBJECTS): .obj.graph/%.obj: $(PROGS)/other/graph/%.c $(GRAPH_H_FILES) Makefile.msvc | .obj.graph |
428 | $(msvc_compile) |
427 | $(msvc_compile) |
429 | $(GRAPH_FASM_OBJECTS): .obj.graph/%.obj: $(PROGS)/other/graph/%.asm Makefile.msvc | .obj.graph |
428 | $(GRAPH_FASM_OBJECTS): .obj.graph/%.obj: $(PROGS)/other/graph/%.asm Makefile.msvc | .obj.graph |
430 | fasm $< $@ |
429 | fasm $< $@ |
431 | .obj.graph: |
430 | .obj.graph: |
432 | mkdir -p .obj.graph |
431 | mkdir -p .obj.graph |
433 | 432 | ||
434 | # Rules for kosilka |
433 | # Rules for kosilka |
435 | games/kosilka: .obj.kosilka/kosilka.exe |
434 | games/kosilka: .obj.kosilka/kosilka.exe |
436 | $(msvc_final) |
435 | $(msvc_final) |
437 | KOSILKA_OBJECTS:=.obj.kosilka/kosilka.obj .obj.kosilka/KosFile.obj .obj.kosilka/kosSyst.obj .obj.kosilka/mcsmemm.obj |
436 | KOSILKA_OBJECTS:=.obj.kosilka/kosilka.obj .obj.kosilka/KosFile.obj .obj.kosilka/kosSyst.obj .obj.kosilka/mcsmemm.obj |
438 | KOSILKA_H_FILES:=$(PROGS)/games/kosilka/*.h |
437 | KOSILKA_H_FILES:=$(PROGS)/games/kosilka/*.h |
439 | .obj.kosilka/kosilka.exe: $(KOSILKA_OBJECTS) |
438 | .obj.kosilka/kosilka.exe: $(KOSILKA_OBJECTS) |
440 | $(msvc_link) |
439 | $(msvc_link) |
441 | $(KOSILKA_OBJECTS): .obj.kosilka/%.obj: $(PROGS)/games/kosilka/%.cpp $(KOSILKA_H_FILES) Makefile.msvc | .obj.kosilka |
440 | $(KOSILKA_OBJECTS): .obj.kosilka/%.obj: $(PROGS)/games/kosilka/%.cpp $(KOSILKA_H_FILES) Makefile.msvc | .obj.kosilka |
442 | $(msvc_compile) |
441 | $(msvc_compile) |
443 | .obj.kosilka: |
442 | .obj.kosilka: |
444 | mkdir -p .obj.kosilka |
443 | mkdir -p .obj.kosilka |
445 | 444 | ||
446 | include Makefile.gcc |
445 | include Makefile.gcc |
447 | 446 | ||
448 | # Rules for shell |
447 | # Rules for shell |
449 | shell: .obj.shell/start.o .obj.shell/shell.o .obj.shell/kolibri.o .obj.shell/stdlib.o .obj.shell/string.o .obj.shell/ctype.o \ |
448 | shell: .obj.shell/start.o .obj.shell/shell.o .obj.shell/kolibri.o .obj.shell/stdlib.o .obj.shell/string.o .obj.shell/ctype.o \ |
450 | $(PROGS)/system/shell/kolibri.ld |
449 | $(PROGS)/system/shell/kolibri.ld |
451 | $(call gcc_link,$(PROGS)/system/shell/kolibri.ld) |
450 | $(call gcc_link,$(PROGS)/system/shell/kolibri.ld) |
452 | .obj.shell/shell.o: $(PROGS)/system/shell/shell.c \ |
451 | .obj.shell/shell.o: $(PROGS)/system/shell/shell.c \ |
453 | $(PROGS)/system/shell/all.h \ |
452 | $(PROGS)/system/shell/all.h \ |
454 | $(PROGS)/system/shell/system/*.h \ |
453 | $(PROGS)/system/shell/system/*.h \ |
455 | $(PROGS)/system/shell/cmd/*.c \ |
454 | $(PROGS)/system/shell/cmd/*.c \ |
456 | $(PROGS)/system/shell/modules/*.c \ |
455 | $(PROGS)/system/shell/modules/*.c \ |
457 | $(PROGS)/system/shell/locale/rus/globals.h \ |
456 | $(PROGS)/system/shell/locale/rus/globals.h \ |
458 | Makefile.gcc | .obj.shell |
457 | Makefile.gcc | .obj.shell |
459 | $(gcc_compile) |
458 | $(gcc_compile) |
460 | .obj.shell/kolibri.o .obj.shell/stdlib.o .obj.shell/string.o .obj.shell/ctype.o: .obj.shell/%.o: \ |
459 | .obj.shell/kolibri.o .obj.shell/stdlib.o .obj.shell/string.o .obj.shell/ctype.o: .obj.shell/%.o: \ |
461 | $(PROGS)/system/shell/system/%.c $(PROGS)/system/shell/system/*.h \ |
460 | $(PROGS)/system/shell/system/%.c $(PROGS)/system/shell/system/*.h \ |
462 | Makefile.gcc | .obj.shell |
461 | Makefile.gcc | .obj.shell |
463 | $(gcc_compile) |
462 | $(gcc_compile) |
464 | .obj.shell/start.o: $(PROGS)/system/shell/start.asm | .obj.shell |
463 | .obj.shell/start.o: $(PROGS)/system/shell/start.asm | .obj.shell |
465 | fasm $< $@ |
464 | fasm $< $@ |
466 | .obj.shell: |
465 | .obj.shell: |
467 | mkdir -p .obj.shell |
466 | mkdir -p .obj.shell |
468 | 467 | ||
469 | # Rules for e80 |
468 | # Rules for e80 |
470 | E80DIR=$(PROGS)/emulator/e80/trunk |
469 | E80DIR=$(PROGS)/emulator/e80/trunk |
471 | e80: .obj.e80/start.o .obj.e80/kolibri.o .obj.e80/stdlib.o .obj.e80/string.o .obj.e80/z80.o .obj.e80/e80.o |
470 | e80: .obj.e80/start.o .obj.e80/kolibri.o .obj.e80/stdlib.o .obj.e80/string.o .obj.e80/z80.o .obj.e80/e80.o |
472 | $(call gcc_link,$(E80DIR)/kolibri.ld) |
471 | $(call gcc_link,$(E80DIR)/kolibri.ld) |
473 | .obj.e80/e80.o: $(E80DIR)/e80.c $(E80DIR)/48.h \ |
472 | .obj.e80/e80.o: $(E80DIR)/e80.c $(E80DIR)/48.h \ |
474 | $(E80DIR)/system/*.h $(E80DIR)/system/msgbox.c \ |
473 | $(E80DIR)/system/*.h $(E80DIR)/system/msgbox.c \ |
475 | $(E80DIR)/z80/z80.h Makefile.gcc | .obj.e80 |
474 | $(E80DIR)/z80/z80.h Makefile.gcc | .obj.e80 |
476 | $(gcc_compile) |
475 | $(gcc_compile) |
477 | .obj.e80/kolibri.o .obj.e80/stdlib.o .obj.e80/string.o: .obj.e80/%.o: \ |
476 | .obj.e80/kolibri.o .obj.e80/stdlib.o .obj.e80/string.o: .obj.e80/%.o: \ |
478 | $(E80DIR)/system/%.c $(E80DIR)/system/*.h Makefile.gcc | .obj.e80 |
477 | $(E80DIR)/system/%.c $(E80DIR)/system/*.h Makefile.gcc | .obj.e80 |
479 | $(gcc_compile) |
478 | $(gcc_compile) |
480 | .obj.e80/z80.o: $(E80DIR)/z80/z80.c $(E80DIR)/z80/* |
479 | .obj.e80/z80.o: $(E80DIR)/z80/z80.c $(E80DIR)/z80/* |
481 | $(gcc_compile) |
480 | $(gcc_compile) |
482 | .obj.e80/start.o: $(E80DIR)/asm_code.asm | .obj.e80 |
481 | .obj.e80/start.o: $(E80DIR)/asm_code.asm | .obj.e80 |
483 | fasm $< $@ |
482 | fasm $< $@ |
484 | .obj.e80: |
483 | .obj.e80: |
485 | mkdir -p .obj.e80 |
484 | mkdir -p .obj.e80 |
486 | 485 | ||
487 | # Rules for sdk/sound, used by media/ac97snd |
486 | # Rules for sdk/sound, used by media/ac97snd |
488 | SOUNDDIR=$(PROGS)/develop/sdk/trunk/sound/src |
487 | SOUNDDIR=$(PROGS)/develop/sdk/trunk/sound/src |
489 | SOUND_OBJECTS:=$(patsubst $(SOUNDDIR)/%.asm,.sdk/%.obj,$(wildcard $(SOUNDDIR)/*.asm)) |
488 | SOUND_OBJECTS:=$(patsubst $(SOUNDDIR)/%.asm,.sdk/%.obj,$(wildcard $(SOUNDDIR)/*.asm)) |
490 | SOUND_INC_FILES:=$(wildcard $(SOUNDDIR)/*.inc) |
489 | SOUND_INC_FILES:=$(wildcard $(SOUNDDIR)/*.inc) |
491 | .sdk/sound.lib: $(SOUND_OBJECTS) |
490 | .sdk/sound.lib: $(SOUND_OBJECTS) |
492 | win32-link /lib /out:$@ $^ |
491 | win32-link /lib /out:$@ $^ |
493 | $(SOUND_OBJECTS): .sdk/%.obj: $(SOUNDDIR)/%.asm $(SOUND_INC_FILES) | .sdk |
492 | $(SOUND_OBJECTS): .sdk/%.obj: $(SOUNDDIR)/%.asm $(SOUND_INC_FILES) | .sdk |
494 | fasm $< $@ |
493 | fasm $< $@ |
495 | .sdk: |
494 | .sdk: |
496 | mkdir -p .sdk |
495 | mkdir -p .sdk |
497 | # Rules for media/ac97snd |
496 | # Rules for media/ac97snd |
498 | AC97DIR=$(PROGS)/media/ac97snd |
497 | AC97DIR=$(PROGS)/media/ac97snd |
499 | media/ac97snd: .obj.ac97snd/ac97snd.exe |
498 | media/ac97snd: .obj.ac97snd/ac97snd.exe |
500 | $(msvc_final) |
499 | $(msvc_final) |
501 | .obj.ac97snd/ac97snd.exe: .obj.ac97snd/ac97wav.obj .obj.ac97snd/crt.obj .obj.ac97snd/k_lib.obj \ |
500 | .obj.ac97snd/ac97snd.exe: .obj.ac97snd/ac97wav.obj .obj.ac97snd/crt.obj .obj.ac97snd/k_lib.obj \ |
502 | .obj.ac97snd/mpg.lib .sdk/sound.lib $(AC97DIR)/ufmod.obj |
501 | .obj.ac97snd/mpg.lib .sdk/sound.lib $(AC97DIR)/ufmod.obj |
503 | $(msvc_link) |
502 | $(msvc_link) |
504 | .obj.ac97snd/ac97wav.obj: $(AC97DIR)/ac97snd/ac97wav.c \ |
503 | .obj.ac97snd/ac97wav.obj: $(AC97DIR)/ac97snd/ac97wav.c \ |
505 | $(AC97DIR)/kolibri.h $(AC97DIR)/ac97snd/ac97wav.h $(AC97DIR)/mpg/mpg123.h \ |
504 | $(AC97DIR)/kolibri.h $(AC97DIR)/ac97snd/ac97wav.h $(AC97DIR)/mpg/mpg123.h \ |
506 | $(AC97DIR)/sound.h $(AC97DIR)/ufmod-codec.h Makefile.msvc | .obj.ac97snd |
505 | $(AC97DIR)/sound.h $(AC97DIR)/ufmod-codec.h Makefile.msvc | .obj.ac97snd |
507 | $(msvc_compile) |
506 | $(msvc_compile) |
508 | .obj.ac97snd/crt.obj: $(AC97DIR)/ac97snd/crt.c $(AC97DIR)/ac97snd/crt.h Makefile.msvc | .obj.ac97snd |
507 | .obj.ac97snd/crt.obj: $(AC97DIR)/ac97snd/crt.c $(AC97DIR)/ac97snd/crt.h Makefile.msvc | .obj.ac97snd |
509 | $(msvc_compile) |
508 | $(msvc_compile) |
510 | .obj.ac97snd/k_lib.obj: $(AC97DIR)/ac97snd/k_lib.asm $(AC97DIR)/ac97snd/proc32.inc | .obj.ac97snd |
509 | .obj.ac97snd/k_lib.obj: $(AC97DIR)/ac97snd/k_lib.asm $(AC97DIR)/ac97snd/proc32.inc | .obj.ac97snd |
511 | fasm $< $@ |
510 | fasm $< $@ |
512 | AC97SND_MPG_C_FILES:=$(wildcard $(AC97DIR)/mpg/*.c) |
511 | AC97SND_MPG_C_FILES:=$(wildcard $(AC97DIR)/mpg/*.c) |
513 | AC97SND_MPG_H_FILES:=$(wildcard $(AC97DIR)/mpg/*.h) |
512 | AC97SND_MPG_H_FILES:=$(wildcard $(AC97DIR)/mpg/*.h) |
514 | AC97SND_MPG_C_OBJECTS:=$(patsubst $(AC97DIR)/mpg/%.c,.obj.ac97snd/%.o,$(AC97SND_MPG_C_FILES)) |
513 | AC97SND_MPG_C_OBJECTS:=$(patsubst $(AC97DIR)/mpg/%.c,.obj.ac97snd/%.o,$(AC97SND_MPG_C_FILES)) |
515 | .obj.ac97snd/mpg.lib: $(AC97SND_MPG_C_OBJECTS) .obj.ac97snd/pow.obj |
514 | .obj.ac97snd/mpg.lib: $(AC97SND_MPG_C_OBJECTS) .obj.ac97snd/pow.obj |
516 | win32-link /lib /ltcg /out:$@ $^ |
515 | win32-link /lib /ltcg /out:$@ $^ |
517 | $(AC97SND_MPG_C_OBJECTS): .obj.ac97snd/%.o: $(AC97DIR)/mpg/%.c $(AC97SND_MPG_H_FILES) Makefile.msvc | .obj.ac97snd |
516 | $(AC97SND_MPG_C_OBJECTS): .obj.ac97snd/%.o: $(AC97DIR)/mpg/%.c $(AC97SND_MPG_H_FILES) Makefile.msvc | .obj.ac97snd |
518 | $(msvc_compile) |
517 | $(msvc_compile) |
519 | .obj.ac97snd/pow.obj: $(AC97DIR)/mpg/pow.asm $(AC97DIR)/mpg/proc32.inc | .obj.ac97snd |
518 | .obj.ac97snd/pow.obj: $(AC97DIR)/mpg/pow.asm $(AC97DIR)/mpg/proc32.inc | .obj.ac97snd |
520 | fasm $< $@ |
519 | fasm $< $@ |
521 | .obj.ac97snd: |
520 | .obj.ac97snd: |
522 | mkdir -p .obj.ac97snd |
521 | mkdir -p .obj.ac97snd |
523 | 522 | ||
524 | # Rules for atikms.dll |
523 | # Rules for atikms.dll |
525 | # Use Makefile from $(REPOSITORY)/drivers/ddk and $(REPOSITORY)/drivers/video/drm/radeon |
524 | # Use Makefile from $(REPOSITORY)/drivers/ddk and $(REPOSITORY)/drivers/video/drm/radeon |
526 | # However, dependencies must be duplicated - I don't know how to avoid this |
525 | # However, dependencies must be duplicated - I don't know how to avoid this |
527 | # without need to rebuild kolibri.img at every iteration... |
526 | # without need to rebuild kolibri.img at every iteration... |
528 | # Note that we are going to write in the directory shared |
527 | # Note that we are going to write in the directory shared |
529 | # between all Makefiles, so we need locked operations. |
528 | # between all Makefiles, so we need locked operations. |
530 | drivers/atikms.dll: $(REPOSITORY)/drivers/video/drm/radeon/atikms.dll drivers/.dir |
529 | drivers/atikms.dll: $(REPOSITORY)/drivers/video/drm/radeon/atikms.dll drivers/.dir |
531 | kpack --nologo $< $@ |
530 | kpack --nologo $< $@ |
532 | $(REPOSITORY)/drivers/video/drm/radeon/atikms.dll: $(REPOSITORY)/drivers/video/drm/radeon/Makefile.lto |
531 | $(REPOSITORY)/drivers/video/drm/radeon/atikms.dll: $(REPOSITORY)/drivers/video/drm/radeon/Makefile.lto |
533 | flock $(REPOSITORY)/drivers/video/drm/radeon/.lock \ |
532 | flock $(REPOSITORY)/drivers/video/drm/radeon/.lock \ |
534 | $(MAKE) CC=win32-gcc45 AS=win32-as LD=win32-ld AR=win32-ar FASM=fasm -C $(REPOSITORY)/drivers/video/drm/radeon -f Makefile.lto |
533 | $(MAKE) CC=win32-gcc45 AS=win32-as LD=win32-ld AR=win32-ar FASM=fasm -C $(REPOSITORY)/drivers/video/drm/radeon -f Makefile.lto |
535 | $(REPOSITORY)/drivers/ddk/libddk.a: $(REPOSITORY)/drivers/ddk/Makefile |
534 | $(REPOSITORY)/drivers/ddk/libddk.a: $(REPOSITORY)/drivers/ddk/Makefile |
536 | flock $(REPOSITORY)/drivers/ddk/.lock \ |
535 | flock $(REPOSITORY)/drivers/ddk/.lock \ |
537 | $(MAKE) CC=win32-gcc45 AS=win32-as LD=win32-ld AR=win32-ar FASM=fasm -C $(REPOSITORY)/drivers/ddk libddk.a |
536 | $(MAKE) CC=win32-gcc45 AS=win32-as LD=win32-ld AR=win32-ar FASM=fasm -C $(REPOSITORY)/drivers/ddk libddk.a |
538 | $(REPOSITORY)/drivers/ddk/libcore.a: $(REPOSITORY)/drivers/ddk/Makefile |
537 | $(REPOSITORY)/drivers/ddk/libcore.a: $(REPOSITORY)/drivers/ddk/Makefile |
539 | flock $(REPOSITORY)/drivers/ddk/.lock \ |
538 | flock $(REPOSITORY)/drivers/ddk/.lock \ |
540 | $(MAKE) CC=win32-gcc45 AS=win32-as LD=win32-ld AR=win32-ar FASM=fasm -C $(REPOSITORY)/drivers/ddk libcore.a |
539 | $(MAKE) CC=win32-gcc45 AS=win32-as LD=win32-ld AR=win32-ar FASM=fasm -C $(REPOSITORY)/drivers/ddk libcore.a |
541 | # dependencies |
540 | # dependencies |
542 | $(REPOSITORY)/drivers/video/drm/radeon/atikms.dll: \ |
541 | $(REPOSITORY)/drivers/video/drm/radeon/atikms.dll: \ |
543 | $(REPOSITORY)/drivers/video/drm/radeon/atikms.lds \ |
542 | $(REPOSITORY)/drivers/video/drm/radeon/atikms.lds \ |
544 | $(REPOSITORY)/drivers/ddk/libddk.a \ |
543 | $(REPOSITORY)/drivers/ddk/libddk.a \ |
545 | $(REPOSITORY)/drivers/ddk/libcore.a \ |
544 | $(REPOSITORY)/drivers/ddk/libcore.a \ |
546 | $(REPOSITORY)/drivers/video/drm/radeon/*.[Sch] \ |
545 | $(REPOSITORY)/drivers/video/drm/radeon/*.[Sch] \ |
547 | $(REPOSITORY)/drivers/video/drm/radeon/*.asm \ |
546 | $(REPOSITORY)/drivers/video/drm/radeon/*.asm \ |
548 | $(REPOSITORY)/drivers/video/drm/radeon/Makefile \ |
547 | $(REPOSITORY)/drivers/video/drm/radeon/Makefile \ |
549 | $(REPOSITORY)/drivers/video/drm/radeon/firmware/*.bin \ |
548 | $(REPOSITORY)/drivers/video/drm/radeon/firmware/*.bin \ |
550 | $(REPOSITORY)/drivers/include/*.h \ |
549 | $(REPOSITORY)/drivers/include/*.h \ |
551 | $(REPOSITORY)/drivers/include/*/*.h \ |
550 | $(REPOSITORY)/drivers/include/*/*.h \ |
552 | $(REPOSITORY)/drivers/include/*/*/*.h \ |
551 | $(REPOSITORY)/drivers/include/*/*/*.h \ |
553 | $(REPOSITORY)/drivers/include/*/*/*/*.h |
552 | $(REPOSITORY)/drivers/include/*/*/*/*.h |
554 | $(REPOSITORY)/drivers/ddk/libddk.a: \ |
553 | $(REPOSITORY)/drivers/ddk/libddk.a: \ |
555 | $(REPOSITORY)/drivers/ddk/*/* \ |
554 | $(REPOSITORY)/drivers/ddk/*/* \ |
556 | $(REPOSITORY)/drivers/include/*.h \ |
555 | $(REPOSITORY)/drivers/include/*.h \ |
557 | $(REPOSITORY)/drivers/include/*/*.h \ |
556 | $(REPOSITORY)/drivers/include/*/*.h \ |
558 | $(REPOSITORY)/drivers/include/*/*/*.h \ |
557 | $(REPOSITORY)/drivers/include/*/*/*.h \ |
559 | $(REPOSITORY)/drivers/include/*/*/*/*.h |
558 | $(REPOSITORY)/drivers/include/*/*/*/*.h |
560 | $(REPOSITORY)/drivers/ddk/libcore.a: \ |
559 | $(REPOSITORY)/drivers/ddk/libcore.a: \ |
561 | $(REPOSITORY)/drivers/ddk/core.S>>>>>>> |
560 | $(REPOSITORY)/drivers/ddk/core.S>>>>>>> |