Rev 1764 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1764 | Rev 1766 | ||
---|---|---|---|
Line 189... | Line 189... | ||
189 | fonts/trip.chr:FONTS/TRIP.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/TRIP.CHR \ |
189 | fonts/trip.chr:FONTS/TRIP.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/TRIP.CHR \ |
190 | fonts/tscr.chr:FONTS/TSCR.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/TSCR.CHR \ |
190 | fonts/tscr.chr:FONTS/TSCR.CHR:$(PROGS)/demos/bgitest/trunk/FONTS/TSCR.CHR \ |
191 | games/snake.ini:GAMES/SNAKE.INI:$(PROGS)/games/snake/trunk/snake.ini |
191 | games/snake.ini:GAMES/SNAKE.INI:$(PROGS)/games/snake/trunk/snake.ini |
Line 192... | Line 192... | ||
192 | 192 | ||
193 | # The list of all C-- programs with one main C-- file. |
193 | # The list of all C-- programs with one main C-- file. |
- | 194 | # Format of an item is exactly the same as in the previous list, |
|
194 | # Format of an item is exactly the same as in the previous list. |
195 | # except that there can be fourth field with parameters for a compiler. |
195 | CMM_PROGRAMS:=\ |
196 | CMM_PROGRAMS:=\ |
196 | File|Managers/eolite:File|Managers/EOLITE:$(PROGS)/fs/Eolite/trunk/Eolite.c-- \ |
197 | File|Managers/eolite:File|Managers/EOLITE:$(PROGS)/fs/Eolite/trunk/Eolite.c-- \ |
- | 198 | games/clicks:GAMES/CLICKS:$(PROGS)/games/clicks/trunk/clicks.c-- \ |
|
197 | games/clicks:GAMES/CLICKS:$(PROGS)/games/clicks/trunk/clicks.c-- \ |
199 | games/mine:GAMES/MINE:$(PROGS)/games/mine/trunk/mine.c--:/MEOS \ |
198 | # end if list |
- | |
199 | # mine is not compilable |
- | |
Line 200... | Line 200... | ||
200 | # games/mine:GAMES/MINE:$(PROGS)/games/mine/trunk/mine.c-- |
200 | # end if list |
201 | 201 | ||
202 | # List of other files to be included in the image file. |
202 | # List of other files to be included in the image file. |
203 | # Some of them are auto-built with special rules, some just exist before build. |
203 | # Some of them are auto-built with special rules, some just exist before build. |
Line 234... | Line 234... | ||
234 | games/basekurs.kla:GAMES/BASEKURS.KLA games/bnc:GAMES/BNC \ |
234 | games/basekurs.kla:GAMES/BASEKURS.KLA games/bnc:GAMES/BNC \ |
235 | games/checkers:GAMES/CHECKERS \ |
235 | games/checkers:GAMES/CHECKERS \ |
236 | games/FindNumbers:GAMES/FindNumbers games/gomoku:GAMES/GOMOKU \ |
236 | games/FindNumbers:GAMES/FindNumbers games/gomoku:GAMES/GOMOKU \ |
237 | games/klavisha:GAMES/KLAVISHA games/kosilka:GAMES/KOSILKA \ |
237 | games/klavisha:GAMES/KLAVISHA games/kosilka:GAMES/KOSILKA \ |
238 | games/kosskin.gfx:GAMES/KOSSKIN.GFX games/kox:GAMES/KOX \ |
238 | games/kosskin.gfx:GAMES/KOSSKIN.GFX games/kox:GAMES/KOX \ |
239 | games/lights:GAMES/LIGHTS games/megamaze:GAMES/MEGAMAZE games/mine:GAMES/MINE \ |
239 | games/lights:GAMES/LIGHTS games/megamaze:GAMES/MEGAMAZE \ |
240 | games/msquare:GAMES/MSQUARE games/padenie:GAMES/PADENIE \ |
240 | games/msquare:GAMES/MSQUARE games/padenie:GAMES/PADENIE \ |
241 | games/reversi:GAMES/REVERSI games/rforces:GAMES/RFORCES \ |
241 | games/reversi:GAMES/REVERSI games/rforces:GAMES/RFORCES \ |
242 | games/sq_game:GAMES/SQ_GAME \ |
242 | games/sq_game:GAMES/SQ_GAME \ |
243 | games/sudoku:GAMES/SUDOKU games/sw:GAMES/SW games/whowtbam:GAMES/WHOWTBAM \ |
243 | games/sudoku:GAMES/SUDOKU games/sw:GAMES/SW games/whowtbam:GAMES/WHOWTBAM \ |
244 | games/xonix:GAMES/XONIX \ |
244 | games/xonix:GAMES/XONIX \ |
Line 256... | Line 256... | ||
256 | respace=$(subst |,$(space),$(1)) |
256 | respace=$(subst |,$(space),$(1)) |
257 | # Macro for selecting different parts of ':'-separated items. |
257 | # Macro for selecting different parts of ':'-separated items. |
258 | binarypart=$(word 1,$(subst :, ,$(1))) |
258 | binarypart=$(word 1,$(subst :, ,$(1))) |
259 | imagepart=$(word 2,$(subst :, ,$(1))) |
259 | imagepart=$(word 2,$(subst :, ,$(1))) |
260 | sourcepart=$(word 3,$(subst :, ,$(1))) |
260 | sourcepart=$(word 3,$(subst :, ,$(1))) |
- | 261 | parampart=$(word 4,$(subst :, ,$(1))) |
|
261 | # Get file names, possibly with spaces inside, from an item. |
262 | # Get file names, possibly with spaces inside, from an item. |
262 | # Here $(f) is an item - in fact, macro argument. |
263 | # Here $(f) is an item - in fact, macro argument. |
263 | fbinary=$(call respace,$(call binarypart,$(f))) |
264 | fbinary=$(call respace,$(call binarypart,$(f))) |
264 | fimage=$(call respace,$(call imagepart,$(f))) |
265 | fimage=$(call respace,$(call imagepart,$(f))) |
265 | fsource=$(call respace,$(call sourcepart,$(f))) |
266 | fsource=$(call respace,$(call sourcepart,$(f))) |
- | 267 | fparam=$(call respace,$(call parampart,$(f))) |
|
Line 266... | Line 268... | ||
266 | 268 | ||
267 | # Define targets for image file. |
269 | # Define targets for image file. |
268 | # Join all the lists above. |
270 | # Join all the lists above. |
269 | targets_full:=$(COPY_FILES) $(FASM_PROGRAMS) $(NASM_PROGRAMS) $(OTHER_FILES) $(CMM_PROGRAMS) |
271 | targets_full:=$(COPY_FILES) $(FASM_PROGRAMS) $(NASM_PROGRAMS) $(OTHER_FILES) $(CMM_PROGRAMS) |
Line 272... | Line 274... | ||
272 | 274 | ||
273 | # Define a command for copying a file inside the image. |
275 | # Define a command for copying a file inside the image. |
274 | # mcopy_command is a macro with two parameters, |
276 | # mcopy_command is a macro with two parameters, |
275 | # local file name $(1) and image file name $(2). |
277 | # local file name $(1) and image file name $(2). |
276 | # Note that spaces in these have to be escaped with backslashes. |
278 | # Note that spaces in these have to be escaped with backslashes. |
277 | mcopy_command=mcopy -mi $(BUILD_DIR)/kolibri.img $(1) ::$(2) |
279 | mcopy_command=mcopy -moi $(BUILD_DIR)/kolibri.img $(1) ::$(2) |
278 | # Specialize a previous command for an item $(f) in one of lists. |
280 | # Specialize a previous command for an item $(f) in one of lists. |
Line 279... | Line 281... | ||
279 | mcopy_item_command=$(call mcopy_command,$(fbinary),$(fimage)) |
281 | mcopy_item_command=$(call mcopy_command,$(fbinary),$(fimage)) |
280 | 282 | ||
Line 311... | Line 313... | ||
311 | mmd -i $(BUILD_DIR)/kolibri.img ::LIB |
313 | mmd -i $(BUILD_DIR)/kolibri.img ::LIB |
312 | mmd -i $(BUILD_DIR)/kolibri.img ::MEDIA |
314 | mmd -i $(BUILD_DIR)/kolibri.img ::MEDIA |
313 | mmd -i $(BUILD_DIR)/kolibri.img ::NETWORK |
315 | mmd -i $(BUILD_DIR)/kolibri.img ::NETWORK |
314 | $(mcopy_all_items) |
316 | $(mcopy_all_items) |
Line 315... | Line 317... | ||
315 | 317 | ||
316 | # Special target to modify behaviour of make. |
318 | # Special targets to modify behaviour of make. |
- | 319 | .DELETE_ON_ERROR: |
|
Line 317... | Line 320... | ||
317 | .DELETE_ON_ERROR: |
320 | .SUFFIXES: # disable all predefined rules |
318 | 321 | ||
319 | # The floppy bootsector. |
322 | # The floppy bootsector. |