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