Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2817 | IgorA | 1 | # General rule for naming: variables with CAPITALIZED names hold settings, |
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 |
||
4 | # know what you're doing. |
||
5 | |||
6 | # Define directories for destination, source repository, sources of kernel, sources of programs. |
||
7 | BUILD_DIR:=build |
||
8 | REPOSITORY:=../.. |
||
9 | KERNEL:=$(REPOSITORY)/kernel/trunk |
||
10 | PROGS:=$(REPOSITORY)/programs |
||
11 | |||
3237 | clevermous | 12 | # The main goal: build kolibri.img, kolibri.iso and list for creating a distribution kit |
13 | all: $(BUILD_DIR)/kolibri.img $(BUILD_DIR)/kolibri.iso $(BUILD_DIR)/distr.lst |
||
2817 | IgorA | 14 | |
15 | # Docpak requires some documents; we place them |
||
16 | # into 'docs' subdir and communicate with FASM |
||
17 | # through environment var DOCDIR. |
||
18 | DOCDIR:=docs/ |
||
19 | export DOCDIR |
||
20 | |||
21 | # Because most programs are written in FASM and have |
||
22 | # the common structure of one main .asm file possibly including |
||
23 | # several .inc files, we handle this case separately. |
||
24 | # Namely, we organize one big list of such programs |
||
25 | # (FASM_PROGRAMS, see below) containing name of local binary file, |
||
26 | # name of file inside kolibri.img and name of the source file. |
||
27 | # This list is maintained by hand, and the rest is done with some macroses... |
||
28 | # well, slightly complicated macroses - however, you do not need to |
||
29 | # understand them in order to maintain the list. |
||
30 | # To add a FASM program with one .asm file, just |
||
31 | # add the corresponding item to the list and enjoy |
||
32 | # the power of GNU make. |
||
33 | |||
34 | # The list of all FASM programs with one main FASM file. |
||
35 | # Every item consists of three parts, separated by ':'. |
||
36 | # First part is the real name of binary file in $(BUILD_DIR) |
||
37 | # as it should be produced by make. |
||
38 | # Second part is the name of a file inside kolibri.img, |
||
39 | # usually uppercased version of first part - to save space |
||
40 | # for FAT filesystem. |
||
41 | # Third part is the name of the source file. |
||
42 | # Spaces separate items, so spaces in names should be |
||
43 | # represented as '|'. |
||
44 | FASM_PROGRAMS:=\ |
||
45 | @menu:@MENU:$(PROGS)/system/menu/trunk/menu.asm \ |
||
46 | @panel:@PANEL:$(PROGS)/system/panel/trunk/@PANEL.ASM \ |
||
4132 | eAndrew | 47 | @docky:@DOCKY:$(PROGS)/system/docky/trunk/docky.asm \ |
4812 | eAndrew | 48 | @notify:@NOTIFY:$(PROGS)/system/notify3/notify.asm \ |
2817 | IgorA | 49 | @ss:@SS:$(PROGS)/system/ss/trunk/@ss.asm\ |
50 | refrscrn:REFRSCRN:$(PROGS)/system/refrscrn/refrscrn.asm \ |
||
51 | asciivju:ASCIIVJU:$(PROGS)/develop/asciivju/trunk/asciivju.asm \ |
||
52 | calc:CALC:$(PROGS)/other/calc/trunk/calc.asm \ |
||
53 | calendar:CALENDAR:$(PROGS)/system/calendar/trunk/calendar.asm \ |
||
3419 | mario79 | 54 | colrdial:COLRDIAL:$(PROGS)/system/colrdial/color_dialog.asm \ |
4322 | hidnplayr | 55 | loaddrv:LOADDRV:$(PROGS)/system/loaddrv/loaddrv.asm \ |
2817 | IgorA | 56 | cpu:CPU:$(PROGS)/system/cpu/trunk/cpu.asm \ |
57 | cpuid:CPUID:$(PROGS)/system/cpuid/trunk/CPUID.ASM \ |
||
58 | desktop:DESKTOP:$(PROGS)/system/desktop/trunk/desktop.asm \ |
||
59 | disptest:DISPTEST:$(PROGS)/system/disptest/trunk/disptest.ASM \ |
||
60 | docpack:DOCPACK:$(PROGS)/system/docpack/trunk/docpack.asm \ |
||
61 | end:END:$(PROGS)/system/end/light/end.asm \ |
||
4836 | mario79 | 62 | fspeed:FSPEED:$(PROGS)/fs/fspeed/fspeed.asm \ |
2817 | IgorA | 63 | gmon:GMON:$(PROGS)/system/gmon/gmon.asm \ |
64 | hdd_info:HDD_INFO:$(PROGS)/system/hdd_info/trunk/hdd_info.asm \ |
||
3897 | heavyiron | 65 | @icon:@ICON:$(PROGS)/system/icon_new/@icon.asm \ |
2817 | IgorA | 66 | cropflat:CROPFLAT:$(PROGS)/system/cropflat/cropflat.asm \ |
67 | kbd:KBD:$(PROGS)/system/kbd/trunk/kbd.ASM \ |
||
68 | kpack:KPACK:$(PROGS)/other/kpack/trunk/kpack.asm \ |
||
69 | launcher:LAUNCHER:$(PROGS)/system/launcher/trunk/launcher.asm \ |
||
70 | magnify:MAGNIFY:$(PROGS)/demos/magnify/trunk/magnify.asm \ |
||
71 | mgb:MGB:$(PROGS)/system/mgb/trunk/mgb.asm \ |
||
72 | mousemul:MOUSEMUL:$(PROGS)/system/mousemul/trunk/mousemul.asm \ |
||
73 | madmouse:MADMOUSE:$(PROGS)/other/madmouse/madmouse.asm \ |
||
74 | mykey:MYKEY:$(PROGS)/system/MyKey/trunk/MyKey.asm \ |
||
75 | pcidev:PCIDEV:$(PROGS)/system/pcidev/trunk/PCIDEV.ASM \ |
||
76 | rdsave:RDSAVE:$(PROGS)/system/rdsave/trunk/rdsave.asm \ |
||
77 | rtfread:RTFREAD:$(PROGS)/other/rtfread/trunk/rtfread.asm \ |
||
78 | run:RUN:$(PROGS)/system/run/trunk/run.asm \ |
||
3667 | mario79 | 79 | searchap:SEARCHAP:$(PROGS)/system/searchap/searchap.asm \ |
2817 | IgorA | 80 | scrshoot:SCRSHOOT:$(PROGS)/media/scrshoot/scrshoot.asm \ |
81 | setup:SETUP:$(PROGS)/system/setup/trunk/setup.asm \ |
||
82 | test:TEST:$(PROGS)/system/test/trunk/test.asm \ |
||
83 | tinypad:TINYPAD:$(PROGS)/develop/tinypad/trunk/tinypad.asm \ |
||
84 | zkey:ZKEY:$(PROGS)/system/zkey/trunk/ZKEY.ASM \ |
||
4466 | hidnplayr | 85 | terminal:TERMINAL:$(PROGS)/system/terminal/terminal.asm \ |
2817 | IgorA | 86 | 3d/3dsheart:3D/3DSHEART:$(PROGS)/demos/3dsheart/trunk/3dsheart.asm \ |
87 | 3d/3dwav:3D/3DWAV:$(PROGS)/demos/3dwav/trunk/3dwav.asm \ |
||
88 | 3d/crownscr:3D/CROWNSCR:$(PROGS)/demos/crownscr/trunk/crownscr.asm \ |
||
89 | 3d/free3d04:3D/FREE3D04:$(PROGS)/demos/free3d04/trunk/free3d04.asm \ |
||
90 | 3d/view3ds:3D/VIEW3DS:$(PROGS)/demos/3DS/VIEW3DS.ASM \ |
||
91 | demos/bcdclk:DEMOS/BCDCLK:$(PROGS)/demos/bcdclk/trunk/bcdclk.asm \ |
||
92 | demos/circle:DEMOS/CIRCLE:$(PROGS)/develop/examples/circle/trunk/circle.asm \ |
||
93 | demos/colorref:DEMOS/COLORREF:$(PROGS)/demos/colorref/trunk/colorref.asm \ |
||
94 | demos/cslide:DEMOS/CSLIDE:$(PROGS)/demos/cslide/trunk/cslide.asm \ |
||
95 | demos/eyes:DEMOS/EYES:$(PROGS)/demos/eyes/trunk/eyes.asm \ |
||
96 | demos/firework:DEMOS/FIREWORK:$(PROGS)/demos/firework/trunk/firework.asm \ |
||
97 | demos/movback:DEMOS/MOVBACK:$(PROGS)/demos/movback/trunk/movback.asm \ |
||
98 | demos/plasma:DEMOS/PLASMA:$(PROGS)/demos/plasma/trunk/plasma.asm \ |
||
99 | demos/tinyfrac:DEMOS/TINYFRAC:$(PROGS)/demos/tinyfrac/trunk/tinyfrac.asm \ |
||
100 | demos/trantest:DEMOS/TRANTEST:$(PROGS)/demos/trantest/trunk/trantest.asm \ |
||
101 | demos/tube:DEMOS/TUBE:$(PROGS)/demos/tube/trunk/tube.asm \ |
||
102 | demos/unvwater:DEMOS/UNVWATER:$(PROGS)/demos/unvwater/trunk/unvwater.asm \ |
||
4329 | yogev_ezra | 103 | demos/use_mb:DEMOS/USE_MB:$(PROGS)/demos/use_mb/use_mb.asm \ |
2817 | IgorA | 104 | demos/web:DEMOS/WEB:$(PROGS)/demos/web/trunk/web.asm \ |
105 | develop/board:DEVELOP/BOARD:$(PROGS)/system/board/trunk/board.asm \ |
||
106 | develop/cObj:DEVELOP/cObj:$(PROGS)/develop/cObj/trunk/cObj.asm \ |
||
107 | develop/fasm:DEVELOP/FASM:$(PROGS)/develop/fasm/trunk/fasm.asm \ |
||
108 | develop/h2d2b:DEVELOP/H2D2B:$(PROGS)/develop/h2d2b/trunk/h2d2b.asm \ |
||
109 | develop/heed:DEVELOP/HEED:$(PROGS)/develop/heed/trunk/heed.asm \ |
||
110 | develop/keyascii:DEVELOP/KEYASCII:$(PROGS)/develop/keyascii/trunk/keyascii.asm \ |
||
111 | develop/mtdbg:DEVELOP/MTDBG:$(PROGS)/develop/mtdbg/mtdbg.asm \ |
||
112 | develop/scancode:DEVELOP/SCANCODE:$(PROGS)/develop/scancode/trunk/scancode.asm \ |
||
113 | develop/t_edit:DEVELOP/T_EDIT:$(PROGS)/other/t_edit/t_edit.asm \ |
||
114 | develop/test_gets:DEVELOP/test_gets:$(PROGS)/develop/libraries/console/examples/test_gets.asm \ |
||
4635 | mario79 | 115 | develop/testcon2:DEVELOP/TESTCON2:$(PROGS)/develop/libraries/console/examples/testcon2_eng.asm \ |
2817 | IgorA | 116 | develop/thread:DEVELOP/THREAD:$(PROGS)/develop/examples/thread/trunk/thread.asm \ |
117 | develop/info/asm.syn:DEVELOP/INFO/ASM.SYN:$(PROGS)/other/t_edit/info/asm_syn.asm \ |
||
118 | develop/info/cpp_kol_cla.syn:DEVELOP/INFO/CPP_KOL_CLA.SYN:$(PROGS)/other/t_edit/info/cpp_kol_cla_syn.asm \ |
||
119 | develop/info/cpp_kol_dar.syn:DEVELOP/INFO/CPP_KOL_DAR.SYN:$(PROGS)/other/t_edit/info/cpp_kol_dar_syn.asm \ |
||
120 | develop/info/cpp_kol_def.syn:DEVELOP/INFO/CPP_KOL_DEF.SYN:$(PROGS)/other/t_edit/info/cpp_kol_def_syn.asm \ |
||
121 | develop/info/default.syn:DEVELOP/INFO/DEFAULT.SYN:$(PROGS)/other/t_edit/info/default_syn.asm \ |
||
122 | develop/info/html.syn:DEVELOP/INFO/HTML.SYN:$(PROGS)/other/t_edit/info/html_syn.asm \ |
||
123 | develop/info/ini_files.syn:DEVELOP/INFO/INI_FILES.SYN:$(PROGS)/other/t_edit/info/ini_files_syn.asm \ |
||
124 | develop/info/win_const.syn:DEVELOP/INFO/WIN_CONST.SYN:$(PROGS)/other/t_edit/info/win_const_syn.asm \ |
||
125 | drivers/com_mouse.obj:DRIVERS/COM_MOUSE.OBJ:$(KERNEL)/drivers/com_mouse.asm \ |
||
126 | drivers/emu10k1x.obj:DRIVERS/EMU10K1X.OBJ:$(KERNEL)/drivers/emu10k1x.asm \ |
||
127 | drivers/fm801.obj:DRIVERS/FM801.OBJ:$(KERNEL)/drivers/fm801.asm \ |
||
128 | drivers/infinity.obj:DRIVERS/INFINITY.OBJ:$(KERNEL)/drivers/infinity.asm \ |
||
3086 | leency | 129 | drivers/intel_hda.obj:DRIVERS/intel_hda.obj:$(REPOSITORY)/drivers/audio/intel_hda/intel_hda.asm \ |
2817 | IgorA | 130 | drivers/ps2mouse.obj:DRIVERS/PS2MOUSE.OBJ:$(REPOSITORY)/drivers/mouse/ps2mouse4d/trunk/ps2mouse.asm \ |
131 | drivers/sb16.obj:DRIVERS/SB16.OBJ:$(KERNEL)/drivers/sb16/sb16.asm \ |
||
132 | drivers/sound.obj:DRIVERS/SOUND.OBJ:$(KERNEL)/drivers/sound.asm \ |
||
3172 | hidnplayr | 133 | drivers/intelac97.obj:DRIVERS/INTELAC97.OBJ:$(KERNEL)/drivers/intelac97.asm \ |
2834 | leency | 134 | drivers/tmpdisk.obj:DRIVERS/TMPDISK.OBJ:$(KERNEL)/drivers/tmpdisk.asm \ |
3709 | clevermous | 135 | drivers/usbhid.obj:DRIVERS/USBHID.OBJ:$(KERNEL)/drivers/usbhid/usbhid.asm \ |
3521 | clevermous | 136 | drivers/usbstor.obj:DRIVERS/USBSTOR.OBJ:$(KERNEL)/drivers/usbstor.asm \ |
3173 | hidnplayr | 137 | drivers/vt823x.obj:DRIVERS/VT823X.OBJ:$(KERNEL)/drivers/vt823x.asm \ |
3508 | clevermous | 138 | drivers/vidintel.obj:DRIVERS/VIDINTEL.OBJ:$(KERNEL)/drivers/vidintel.asm \ |
3553 | hidnplayr | 139 | drivers/3c59x.obj:DRIVERS/3C59X.obj:$(REPOSITORY)/drivers/ethernet/3c59x.asm \ |
140 | drivers/dec21x4x.obj:DRIVERS/DEC21X4X.obj:$(REPOSITORY)/drivers/ethernet/dec21x4x.asm \ |
||
141 | drivers/forcedeth.obj:DRIVERS/FORCEDETH.obj:$(REPOSITORY)/drivers/ethernet/forcedeth.asm \ |
||
4522 | hidnplayr | 142 | drivers/i8254x.sys:DRIVERS/I8254X.SYS:$(REPOSITORY)/drivers/ethernet/i8254x.asm \ |
4582 | hidnplayr | 143 | drivers/i8255x.sys:DRIVERS/I8255X.SYS:$(REPOSITORY)/drivers/ethernet/i8255x.asm \ |
144 | drivers/mtd80x.sys:DRIVERS/MTD80X.SYS:$(REPOSITORY)/drivers/ethernet/mtd80x.asm \ |
||
4532 | hidnplayr | 145 | drivers/pcnet32.sys:DRIVERS/PCNET32.SYS:$(REPOSITORY)/drivers/ethernet/pcnet32.asm \ |
4597 | hidnplayr | 146 | drivers/r6040.sys:DRIVERS/R6040.SYS:$(REPOSITORY)/drivers/ethernet/R6040.asm \ |
4606 | hidnplayr | 147 | drivers/rhine.sys:DRIVERS/RHINE.SYS:$(REPOSITORY)/drivers/ethernet/rhine.asm \ |
3553 | hidnplayr | 148 | drivers/rtl8029.obj:DRIVERS/RTL8029.obj:$(REPOSITORY)/drivers/ethernet/RTL8029.asm \ |
149 | drivers/rtl8139.obj:DRIVERS/RTL8139.obj:$(REPOSITORY)/drivers/ethernet/RTL8139.asm \ |
||
150 | drivers/rtl8169.obj:DRIVERS/RTL8169.obj:$(REPOSITORY)/drivers/ethernet/RTL8169.asm \ |
||
151 | drivers/sis900.obj:DRIVERS/SIS900.obj:$(REPOSITORY)/drivers/ethernet/sis900.asm \ |
||
4418 | clevermous | 152 | drivers/uhci.sys:DRIVERS/UHCI.SYS:$(REPOSITORY)/drivers/usb/uhci.asm \ |
153 | drivers/ohci.sys:DRIVERS/OHCI.SYS:$(REPOSITORY)/drivers/usb/ohci.asm \ |
||
154 | drivers/ehci.sys:DRIVERS/EHCI.SYS:$(REPOSITORY)/drivers/usb/ehci.asm \ |
||
4454 | clevermous | 155 | drivers/rdc.sys:DRIVERS/RDC.SYS:$(REPOSITORY)/drivers/video/rdc.asm \ |
2817 | IgorA | 156 | File|Managers/kfar:File|Managers/KFAR:$(PROGS)/fs/kfar/trunk/kfar.asm \ |
157 | File|Managers/kfm:File|Managers/KFM:$(PROGS)/fs/kfm/trunk/kfm.asm \ |
||
158 | File|Managers/opendial:File|Managers/OPENDIAL:$(PROGS)/fs/opendial/opendial.asm \ |
||
159 | games/15:GAMES/15:$(PROGS)/games/15/trunk/15.ASM \ |
||
160 | games/arcanii:GAMES/ARCANII:$(PROGS)/games/arcanii/trunk/arcanii.asm \ |
||
161 | games/freecell:GAMES/FREECELL:$(PROGS)/games/freecell/freecell.asm \ |
||
162 | games/gomoku:GAMES/GOMOKU:$(PROGS)/games/gomoku/trunk/gomoku.asm \ |
||
163 | games/invaders:GAMES/INVADERS:$(PROGS)/games/invaders/invaders.asm \ |
||
164 | games/klavisha:GAMES/KLAVISHA:$(PROGS)/games/klavisha/trunk/klavisha.asm \ |
||
165 | games/lines:GAMES/LINES:$(PROGS)/games/lines/lines.asm \ |
||
166 | games/mblocks:GAMES/MBLOCKS:$(PROGS)/games/mblocks/trunk/mblocks.asm \ |
||
167 | games/msquare:GAMES/MSQUARE:$(PROGS)/games/MSquare/trunk/MSquare.asm \ |
||
168 | games/phenix:GAMES/PHENIX:$(PROGS)/games/phenix/trunk/phenix.asm \ |
||
169 | games/pipes:GAMES/PIPES:$(PROGS)/games/pipes/pipes.asm \ |
||
170 | games/pong:GAMES/PONG:$(PROGS)/games/pong/trunk/pong.asm \ |
||
171 | games/pong3:GAMES/PONG3:$(PROGS)/games/pong3/trunk/pong3.asm \ |
||
172 | games/rsquare:GAMES/RSQUARE:$(PROGS)/games/rsquare/trunk/rsquare.asm \ |
||
173 | games/soko:GAMES/SOKO:$(PROGS)/games/soko/trunk/SOKO.ASM \ |
||
174 | games/snake:GAMES/SNAKE:$(PROGS)/games/snake/trunk/snake.asm \ |
||
175 | games/sq_game:GAMES/SQ_GAME:$(PROGS)/games/sq_game/trunk/SQ_GAME.ASM \ |
||
176 | games/sudoku:GAMES/SUDOKU:$(PROGS)/games/sudoku/trunk/sudoku.asm \ |
||
177 | games/sw:GAMES/SW:$(PROGS)/games/sw/trunk/sw.asm \ |
||
178 | games/tanks:GAMES/TANKS:$(PROGS)/games/tanks/trunk/tanks.asm \ |
||
179 | games/tetris:GAMES/TETRIS:$(PROGS)/games/tetris/trunk/tetris.asm \ |
||
180 | lib/archiver.obj:LIB/ARCHIVER.OBJ:$(PROGS)/fs/kfar/trunk/kfar_arc/kfar_arc.asm \ |
||
181 | lib/box_lib.obj:LIB/BOX_LIB.OBJ:$(PROGS)/develop/libraries/box_lib/trunk/box_lib.asm \ |
||
3104 | leency | 182 | lib/buf2d.obj:LIB/BUF2D.OBJ:$(PROGS)/develop/libraries/buf2d/trunk/buf2d.asm \ |
2817 | IgorA | 183 | lib/console.obj:LIB/CONSOLE.OBJ:$(PROGS)/develop/libraries/console/console.asm \ |
184 | lib/libgfx.obj:LIB/LIBGFX.OBJ:$(PROGS)/develop/libraries/libs-dev/libgfx/libgfx.asm \ |
||
185 | lib/libimg.obj:LIB/LIBIMG.OBJ:$(PROGS)/develop/libraries/libs-dev/libimg/libimg.asm \ |
||
186 | lib/libini.obj:LIB/LIBINI.OBJ:$(PROGS)/develop/libraries/libs-dev/libini/libini.asm \ |
||
187 | lib/libio.obj:LIB/LIBIO.OBJ:$(PROGS)/develop/libraries/libs-dev/libio/libio.asm \ |
||
4331 | yogev_ezra | 188 | lib/msgbox.obj:LIB/MSGBOX.OBJ:$(PROGS)/develop/libraries/msgbox/msgbox.asm \ |
2817 | IgorA | 189 | lib/network.obj:LIB/NETWORK.OBJ:$(PROGS)/develop/libraries/network/network.asm \ |
4342 | yogev_ezra | 190 | lib/sort.obj:LIB/SORT.OBJ:$(PROGS)/develop/libraries/sorter/sort.asm \ |
4253 | hidnplayr | 191 | lib/http.obj:LIB/HTTP.OBJ:$(PROGS)/develop/libraries/http/http.asm \ |
2817 | IgorA | 192 | lib/proc_lib.obj:LIB/PROC_LIB.OBJ:$(PROGS)/develop/libraries/proc_lib/trunk/proc_lib.asm \ |
193 | lib/cnv_png.obj:LIB/CNV_PNG.OBJ:$(PROGS)/media/zsea/plugins/png/cnv_png.asm \ |
||
194 | media/animage:MEDIA/ANIMAGE:$(PROGS)/media/animage/trunk/animage.asm \ |
||
195 | media/kiv:MEDIA/KIV:$(PROGS)/media/kiv/trunk/kiv.asm \ |
||
196 | media/listplay:MEDIA/LISTPLAY:$(PROGS)/media/listplay/trunk/listplay.asm \ |
||
197 | media/midamp:MEDIA/MIDAMP:$(PROGS)/media/midamp/trunk/midamp.asm \ |
||
3087 | leency | 198 | media/palitra:MEDIA/PALITRA:$(PROGS)/media/palitra/trunk/palitra.asm \ |
2817 | IgorA | 199 | media/startmus:MEDIA/STARTMUS:$(PROGS)/media/startmus/trunk/STARTMUS.ASM \ |
3553 | hidnplayr | 200 | network/ping:NETWORK/PING:$(PROGS)/network/icmp/ping.asm \ |
201 | network/netcfg:NETWORK/NETCFG:$(PROGS)/network/netcfg/netcfg.asm \ |
||
202 | network/netstat:NETWORK/NETSTAT:$(PROGS)/network/netstat/netstat.asm \ |
||
203 | network/nslookup:NETWORK/NSLOOKUP:$(PROGS)/network/nslookup/nslookup.asm \ |
||
4833 | hidnplayr | 2 |