Rev 2702 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2702 | Rev 2723 | ||
---|---|---|---|
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/branches/net |
9 | KERNEL:=$(REPOSITORY)/kernel/branches/net |
10 | TRUNKKERNEL:=$(REPOSITORY)/kernel/trunk |
10 | TRUNKKERNEL:=$(REPOSITORY)/kernel/trunk |
11 | PROGS:=$(REPOSITORY)/programs |
11 | PROGS:=$(REPOSITORY)/programs |
12 | NETPROGS:=$(REPOSITORY)/kernel/branches/net/applications |
12 | NETPROGS:=$(REPOSITORY)/kernel/branches/net/applications |
13 | 13 | ||
14 | # Docpak requires some documents; we place them |
14 | # Docpak requires some documents; we place them |
15 | # into 'docs' subdir and communicate with FASM |
15 | # into 'docs' subdir and communicate with FASM |
16 | # through environment var DOCDIR. |
16 | # through environment var DOCDIR. |
17 | DOCDIR:=docs/ |
17 | DOCDIR:=docs/ |
18 | export DOCDIR |
18 | export DOCDIR |
19 | 19 | ||
20 | # Because most programs are written in FASM and have |
20 | # Because most programs are written in FASM and have |
21 | # the common structure of one main .asm file possibly including |
21 | # the common structure of one main .asm file possibly including |
22 | # several .inc files, we handle this case separately. |
22 | # several .inc files, we handle this case separately. |
23 | # Namely, we organize one big list of such programs |
23 | # Namely, we organize one big list of such programs |
24 | # (FASM_PROGRAMS, see below) containing name of local binary file, |
24 | # (FASM_PROGRAMS, see below) containing name of local binary file, |
25 | # name of file inside kolibri.img and name of the source file. |
25 | # name of file inside kolibri.img and name of the source file. |
26 | # This list is maintained by hand, and the rest is done with some macroses... |
26 | # This list is maintained by hand, and the rest is done with some macroses... |
27 | # well, slightly complicated macroses - however, you do not need to |
27 | # well, slightly complicated macroses - however, you do not need to |
28 | # understand them in order to maintain the list. |
28 | # understand them in order to maintain the list. |
29 | # To add a FASM program with one .asm file, just |
29 | # To add a FASM program with one .asm file, just |
30 | # add the corresponding item to the list and enjoy |
30 | # add the corresponding item to the list and enjoy |
31 | # the power of GNU make. |
31 | # the power of GNU make. |
32 | 32 | ||
33 | # The list of all FASM programs with one main FASM file. |
33 | # The list of all FASM programs with one main FASM file. |
34 | # Every item consists of three parts, separated by ':'. |
34 | # Every item consists of three parts, separated by ':'. |
35 | # First part is the real name of binary file in $(BUILD_DIR) |
35 | # First part is the real name of binary file in $(BUILD_DIR) |
36 | # as it should be produced by make. |
36 | # as it should be produced by make. |
37 | # Second part is the name of a file inside kolibri.img, |
37 | # Second part is the name of a file inside kolibri.img, |
38 | # usually uppercased version of first part - to save space |
38 | # usually uppercased version of first part - to save space |
39 | # for FAT filesystem. |
39 | # for FAT filesystem. |
40 | # Third part is the name of the source file. |
40 | # Third part is the name of the source file. |
41 | # Spaces separate items, so spaces in names should be |
41 | # Spaces separate items, so spaces in names should be |
42 | # represented as '|'. |
42 | # represented as '|'. |
43 | FASM_PROGRAMS:=\ |
43 | FASM_PROGRAMS:=\ |
44 | @clip:@CLIP:$(PROGS)/system/clip/trunk/@clip.ASM \ |
44 | @clip:@CLIP:$(PROGS)/system/clip/trunk/@clip.ASM \ |
45 | @menu:@MENU:$(PROGS)/system/menu/trunk/menu.asm \ |
45 | @menu:@MENU:$(PROGS)/system/menu/trunk/menu.asm \ |
46 | @notify:@NOTIFY:$(PROGS)/system/notify/trunk/@notify.asm \ |
46 | @notify:@NOTIFY:$(PROGS)/system/notify/trunk/@notify.asm \ |
47 | @panel:@PANEL:$(PROGS)/system/panel/trunk/@PANEL.ASM \ |
47 | @panel:@PANEL:$(PROGS)/system/panel/trunk/@PANEL.ASM \ |
48 | @rb:@RB:$(PROGS)/system/rb/trunk/@RB.ASM \ |
48 | @rb:@RB:$(PROGS)/system/rb/trunk/@RB.ASM \ |
49 | @ss:@SS:$(PROGS)/system/ss/trunk/@ss.asm\ |
49 | @ss:@SS:$(PROGS)/system/ss/trunk/@ss.asm\ |
50 | refrscrn:REFRSCRN:$(PROGS)/system/refrscrn/refrscrn.asm \ |
50 | refrscrn:REFRSCRN:$(PROGS)/system/refrscrn/refrscrn.asm \ |
51 | asciivju:ASCIIVJU:$(PROGS)/develop/asciivju/trunk/asciivju.asm \ |
51 | asciivju:ASCIIVJU:$(PROGS)/develop/asciivju/trunk/asciivju.asm \ |
52 | calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \ |
52 | calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \ |
53 | calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.asm \ |
53 | calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.asm \ |
54 | commouse:COMMOUSE:$(PROGS)/system/commouse/trunk/commouse.asm \ |
54 | commouse:COMMOUSE:$(PROGS)/system/commouse/trunk/commouse.asm \ |
55 | cpu:CPU:$(PROGS)/system/cpu/trunk/cpu.asm \ |
55 | cpu:CPU:$(PROGS)/system/cpu/trunk/cpu.asm \ |
56 | cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \ |
56 | cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \ |
57 | desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \ |
57 | desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \ |
58 | disptest:DISPTEST:$(PROGS)/system/disptest/trunk/disptest.ASM \ |
58 | disptest:DISPTEST:$(PROGS)/system/disptest/trunk/disptest.ASM \ |
59 | docpak:DOCPAK:$(PROGS)/system/docpack/trunk/docpack.asm \ |
59 | docpak:DOCPAK:$(PROGS)/system/docpack/trunk/docpack.asm \ |
60 | end:END:$(PROGS)/system/end/light/end.asm \ |
60 | end:END:$(PROGS)/system/end/light/end.asm \ |
61 | gmon:GMON:$(PROGS)/system/gmon/gmon.asm \ |
61 | gmon:GMON:$(PROGS)/system/gmon/gmon.asm \ |
62 | hdd_info:HDD_INFO:$(PROGS)/system/hdd_info/trunk/hdd_info.asm \ |
62 | hdd_info:HDD_INFO:$(PROGS)/system/hdd_info/trunk/hdd_info.asm \ |
63 | icon:ICON:$(PROGS)/system/icon/trunk/icon.asm \ |
63 | icon:ICON:$(PROGS)/system/icon/trunk/icon.asm \ |
64 | kbd:KBD:$(PROGS)/system/kbd/trunk/kbd.ASM \ |
64 | kbd:KBD:$(PROGS)/system/kbd/trunk/kbd.ASM \ |
65 | kpack:KPACK:$(PROGS)/other/kpack/trunk/kpack.asm \ |
65 | kpack:KPACK:$(PROGS)/other/kpack/trunk/kpack.asm \ |
66 | launcher:LAUNCHER:$(PROGS)/system/launcher/trunk/launcher.asm \ |
66 | launcher:LAUNCHER:$(PROGS)/system/launcher/trunk/launcher.asm \ |
67 | magnify:MAGNIFY:$(PROGS)/demos/magnify/trunk/magnify.asm \ |
67 | magnify:MAGNIFY:$(PROGS)/demos/magnify/trunk/magnify.asm \ |
68 | mgb:MGB:$(PROGS)/system/mgb/trunk/mgb.asm \ |
68 | mgb:MGB:$(PROGS)/system/mgb/trunk/mgb.asm \ |
69 | mousemul:MOUSEMUL:$(PROGS)/system/mousemul/trunk/mousemul.asm \ |
69 | mousemul:MOUSEMUL:$(PROGS)/system/mousemul/trunk/mousemul.asm \ |
70 | mykey:MYKEY:$(PROGS)/system/MyKey/trunk/MyKey.asm \ |
70 | mykey:MYKEY:$(PROGS)/system/MyKey/trunk/MyKey.asm \ |
71 | pcidev:PCIDEV:$(PROGS)/system/pcidev/trunk/PCIDEV.ASM \ |
71 | pcidev:PCIDEV:$(PROGS)/system/pcidev/trunk/PCIDEV.ASM \ |
72 | period:PERIOD:$(PROGS)/other/period/trunk/period.asm \ |
72 | period:PERIOD:$(PROGS)/other/period/trunk/period.asm \ |
73 | pic4:PIC4:$(PROGS)/media/pic4/trunk/pic4.asm \ |
73 | pic4:PIC4:$(PROGS)/media/pic4/trunk/pic4.asm \ |
74 | rdsave:RDSAVE:$(PROGS)/system/rdsave/trunk/rdsave.asm \ |
74 | rdsave:RDSAVE:$(PROGS)/system/rdsave/trunk/rdsave.asm \ |
75 | rtfread:RTFREAD:$(PROGS)/other/rtfread/trunk/rtfread.asm \ |
75 | rtfread:RTFREAD:$(PROGS)/other/rtfread/trunk/rtfread.asm \ |
76 | run:RUN:$(PROGS)/system/run/trunk/run.asm \ |
76 | run:RUN:$(PROGS)/system/run/trunk/run.asm \ |
77 | scrshoot:SCRSHOOT:$(PROGS)/media/scrshoot/scrshoot.asm \ |
77 | scrshoot:SCRSHOOT:$(PROGS)/media/scrshoot/scrshoot.asm \ |
78 | setup:SETUP:$(PROGS)/system/setup/trunk/setup.asm \ |
78 | setup:SETUP:$(PROGS)/system/setup/trunk/setup.asm \ |
79 | test:TEST:$(PROGS)/system/test/trunk/test.asm \ |
79 | test:TEST:$(PROGS)/system/test/trunk/test.asm \ |
80 | tinypad:TINYPAD:$(PROGS)/develop/tinypad/trunk/tinypad.asm \ |
80 | tinypad:TINYPAD:$(PROGS)/develop/tinypad/trunk/tinypad.asm \ |
- | 81 | t_edit:T_EDIT:$(PROGS)/other/t_edit/t_edit.asm \ |
|
81 | zkey:ZKEY:$(PROGS)/system/zkey/trunk/ZKEY.ASM \ |
82 | zkey:ZKEY:$(PROGS)/system/zkey/trunk/ZKEY.ASM \ |
82 | develop/board:DEVELOP/BOARD:$(PROGS)/system/board/trunk/board.asm \ |
83 | develop/board:DEVELOP/BOARD:$(PROGS)/system/board/trunk/board.asm \ |
83 | develop/cObj:DEVELOP/cObj:$(PROGS)/develop/cObj/trunk/cObj.asm \ |
84 | develop/cObj:DEVELOP/cObj:$(PROGS)/develop/cObj/trunk/cObj.asm \ |
84 | develop/fasm:DEVELOP/FASM:$(PROGS)/develop/fasm/trunk/fasm.asm \ |
85 | develop/fasm:DEVELOP/FASM:$(PROGS)/develop/fasm/trunk/fasm.asm \ |
85 | develop/h2d2b:DEVELOP/H2D2B:$(PROGS)/develop/h2d2b/trunk/h2d2b.asm \ |
86 | develop/h2d2b:DEVELOP/H2D2B:$(PROGS)/develop/h2d2b/trunk/h2d2b.asm \ |
86 | develop/heed:DEVELOP/HEED:$(PROGS)/develop/heed/trunk/heed.asm \ |
87 | develop/heed:DEVELOP/HEED:$(PROGS)/develop/heed/trunk/heed.asm \ |
87 | develop/ipc:DEVELOP/IPC:$(PROGS)/network/ipc/trunk/ipc.asm \ |
88 | develop/ipc:DEVELOP/IPC:$(PROGS)/network/ipc/trunk/ipc.asm \ |
88 | develop/keyascii:DEVELOP/KEYASCII:$(PROGS)/develop/keyascii/trunk/keyascii.asm \ |
89 | develop/keyascii:DEVELOP/KEYASCII:$(PROGS)/develop/keyascii/trunk/keyascii.asm \ |
89 | develop/mtdbg:DEVELOP/MTDBG:$(PROGS)/develop/mtdbg/mtdbg.asm \ |
90 | develop/mtdbg:DEVELOP/MTDBG:$(PROGS)/develop/mtdbg/mtdbg.asm \ |
90 | develop/scancode:DEVELOP/SCANCODE:$(PROGS)/develop/scancode/trunk/scancode.asm \ |
91 | develop/scancode:DEVELOP/SCANCODE:$(PROGS)/develop/scancode/trunk/scancode.asm \ |
91 | develop/test_gets:DEVELOP/test_gets:$(PROGS)/develop/libraries/console/examples/test_gets.asm \ |
92 | develop/test_gets:DEVELOP/test_gets:$(PROGS)/develop/libraries/console/examples/test_gets.asm \ |
92 | develop/testcon2:DEVELOP/TESTCON2:$(PROGS)/develop/libraries/console/examples/testcon2.asm \ |
93 | develop/testcon2:DEVELOP/TESTCON2:$(PROGS)/develop/libraries/console/examples/testcon2.asm \ |
93 | develop/thread:DEVELOP/THREAD:$(PROGS)/develop/examples/thread/trunk/thread.asm \ |
94 | develop/thread:DEVELOP/THREAD:$(PROGS)/develop/examples/thread/trunk/thread.asm \ |
94 | drivers/com_mouse.obj:DRIVERS/COM_MOUSE.OBJ:$(TRUNKKERNEL)/drivers/com_mouse.asm \ |
95 | drivers/com_mouse.obj:DRIVERS/COM_MOUSE.OBJ:$(TRUNKKERNEL)/drivers/com_mouse.asm \ |
95 | drivers/emu10k1x.obj:DRIVERS/EMU10K1X.OBJ:$(TRUNKKERNEL)/drivers/emu10k1x.asm \ |
96 | drivers/emu10k1x.obj:DRIVERS/EMU10K1X.OBJ:$(TRUNKKERNEL)/drivers/emu10k1x.asm \ |
96 | drivers/fm801.obj:DRIVERS/FM801.OBJ:$(TRUNKKERNEL)/drivers/fm801.asm \ |
97 | drivers/fm801.obj:DRIVERS/FM801.OBJ:$(TRUNKKERNEL)/drivers/fm801.asm \ |
97 | drivers/infinity.obj:DRIVERS/INFINITY.OBJ:$(TRUNKKERNEL)/drivers/infinity.asm \ |
98 | drivers/infinity.obj:DRIVERS/INFINITY.OBJ:$(TRUNKKERNEL)/drivers/infinity.asm \ |
98 | drivers/ps2mouse.obj:DRIVERS/PS2MOUSE.OBJ:$(REPOSITORY)/drivers/mouse/ps2mouse4d/trunk/ps2mouse.asm \ |
99 | drivers/ps2mouse.obj:DRIVERS/PS2MOUSE.OBJ:$(REPOSITORY)/drivers/mouse/ps2mouse4d/trunk/ps2mouse.asm \ |
99 | drivers/sb16.obj:DRIVERS/SB16.OBJ:$(TRUNKKERNEL)/drivers/sb16/sb16.asm \ |
100 | drivers/sb16.obj:DRIVERS/SB16.OBJ:$(TRUNKKERNEL)/drivers/sb16/sb16.asm \ |
100 | drivers/sound.obj:DRIVERS/SOUND.OBJ:$(TRUNKKERNEL)/drivers/sound.asm \ |
101 | drivers/sound.obj:DRIVERS/SOUND.OBJ:$(TRUNKKERNEL)/drivers/sound.asm \ |
101 | drivers/vt8235.obj:DRIVERS/VT8235.OBJ:$(TRUNKKERNEL)/drivers/vt823x.asm \ |
102 | drivers/vt8235.obj:DRIVERS/VT8235.OBJ:$(TRUNKKERNEL)/drivers/vt823x.asm \ |
102 | File|Managers/kfar:File|Managers/KFAR:$(PROGS)/fs/kfar/trunk/kfar.asm \ |
103 | File|Managers/kfar:File|Managers/KFAR:$(PROGS)/fs/kfar/trunk/kfar.asm \ |
103 | File|Managers/kfm:File|Managers/KFM:$(PROGS)/fs/kfm/trunk/kfm.asm \ |
104 | File|Managers/kfm:File|Managers/KFM:$(PROGS)/fs/kfm/trunk/kfm.asm \ |
104 | File|Managers/opendial:File|Managers/OPENDIAL:$(PROGS)/fs/opendial/opendial.asm \ |
105 | File|Managers/opendial:File|Managers/OPENDIAL:$(PROGS)/fs/opendial/opendial.asm \ |
- | 106 | info/asm.syn:INFO/ASM.SYN:$(PROGS)/other/t_edit/info/asm_syn.asm \ |
|
- | 107 | info/cpp_kol_cla.syn:INFO/CPP_KOL_CLA.SYN:$(PROGS)/other/t_edit/info/cpp_kol_cla_syn.asm \ |
|
- | 108 | info/cpp_kol_dar.syn:INFO/CPP_KOL_DAR.SYN:$(PROGS)/other/t_edit/info/cpp_kol_dar_syn.asm \ |
|
- | 109 | info/cpp_kol_def.syn:INFO/CPP_KOL_DEF.SYN:$(PROGS)/other/t_edit/info/cpp_kol_def_syn.asm \ |
|
- | 110 | info/default.syn:INFO/DEFAULT.SYN:$(PROGS)/other/t_edit/info/default_syn.asm \ |
|
- | 111 | info/html.syn:INFO/HTML.SYN:$(PROGS)/other/t_edit/info/html_syn.asm \ |
|
- | 112 | info/ini_files.syn:INFO/INI_FILES.SYN:$(PROGS)/other/t_edit/info/ini_files_syn.asm \ |
|
- | 113 | info/win_const.syn:INFO/WIN_CONST.SYN:$(PROGS)/other/t_edit/info/win_const_syn.asm \ |
|
105 | lib/archiver.obj:LIB/ARCHIVER.OBJ:$(PROGS)/fs/kfar/trunk/kfar_arc/kfar_arc.asm \ |
114 | lib/archiver.obj:LIB/ARCHIVER.OBJ:$(PROGS)/fs/kfar/trunk/kfar_arc/kfar_arc.asm \ |
106 | lib/box_lib.obj:LIB/BOX_LIB.OBJ:$(PROGS)/develop/libraries/box_lib/trunk/box_lib.asm \ |
115 | lib/box_lib.obj:LIB/BOX_LIB.OBJ:$(PROGS)/develop/libraries/box_lib/trunk/box_lib.asm \ |
107 | lib/console.obj:LIB/CONSOLE.OBJ:$(PROGS)/develop/libraries/console/console.asm \ |
116 | lib/console.obj:LIB/CONSOLE.OBJ:$(PROGS)/develop/libraries/console/console.asm \ |
108 | lib/libgfx.obj:LIB/LIBGFX.OBJ:$(PROGS)/develop/libraries/libs-dev/libgfx/libgfx.asm \ |
117 | lib/libgfx.obj:LIB/LIBGFX.OBJ:$(PROGS)/develop/libraries/libs-dev/libgfx/libgfx.asm \ |
109 | lib/libimg.obj:LIB/LIBIMG.OBJ:$(PROGS)/develop/libraries/libs-dev/libimg/libimg.asm \ |
118 | lib/libimg.obj:LIB/LIBIMG.OBJ:$(PROGS)/develop/libraries/libs-dev/libimg/libimg.asm \ |
110 | lib/libini.obj:LIB/LIBINI.OBJ:$(PROGS)/develop/libraries/libs-dev/libini/libini.asm \ |
119 | lib/libini.obj:LIB/LIBINI.OBJ:$(PROGS)/develop/libraries/libs-dev/libini/libini.asm \ |
111 | lib/libio.obj:LIB/LIBIO.OBJ:$(PROGS)/develop/libraries/libs-dev/libio/libio.asm \ |
120 | lib/libio.obj:LIB/LIBIO.OBJ:$(PROGS)/develop/libraries/libs-dev/libio/libio.asm \ |
112 | lib/proc_lib.obj:LIB/PROC_LIB.OBJ:$(PROGS)/develop/libraries/proc_lib/trunk/proc_lib.asm \ |
121 | lib/proc_lib.obj:LIB/PROC_LIB.OBJ:$(PROGS)/develop/libraries/proc_lib/trunk/proc_lib.asm \ |
113 | lib/cnv_png.obj:LIB/CNV_PNG.OBJ:$(PROGS)/media/zsea/plugins/png/cnv_png.asm \ |
122 | lib/cnv_png.obj:LIB/CNV_PNG.OBJ:$(PROGS)/media/zsea/plugins/png/cnv_png.asm \ |
114 | media/animage:MEDIA/ANIMAGE:$(PROGS)/media/animage/trunk/animage.asm \ |
123 | media/animage:MEDIA/ANIMAGE:$(PROGS)/media/animage/trunk/animage.asm \ |
115 | media/cdp:MEDIA/CDP:$(PROGS)/media/cdp/trunk/cdp.asm \ |
124 | media/cdp:MEDIA/CDP:$(PROGS)/media/cdp/trunk/cdp.asm \ |
116 | media/kiv:MEDIA/KIV:$(PROGS)/media/kiv/trunk/kiv.asm \ |
125 | media/kiv:MEDIA/KIV:$(PROGS)/media/kiv/trunk/kiv.asm \ |
117 | media/listplay:MEDIA/LISTPLAY:$(PROGS)/media/listplay/trunk/listplay.asm \ |
126 | media/listplay:MEDIA/LISTPLAY:$(PROGS)/media/listplay/trunk/listplay.asm \ |
118 | media/midamp:MEDIA/MIDAMP:$(PROGS)/media/midamp/trunk/midamp.asm \ |
127 | media/midamp:MEDIA/MIDAMP:$(PROGS)/media/midamp/trunk/midamp.asm \ |
119 | media/startmus:MEDIA/STARTMUS:$(PROGS)/media/startmus/trunk/STARTMUS.ASM \ |
128 | media/startmus:MEDIA/STARTMUS:$(PROGS)/media/startmus/trunk/STARTMUS.ASM \ |
120 | network/arpcfg:NETWORK/ARPCFG:$(NETPROGS)/arpcfg/arpcfg.asm \ |
129 | network/arpcfg:NETWORK/ARPCFG:$(NETPROGS)/arpcfg/arpcfg.asm \ |
121 | network/icmp:NETWORK/ICMP:$(NETPROGS)/icmp/icmp.asm \ |
130 | network/icmp:NETWORK/ICMP:$(NETPROGS)/icmp/icmp.asm \ |
122 | network/netcfg:NETWORK/NETCFG:$(NETPROGS)/netcfg/netcfg.asm \ |
131 | network/netcfg:NETWORK/NETCFG:$(NETPROGS)/netcfg/netcfg.asm \ |
123 | network/netstat:NETWORK/NETSTAT:$(NETPROGS)/netstat/netstat.asm \ |
132 | network/netstat:NETWORK/NETSTAT:$(NETPROGS)/netstat/netstat.asm \ |
124 | network/nslookup:NETWORK/NSLOOKUP:$(NETPROGS)/nslookup/nslookup.asm \ |
133 | network/nslookup:NETWORK/NSLOOKUP:$(NETPROGS)/nslookup/nslookup.asm \ |
125 | network/synergyc:NETWORK/SYNERGYC:$(NETPROGS)/synergyc/synergyc.asm \ |
134 | network/synergyc:NETWORK/SYNERGYC:$(NETPROGS)/synergyc/synergyc.asm \ |
126 | network/tcpserv:NETWORK/TCPSERV:$(NETPROGS)/tcpserv/tcpserv.asm \ |
135 | network/tcpserv:NETWORK/TCPSERV:$(NETPROGS)/tcpserv/tcpserv.asm \ |
127 | network/telnet:NETWORK/TELNET:$(NETPROGS)/telnet/telnet.asm \ |
136 | network/telnet:NETWORK/TELNET:$(NETPROGS)/telnet/telnet.asm \ |
128 | network/zeroconf:NETWORK/ZEROCONF:$(NETPROGS)/zeroconf/zeroconf.asm \ |
137 | network/zeroconf:NETWORK/ZEROCONF:$(NETPROGS)/zeroconf/zeroconf.asm \ |
129 | lib/network.obj:LIB/NETWORK.OBJ:$(NETPROGS)/libraries/network/network.asm \ |
138 | lib/network.obj:LIB/NETWORK.OBJ:$(NETPROGS)/libraries/network/network.asm \ |
130 | drivers/3c59x.obj:DRIVERS/3C59X.OBJ:$(KERNEL)/drivers/3c59x.asm \ |
139 | drivers/3c59x.obj:DRIVERS/3C59X.OBJ:$(KERNEL)/drivers/3c59x.asm \ |
131 | drivers/dec21x4x.obj:DRIVERS/DEC21X4X.OBJ:$(KERNEL)/drivers/dec21x4x.asm \ |
140 | drivers/dec21x4x.obj:DRIVERS/DEC21X4X.OBJ:$(KERNEL)/drivers/dec21x4x.asm \ |
132 | drivers/i8255x.obj:DRIVERS/I8255X.OBJ:$(KERNEL)/drivers/i8255x.asm \ |
141 | drivers/i8255x.obj:DRIVERS/I8255X.OBJ:$(KERNEL)/drivers/i8255x.asm \ |
133 | drivers/mtd80x.obj:DRIVERS/MTD80X.OBJ:$(KERNEL)/drivers/mtd80x.asm \ |
142 | drivers/mtd80x.obj:DRIVERS/MTD80X.OBJ:$(KERNEL)/drivers/mtd80x.asm \ |
134 | drivers/pcnet32.obj:DRIVERS/PCNET32.OBJ:$(KERNEL)/drivers/pcnet32.asm \ |
143 | drivers/pcnet32.obj:DRIVERS/PCNET32.OBJ:$(KERNEL)/drivers/pcnet32.asm \ |
135 | drivers/r6040.obj:DRIVERS/R6040.OBJ:$(KERNEL)/drivers/R6040.asm \ |
144 | drivers/r6040.obj:DRIVERS/R6040.OBJ:$(KERNEL)/drivers/R6040.asm \ |
136 | drivers/rtl8029.obj:DRIVERS/RTL8029.OBJ:$(KERNEL)/drivers/RTL8029.asm \ |
145 | drivers/rtl8029.obj:DRIVERS/RTL8029.OBJ:$(KERNEL)/drivers/RTL8029.asm \ |
137 | drivers/rtl8139.obj:DRIVERS/RTL8139.OBJ:$(KERNEL)/drivers/RTL8139.asm \ |
146 | drivers/rtl8139.obj:DRIVERS/RTL8139.OBJ:$(KERNEL)/drivers/RTL8139.asm \ |
138 | drivers/rtl8169.obj:DRIVERS/RTL8169.OBJ:$(KERNEL)/drivers/RTL8169.asm \ |
147 | drivers/rtl8169.obj:DRIVERS/RTL8169.OBJ:$(KERNEL)/drivers/RTL8169.asm \ |
139 | drivers/sis900.obj:DRIVERS/SIS900.OBJ:$(KERNEL)/drivers/sis900.asm \ |
148 | drivers/sis900.obj:DRIVERS/SIS900.OBJ:$(KERNEL)/drivers/sis900.asm \ |
140 | # end of list |
149 | # end of list |
141 | 150 | ||
142 | # The list of files which should be copied from somewhere. |
151 | # The list of files which should be copied from somewhere. |
143 | # Format of an item is exactly the same as in the previous list. |
152 | # Format of an item is exactly the same as in the previous list. |
144 | COPY_FILES:=\ |
153 | COPY_FILES:=\ |
145 | macros.inc:MACROS.INC:$(PROGS)/macros.inc \ |
154 | macros.inc:MACROS.INC:$(PROGS)/macros.inc \ |
146 | config.inc:CONFIG.INC:$(PROGS)/config.inc \ |
155 | config.inc:CONFIG.INC:$(PROGS)/config.inc \ |
147 | struct.inc:STRUCT.INC:$(PROGS)/struct.inc \ |
156 | struct.inc:STRUCT.INC:$(PROGS)/struct.inc \ |
- | 157 | te_icon.png:TE_ICON.PNG:$(PROGS)/other/t_edit/te_icon.png \ |
|
- | 158 | tl_nod_16.png:TL_NOD_16.PNG:$(PROGS)/other/t_edit/tl_nod_16.png \ |
|
- | 159 | tl_sys_16.png:TL_SYS_16.PNG:$(PROGS)/media/log_el/trunk/tl_sys_16.png \ |
|
148 | File|Managers/z_icons.png:File|Managers/Z_ICONS.PNG:$(PROGS)/fs/opendial/z_icons.png \ |
160 | File|Managers/z_icons.png:File|Managers/Z_ICONS.PNG:$(PROGS)/fs/opendial/z_icons.png \ |
149 | File|Managers/kfm_keys.txt:File|Managers/KFM_KEYS.TXT:$(PROGS)/fs/kfm/trunk/docs/english/kfm_keys.txt \ |
161 | File|Managers/kfm_keys.txt:File|Managers/KFM_KEYS.TXT:$(PROGS)/fs/kfm/trunk/docs/english/kfm_keys.txt \ |
150 | File|Managers/buttons.bmp:File|Managers/BUTTONS.BMP:$(PROGS)/fs/kfm/trunk/buttons.bmp \ |
162 | File|Managers/buttons.bmp:File|Managers/BUTTONS.BMP:$(PROGS)/fs/kfm/trunk/buttons.bmp \ |
151 | File|Managers/icons.bmp:File|Managers/ICONS.BMP:$(PROGS)/fs/kfm/trunk/icons.bmp \ |
163 | File|Managers/icons.bmp:File|Managers/ICONS.BMP:$(PROGS)/fs/kfm/trunk/icons.bmp \ |
152 | media/kiv.ini:MEDIA/KIV.INI:$(PROGS)/media/kiv/trunk/kiv.ini \ |
164 | media/kiv.ini:MEDIA/KIV.INI:$(PROGS)/media/kiv/trunk/kiv.ini \ |
153 | .shell:.shell:$(PROGS)/system/shell/bin/eng/.shell \ |
165 | .shell:.shell:$(PROGS)/system/shell/bin/eng/.shell \ |
154 | mykey.ini:MYKEY.INI:$(PROGS)/system/MyKey/trunk/mykey.ini \ |
166 | mykey.ini:MYKEY.INI:$(PROGS)/system/MyKey/trunk/mykey.ini \ |
155 | # end of list |
167 | # end of list |
156 | 168 | ||
157 | # The list of all C-- programs with one main C-- file. |
169 | # The list of all C-- programs with one main C-- file. |
158 | # Format of an item is exactly the same as in the previous list, |
170 | # Format of an item is exactly the same as in the previous list, |
159 | # except that there can be fourth field with parameters for a compiler. |
171 | # except that there can be fourth field with parameters for a compiler. |
160 | CMM_PROGRAMS:=\ |
172 | CMM_PROGRAMS:=\ |
161 | File|Managers/Eolite:File|Managers/EOLITE:$(PROGS)/fs/Eolite/trunk/Eolite.c-- \ |
173 | File|Managers/Eolite:File|Managers/EOLITE:$(PROGS)/fs/Eolite/trunk/Eolite.c-- \ |
162 | HTMLv:HTMLv:$(PROGS)/network/htmlv/browser/HTMLv.c-- \ |
174 | HTMLv:HTMLv:$(PROGS)/network/htmlv/browser/HTMLv.c-- \ |
163 | #develop/c--:DEVELOP/C--:$(PROGS)/develop/c--/trunk/32.c-- \ |
175 | #develop/c--:DEVELOP/C--:$(PROGS)/develop/c--/trunk/32.c-- \ |
164 | # end of list |
176 | # end of list |
165 | 177 | ||
166 | # List of other files to be included in the image file. |
178 | # List of other files to be included in the image file. |
167 | # Some of them are auto-built with special rules, some just exist before build. |
179 | # Some of them are auto-built with special rules, some just exist before build. |
168 | # Each item is of the form |
180 | # Each item is of the form |
169 | # Spaces should be represented as |. |
181 | # Spaces should be represented as |. |
170 | OTHER_FILES:=autorun.dat:AUTORUN.DAT \ |
182 | OTHER_FILES:=autorun.dat:AUTORUN.DAT \ |
171 | background.gif:background.gif default.skn:DEFAULT.SKN \ |
183 | background.gif:background.gif default.skn:DEFAULT.SKN \ |
172 | icons.dat:ICONS.DAT iconstrp.png:ICONSTRP.PNG index_htm:INDEX.HTM \ |
184 | icons.dat:ICONS.DAT iconstrp.png:ICONSTRP.PNG index_htm:INDEX.HTM \ |
173 | kernel.mnt:KERNEL.MNT kerpack:KERPACK keymap.key:KEYMAP.KEY \ |
185 | kernel.mnt:KERNEL.MNT kerpack:KERPACK keymap.key:KEYMAP.KEY \ |
174 | lang.inc:LANG.INC lang.ini:LANG.INI \ |
186 | lang.inc:LANG.INC lang.ini:LANG.INI \ |
175 | menu.dat:MENU.DAT \ |
187 | menu.dat:MENU.DAT \ |
176 | panel.ini:PANEL.INI setup.dat:SETUP.DAT \ |
188 | panel.ini:PANEL.INI setup.dat:SETUP.DAT \ |
177 | shell:SHELL \ |
189 | shell:SHELL \ |
178 | vmode:VMODE \ |
190 | vmode:VMODE \ |
179 | File|Managers/eolite.ini:File|Managers/EOLITE.INI \ |
191 | File|Managers/eolite.ini:File|Managers/EOLITE.INI \ |
180 | File|Managers/icons.ini:File|Managers/ICONS.INI \ |
192 | File|Managers/icons.ini:File|Managers/ICONS.INI \ |
181 | File|Managers/kfar.ini:File|Managers/KFAR.INI \ |
193 | File|Managers/kfar.ini:File|Managers/KFAR.INI \ |
182 | File|Managers/kfm.ini:File|Managers/KFM.INI \ |
194 | File|Managers/kfm.ini:File|Managers/KFM.INI \ |
183 | fonts/char2.mt:FONTS/CHAR2.MT \ |
195 | fonts/char2.mt:FONTS/CHAR2.MT \ |
184 | fonts/char.mt:FONTS/CHAR.MT \ |
196 | fonts/char.mt:FONTS/CHAR.MT \ |
185 | lib/msgbox.obj:LIB/MSGBOX.OBJ \ |
197 | lib/msgbox.obj:LIB/MSGBOX.OBJ \ |
186 | lib/pixlib.obj:LIB/PIXLIB.OBJ lib/sort.obj:LIB/SORT.OBJ \ |
198 | lib/pixlib.obj:LIB/PIXLIB.OBJ lib/sort.obj:LIB/SORT.OBJ \ |
187 | media/ac97snd:MEDIA/AC97SND \ |
199 | media/ac97snd:MEDIA/AC97SND \ |
188 | network/zeroconf.ini:NETWORK/ZEROCONF.INI \ |
200 | network/zeroconf.ini:NETWORK/ZEROCONF.INI \ |
189 | #end of list |
201 | #end of list |
190 | 202 | ||
191 | # Some macro for convenient work. |
203 | # Some macro for convenient work. |
192 | # Macros for replacing '|' to escaped space '\ '. |
204 | # Macros for replacing '|' to escaped space '\ '. |
193 | space:=\ #plus space |
205 | space:=\ #plus space |
194 | respace=$(subst |,$(space),$(1)) |
206 | respace=$(subst |,$(space),$(1)) |
195 | # Macro for selecting different parts of ':'-separated items. |
207 | # Macro for selecting different parts of ':'-separated items. |
196 | binarypart=$(word 1,$(subst :, ,$(1))) |
208 | binarypart=$(word 1,$(subst :, ,$(1))) |
197 | imagepart=$(word 2,$(subst :, ,$(1))) |
209 | imagepart=$(word 2,$(subst :, ,$(1))) |
198 | sourcepart=$(word 3,$(subst :, ,$(1))) |
210 | sourcepart=$(word 3,$(subst :, ,$(1))) |
199 | parampart=$(word 4,$(subst :, ,$(1))) |
211 | parampart=$(word 4,$(subst :, ,$(1))) |
200 | # Get file names, possibly with spaces inside, from an item. |
212 | # Get file names, possibly with spaces inside, from an item. |
201 | # Here $(f) is an item - in fact, macro argument. |
213 | # Here $(f) is an item - in fact, macro argument. |
202 | fbinary=$(call respace,$(call binarypart,$(f))) |
214 | fbinary=$(call respace,$(call binarypart,$(f))) |
203 | fimage=$(call respace,$(call imagepart,$(f))) |
215 | fimage=$(call respace,$(call imagepart,$(f))) |
204 | fsource=$(call respace,$(call sourcepart,$(f))) |
216 | fsource=$(call respace,$(call sourcepart,$(f))) |
205 | fparam=$(call respace,$(call parampart,$(f))) |
217 | fparam=$(call respace,$(call parampart,$(f))) |
206 | 218 | ||
207 | # Define targets for image file. |
219 | # Define targets for image file. |
208 | # Join all the lists above. |
220 | # Join all the lists above. |
209 | targets_full:=$(COPY_FILES) $(FASM_PROGRAMS) $(NASM_PROGRAMS) $(OTHER_FILES) $(CMM_PROGRAMS) |
221 | targets_full:=$(COPY_FILES) $(FASM_PROGRAMS) $(NASM_PROGRAMS) $(OTHER_FILES) $(CMM_PROGRAMS) |
210 | # For each item in the united list call fbinary. |
222 | # For each item in the united list call fbinary. |
211 | targets:=$(foreach f,$(targets_full),$(fbinary)) |
223 | targets:=$(foreach f,$(targets_full),$(fbinary)) |
212 | 224 | ||
213 | # Define a command for copying a file inside the image. |
225 | # Define a command for copying a file inside the image. |
214 | # mcopy_command is a macro with two parameters, |
226 | # mcopy_command is a macro with two parameters, |
215 | # local file name $(1) and image file name $(2). |
227 | # local file name $(1) and image file name $(2). |
216 | # Note that spaces in these have to be escaped with backslashes. |
228 | # Note that spaces in these have to be escaped with backslashes. |
217 | mcopy_command=mcopy -moi $(BUILD_DIR)/kolibri.img $(1) ::$(2) |
229 | mcopy_command=mcopy -moi $(BUILD_DIR)/kolibri.img $(1) ::$(2) |
218 | # Specialize a previous command for an item $(f) in one of lists. |
230 | # Specialize a previous command for an item $(f) in one of lists. |
219 | mcopy_item_command=$(call mcopy_command,$(fbinary),$(fimage)) |
231 | mcopy_item_command=$(call mcopy_command,$(fbinary),$(fimage)) |
220 | 232 | ||
221 | # Join all $(mcopy_item_command) for all items, |
233 | # Join all $(mcopy_item_command) for all items, |
222 | # append newline after each item. |
234 | # append newline after each item. |
223 | # The first newline character after "define" line and |
235 | # The first newline character after "define" line and |
224 | # the last newline character before "endef" line get away |
236 | # the last newline character before "endef" line get away |
225 | # with define/endef, so we make three newline characters, |
237 | # with define/endef, so we make three newline characters, |
226 | # that is two empty lines, in order to get one in $(newline). |
238 | # that is two empty lines, in order to get one in $(newline). |
227 | define newline |
239 | define newline |
228 | 240 | ||
229 | 241 | ||
230 | endef |
242 | endef |
231 | mcopy_all_items:=$(foreach f,$(targets_full),$(mcopy_item_command)$(newline)) |
243 | mcopy_all_items:=$(foreach f,$(targets_full),$(mcopy_item_command)$(newline)) |
232 | 244 | ||
233 | # dependencies of MKISOFS_EXTRA; we iterate through $(MKISOFS_EXTRA), |
245 | # dependencies of MKISOFS_EXTRA; we iterate through $(MKISOFS_EXTRA), |
234 | # substitute "=" with space, get the 2nd word and join all results |
246 | # substitute "=" with space, get the 2nd word and join all results |
235 | mkisofs_extra_targets:=$(foreach f,$(MKISOFS_EXTRA),$(word 2,$(subst =, ,$(f)))) |
247 | mkisofs_extra_targets:=$(foreach f,$(MKISOFS_EXTRA),$(word 2,$(subst =, ,$(f)))) |
236 | 248 | ||
237 | # The main goal: build kolibri.img and kolibri.iso |
249 | # The main goal: build kolibri.img and kolibri.iso |
238 | all: $(BUILD_DIR)/kolibri.img |
250 | all: $(BUILD_DIR)/kolibri.img |
239 | 251 | ||
240 | # The first goal: floppy image. |
252 | # The first goal: floppy image. |
241 | $(BUILD_DIR)/kolibri.img: $(BUILD_DIR)/.dir \ |
253 | $(BUILD_DIR)/kolibri.img: $(BUILD_DIR)/.dir \ |
242 | Makefile \ |
254 | Makefile \ |
243 | $(BUILD_DIR)/boot_fat12.bin \ |
255 | $(BUILD_DIR)/boot_fat12.bin \ |
244 | $(targets) |
256 | $(targets) |
245 | # SYSXTREE |
257 | # SYSXTREE |
246 | # 3d/CUBETEXT |
258 | # 3d/CUBETEXT |
247 | # 3d/LOGIO.BMP |
259 | # 3d/LOGIO.BMP |
248 | str=`date -u +"[auto-build %d %b %Y %R, r$(REV)]"`; \ |
260 | str=`date -u +"[auto-build %d %b %Y %R, r$(REV)]"`; \ |
249 | echo -n $$str|dd of=kernel.mnt bs=1 seek=`expr 279 - length "$$str"` conv=notrunc 2>/dev/null |
261 | echo -n $$str|dd of=kernel.mnt bs=1 seek=`expr 279 - length "$$str"` conv=notrunc 2>/dev/null |
250 | dd if=/dev/zero of=$(BUILD_DIR)/kolibri.img count=2880 bs=512 2>&1 |
262 | dd if=/dev/zero of=$(BUILD_DIR)/kolibri.img count=2880 bs=512 2>&1 |
251 | mformat -f 1440 -i $(BUILD_DIR)/kolibri.img :: |
263 | mformat -f 1440 -i $(BUILD_DIR)/kolibri.img :: |
252 | dd if=$(BUILD_DIR)/boot_fat12.bin of=$(BUILD_DIR)/kolibri.img count=1 bs=512 conv=notrunc 2>&1 |
264 | dd if=$(BUILD_DIR)/boot_fat12.bin of=$(BUILD_DIR)/kolibri.img count=1 bs=512 conv=notrunc 2>&1 |
253 | mmd -i $(BUILD_DIR)/kolibri.img ::DEVELOP |
265 | mmd -i $(BUILD_DIR)/kolibri.img ::DEVELOP |
254 | mmd -i $(BUILD_DIR)/kolibri.img ::DRIVERS |
266 | mmd -i $(BUILD_DIR)/kolibri.img ::DRIVERS |
255 | mmd -i $(BUILD_DIR)/kolibri.img ::File\ Managers |
267 | mmd -i $(BUILD_DIR)/kolibri.img ::File\ Managers |
256 | mmd -i $(BUILD_DIR)/kolibri.img ::FONTS |
268 | mmd -i $(BUILD_DIR)/kolibri.img ::FONTS |
- | 269 | mmd -i $(BUILD_DIR)/kolibri.img ::INFO |
|
257 | mmd -i $(BUILD_DIR)/kolibri.img ::LIB |
270 | mmd -i $(BUILD_DIR)/kolibri.img ::LIB |
258 | mmd -i $(BUILD_DIR)/kolibri.img ::MEDIA |
271 | mmd -i $(BUILD_DIR)/kolibri.img ::MEDIA |
259 | mmd -i $(BUILD_DIR)/kolibri.img ::NETWORK |
272 | mmd -i $(BUILD_DIR)/kolibri.img ::NETWORK |
260 | $(mcopy_all_items) |
273 | $(mcopy_all_items) |
261 | 274 | ||
262 | # Special targets to modify behaviour of make. |
275 | # Special targets to modify behaviour of make. |
263 | .DELETE_ON_ERROR: |
276 | .DELETE_ON_ERROR: |
264 | .SUFFIXES: # delete all predefined rules |
277 | .SUFFIXES: # delete all predefined rules |
265 | 278 | ||
266 | # The floppy bootsector. |
279 | # The floppy bootsector. |
267 | $(BUILD_DIR)/boot_fat12.bin: $(TRUNKKERNEL)/bootloader/boot_fat12.asm $(TRUNKKERNEL)/bootloader/floppy1440.inc |
280 | $(BUILD_DIR)/boot_fat12.bin: $(TRUNKKERNEL)/bootloader/boot_fat12.asm $(TRUNKKERNEL)/bootloader/floppy1440.inc |
268 | fasm $(TRUNKKERNEL)/bootloader/boot_fat12.asm $(BUILD_DIR)/boot_fat12.bin |
281 | fasm $(TRUNKKERNEL)/bootloader/boot_fat12.asm $(BUILD_DIR)/boot_fat12.bin |
269 | 282 | ||
270 | $(BUILD_DIR)/.dir develop/.dir drivers/.dir fonts/.dir \ |
283 | $(BUILD_DIR)/.dir develop/.dir info/.dir drivers/.dir fonts/.dir \ |
271 | lib/.dir media/.dir network/.dir .deps/.dir: |
284 | lib/.dir media/.dir network/.dir .deps/.dir: |
272 | mkdir -p $(dir $@) |
285 | mkdir -p $(dir $@) |
273 | touch $@ |
286 | touch $@ |
274 | File\ Managers/.dir: |
287 | File\ Managers/.dir: |
275 | mkdir -p "File Managers" |
288 | mkdir -p "File Managers" |
276 | touch "File Managers/.dir" |
289 | touch "File Managers/.dir" |
277 | 290 | ||
278 | # FASM black magic goes to Makefile.fasm. |
291 | # FASM black magic goes to Makefile.fasm. |
279 | include Makefile.fasm |
292 | include Makefile.fasm |
280 | 293 | ||
281 | # Similar for NASM. |
294 | # Similar for NASM. |
282 | include Makefile.nasm |
295 | include Makefile.nasm |
283 | 296 | ||
284 | # Similar for copying files. |
297 | # Similar for copying files. |
285 | include Makefile.copy |
298 | include Makefile.copy |
286 | 299 | ||
287 | # Special rules for copying sysfuncs.txt - it isn't directly included in the image. |
300 | # Special rules for copying sysfuncs.txt - it isn't directly included in the image. |
288 | docpak: $(DOCDIR)SYSFUNCS.TXT $(wildcard $(DOCDIR)*) |
301 | docpak: $(DOCDIR)SYSFUNCS.TXT $(wildcard $(DOCDIR)*) |
289 | $(DOCDIR)SYSFUNCS.TXT: $(TRUNKKERNEL)/docs/sysfuncs.txt |
302 | $(DOCDIR)SYSFUNCS.TXT: $(TRUNKKERNEL)/docs/sysfuncs.txt |
290 | cp $(TRUNKKERNEL)/docs/sysfuncs.txt $(DOCDIR)SYSFUNCS.TXT |
303 | cp $(TRUNKKERNEL)/docs/sysfuncs.txt $(DOCDIR)SYSFUNCS.TXT |
291 | 304 | ||
292 | # Similar for C--. |
305 | # Similar for C--. |
293 | include Makefile.cmm |
306 | include Makefile.cmm |
294 | 307 | ||
295 | # Sorry, even black magic seems to be insufficient for |
308 | # Sorry, even black magic seems to be insufficient for |
296 | # auto-handling all subtle effects. So we just define |
309 | # auto-handling all subtle effects. So we just define |
297 | # command lines for compiling and linking, and |
310 | # command lines for compiling and linking, and |
298 | # maintain the list of sources and objects by hand. |
311 | # maintain the list of sources and objects by hand. |
299 | include Makefile.msvc |
312 | include Makefile.msvc |
300 | include Makefile.gcc |
313 | include Makefile.gcc |
301 | 314 | ||
302 | # Rules for shell |
315 | # Rules for shell |
303 | 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 \ |
316 | 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 \ |
304 | $(PROGS)/system/shell/kolibri.ld |
317 | $(PROGS)/system/shell/kolibri.ld |
305 | $(call gcc_link,$(PROGS)/system/shell/kolibri.ld) |
318 | $(call gcc_link,$(PROGS)/system/shell/kolibri.ld) |
306 | .obj.shell/shell.o: $(PROGS)/system/shell/shell.c \ |
319 | .obj.shell/shell.o: $(PROGS)/system/shell/shell.c \ |
307 | $(PROGS)/system/shell/all.h \ |
320 | $(PROGS)/system/shell/all.h \ |
308 | $(PROGS)/system/shell/system/*.h \ |
321 | $(PROGS)/system/shell/system/*.h \ |
309 | $(PROGS)/system/shell/cmd/*.c \ |
322 | $(PROGS)/system/shell/cmd/*.c \ |
310 | $(PROGS)/system/shell/modules/*.c \ |
323 | $(PROGS)/system/shell/modules/*.c \ |
311 | $(PROGS)/system/shell/locale/rus/globals.h \ |
324 | $(PROGS)/system/shell/locale/rus/globals.h \ |
312 | Makefile.gcc | .obj.shell |
325 | Makefile.gcc | .obj.shell |
313 | $(gcc_compile) |
326 | $(gcc_compile) |
314 | .obj.shell/kolibri.o .obj.shell/stdlib.o .obj.shell/string.o .obj.shell/ctype.o: .obj.shell/%.o: \ |
327 | .obj.shell/kolibri.o .obj.shell/stdlib.o .obj.shell/string.o .obj.shell/ctype.o: .obj.shell/%.o: \ |
315 | $(PROGS)/system/shell/system/%.c $(PROGS)/system/shell/system/*.h \ |
328 | $(PROGS)/system/shell/system/%.c $(PROGS)/system/shell/system/*.h \ |
316 | Makefile.gcc | .obj.shell |
329 | Makefile.gcc | .obj.shell |
317 | $(gcc_compile) |
330 | $(gcc_compile) |
318 | win32-gcc -c -Os -o $@ $< |
331 | win32-gcc -c -Os -o $@ $< |
319 | .obj.shell/start.o: $(PROGS)/system/shell/start.asm | .obj.shell |
332 | .obj.shell/start.o: $(PROGS)/system/shell/start.asm | .obj.shell |
320 | fasm $< $@ |
333 | fasm $< $@ |
321 | .obj.shell: |
334 | .obj.shell: |
322 | mkdir -p .obj.shell |
335 | mkdir -p .obj.shell |
323 | 336 | ||
324 | # Rules for sdk/sound, used by media/ac97snd |
337 | # Rules for sdk/sound, used by media/ac97snd |
325 | SOUNDDIR=$(PROGS)/develop/sdk/trunk/sound/src |
338 | SOUNDDIR=$(PROGS)/develop/sdk/trunk/sound/src |
326 | SOUND_OBJECTS:=$(patsubst $(SOUNDDIR)/%.asm,.sdk/%.obj,$(wildcard $(SOUNDDIR)/*.asm)) |
339 | SOUND_OBJECTS:=$(patsubst $(SOUNDDIR)/%.asm,.sdk/%.obj,$(wildcard $(SOUNDDIR)/*.asm)) |
327 | SOUND_INC_FILES:=$(wildcard $(SOUNDDIR)/*.inc) |
340 | SOUND_INC_FILES:=$(wildcard $(SOUNDDIR)/*.inc) |
328 | .sdk/sound.lib: $(SOUND_OBJECTS) |
341 | .sdk/sound.lib: $(SOUND_OBJECTS) |
329 | win32-link /lib /out:$@ $^ |
342 | win32-link /lib /out:$@ $^ |
330 | $(SOUND_OBJECTS): .sdk/%.obj: $(SOUNDDIR)/%.asm $(SOUND_INC_FILES) | .sdk |
343 | $(SOUND_OBJECTS): .sdk/%.obj: $(SOUNDDIR)/%.asm $(SOUND_INC_FILES) | .sdk |
331 | fasm $< $@ |
344 | fasm $< $@ |
332 | .sdk: |
345 | .sdk: |
333 | mkdir -p .sdk |
346 | mkdir -p .sdk |
334 | # Rules for media/ac97snd |
347 | # Rules for media/ac97snd |
335 | AC97DIR=$(PROGS)/media/ac97snd |
348 | AC97DIR=$(PROGS)/media/ac97snd |
336 | media/ac97snd: .obj.ac97snd/ac97snd.exe |
349 | media/ac97snd: .obj.ac97snd/ac97snd.exe |
337 | $(msvc_final) |
350 | $(msvc_final) |
338 | .obj.ac97snd/ac97snd.exe: .obj.ac97snd/ac97wav.obj .obj.ac97snd/crt.obj .obj.ac97snd/k_lib.obj \ |
351 | .obj.ac97snd/ac97snd.exe: .obj.ac97snd/ac97wav.obj .obj.ac97snd/crt.obj .obj.ac97snd/k_lib.obj \ |
339 | .obj.ac97snd/mpg.lib .sdk/sound.lib .obj.ac97snd/ufmod.obj |
352 | .obj.ac97snd/mpg.lib .sdk/sound.lib .obj.ac97snd/ufmod.obj |
340 | $(msvc_link) |
353 | $(msvc_link) |
341 | .obj.ac97snd/ac97wav.obj: $(AC97DIR)/ac97snd/ac97wav.c \ |
354 | .obj.ac97snd/ac97wav.obj: $(AC97DIR)/ac97snd/ac97wav.c \ |
342 | $(AC97DIR)/kolibri.h $(AC97DIR)/ac97snd/ac97wav.h $(AC97DIR)/mpg/mpg123.h \ |
355 | $(AC97DIR)/kolibri.h $(AC97DIR)/ac97snd/ac97wav.h $(AC97DIR)/mpg/mpg123.h \ |
343 | $(AC97DIR)/sound.h $(AC97DIR)/ufmod-codec.h Makefile.msvc | .obj.ac97snd |
356 | $(AC97DIR)/sound.h $(AC97DIR)/ufmod-codec.h Makefile.msvc | .obj.ac97snd |
344 | $(msvc_compile) |
357 | $(msvc_compile) |
345 | .obj.ac97snd/crt.obj: $(AC97DIR)/ac97snd/crt.c $(AC97DIR)/ac97snd/crt.h Makefile.msvc | .obj.ac97snd |
358 | .obj.ac97snd/crt.obj: $(AC97DIR)/ac97snd/crt.c $(AC97DIR)/ac97snd/crt.h Makefile.msvc | .obj.ac97snd |
346 | $(msvc_compile) |
359 | $(msvc_compile) |
347 | .obj.ac97snd/k_lib.obj: $(AC97DIR)/ac97snd/k_lib.asm $(AC97DIR)/ac97snd/proc32.inc | .obj.ac97snd |
360 | .obj.ac97snd/k_lib.obj: $(AC97DIR)/ac97snd/k_lib.asm $(AC97DIR)/ac97snd/proc32.inc | .obj.ac97snd |
348 | fasm $< $@ |
361 | fasm $< $@ |
349 | .obj.ac97snd/ufmod.obj: $(AC97DIR)/ufmod-config.asm | .obj.ac97snd |
362 | .obj.ac97snd/ufmod.obj: $(AC97DIR)/ufmod-config.asm | .obj.ac97snd |
350 | fasm $< $@ -s .deps/ac97snd-ufmod.fas |
363 | fasm $< $@ -s .deps/ac97snd-ufmod.fas |
351 | prepsrc .deps/ac97snd-ufmod.fas /dev/stdout | \ |
364 | prepsrc .deps/ac97snd-ufmod.fas /dev/stdout | \ |
352 | perl -n -e 's|\\|/|g;s| |\\ |g;push @a,$$1 if/^;include\\ \x27(.*?)\x27/;' \ |
365 | perl -n -e 's|\\|/|g;s| |\\ |g;push @a,$$1 if/^;include\\ \x27(.*?)\x27/;' \ |
353 | -e 'END{$$a=join " \\\n ",@a;print "$@: $$a\n$$a:\n"}' > .deps/ac97snd-ufmod.Po |
366 | -e 'END{$$a=join " \\\n ",@a;print "$@: $$a\n$$a:\n"}' > .deps/ac97snd-ufmod.Po |
354 | -include .deps/ac97snd-ufmod.Po |
367 | -include .deps/ac97snd-ufmod.Po |
355 | AC97SND_MPG_C_FILES:=$(wildcard $(AC97DIR)/mpg/*.c) |
368 | AC97SND_MPG_C_FILES:=$(wildcard $(AC97DIR)/mpg/*.c) |
356 | AC97SND_MPG_H_FILES:=$(wildcard $(AC97DIR)/mpg/*.h) |
369 | AC97SND_MPG_H_FILES:=$(wildcard $(AC97DIR)/mpg/*.h) |
357 | AC97SND_MPG_C_OBJECTS:=$(patsubst $(AC97DIR)/mpg/%.c,.obj.ac97snd/%.o,$(AC97SND_MPG_C_FILES)) |
370 | AC97SND_MPG_C_OBJECTS:=$(patsubst $(AC97DIR)/mpg/%.c,.obj.ac97snd/%.o,$(AC97SND_MPG_C_FILES)) |
358 | .obj.ac97snd/mpg.lib: $(AC97SND_MPG_C_OBJECTS) .obj.ac97snd/pow.obj |
371 | .obj.ac97snd/mpg.lib: $(AC97SND_MPG_C_OBJECTS) .obj.ac97snd/pow.obj |
359 | win32-link /lib /ltcg /out:$@ $^ |
372 | win32-link /lib /ltcg /out:$@ $^ |
360 | $(AC97SND_MPG_C_OBJECTS): .obj.ac97snd/%.o: $(AC97DIR)/mpg/%.c $(AC97SND_MPG_H_FILES) Makefile.msvc | .obj.ac97snd |
373 | $(AC97SND_MPG_C_OBJECTS): .obj.ac97snd/%.o: $(AC97DIR)/mpg/%.c $(AC97SND_MPG_H_FILES) Makefile.msvc | .obj.ac97snd |
361 | $(msvc_compile) |
374 | $(msvc_compile) |
362 | .obj.ac97snd/pow.obj: $(AC97DIR)/mpg/pow.asm $(AC97DIR)/mpg/proc32.inc | .obj.ac97snd |
375 | .obj.ac97snd/pow.obj: $(AC97DIR)/mpg/pow.asm $(AC97DIR)/mpg/proc32.inc | .obj.ac97snd |
363 | fasm $< $@ |
376 | fasm $< $@ |
364 | .obj.ac97snd: |
377 | .obj.ac97snd: |
365 | mkdir -p .obj.ac97snd>>>>> |
378 | mkdir -p .obj.ac97snd>>>>> |
366 | .obj.shell/start.o:> |
379 | .obj.shell/start.o:> |