Rev 1890 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1890 | Rev 1911 | ||
---|---|---|---|
Line 264... | Line 264... | ||
264 | media/ac97snd:MEDIA/AC97SND \ |
264 | media/ac97snd:MEDIA/AC97SND \ |
265 | network/jmail:NETWORK/JMAIL network/zeroconf.ini:NETWORK/ZEROCONF.INI \ |
265 | network/jmail:NETWORK/JMAIL network/zeroconf.ini:NETWORK/ZEROCONF.INI \ |
266 | #end of list |
266 | #end of list |
267 | #3d/logio.bmp:3D/LOGIO.BMP 3d/cubetext:3D/CUBETEXT |
267 | #3d/logio.bmp:3D/LOGIO.BMP 3d/cubetext:3D/CUBETEXT |
Line -... | Line 268... | ||
- | 268 | ||
- | 269 | # Extra targets for LiveCD image in the syntax of mkisofs |
|
- | 270 | MKISOFS_EXTRA:=\ |
|
- | 271 | dosbox/=$(PROGS)/emulator/DosBox/dosbox \ |
|
- | 272 | dosbox/=$(PROGS)/emulator/DosBox/dosbox.conf \ |
|
- | 273 | dosbox/=$(PROGS)/emulator/DosBox/readme.txt \ |
|
- | 274 | #end of list |
|
268 | 275 | ||
269 | # Some macro for convenient work. |
276 | # Some macro for convenient work. |
270 | # Macros for replacing '|' to escaped space '\ '. |
277 | # Macros for replacing '|' to escaped space '\ '. |
271 | space:=\ #plus space |
278 | space:=\ #plus space |
272 | respace=$(subst |,$(space),$(1)) |
279 | respace=$(subst |,$(space),$(1)) |
Line 306... | Line 313... | ||
306 | 313 | ||
307 | 314 | ||
Line -... | Line 315... | ||
- | 315 | endef |
|
- | 316 | mcopy_all_items:=$(foreach f,$(targets_full),$(mcopy_item_command)$(newline)) |
|
- | 317 | ||
- | 318 | # dependencies of MKISOFS_EXTRA; we iterate through $(MKISOFS_EXTRA), |
|
- | 319 | # substitute "=" with space, get the 2nd word and join all results |
|
- | 320 | mkisofs_extra_targets:=$(foreach f,$(MKISOFS_EXTRA),$(word 2,$(subst =, ,$(f)))) |
|
- | 321 | ||
308 | endef |
322 | # The main goal: build kolibri.img and kolibri.iso |
309 | mcopy_all_items:=$(foreach f,$(targets_full),$(mcopy_item_command)$(newline)) |
323 | all: $(BUILD_DIR)/kolibri.img $(BUILD_DIR)/kolibri.iso |
310 | 324 | ||
311 | # The main goal: image. |
325 | # The first goal: floppy image. |
312 | $(BUILD_DIR)/kolibri.img: $(BUILD_DIR)/.dir \ |
326 | $(BUILD_DIR)/kolibri.img: $(BUILD_DIR)/.dir \ |
313 | Makefile \ |
327 | Makefile \ |
Line 331... | Line 345... | ||
331 | mmd -i $(BUILD_DIR)/kolibri.img ::LIB |
345 | mmd -i $(BUILD_DIR)/kolibri.img ::LIB |
332 | mmd -i $(BUILD_DIR)/kolibri.img ::MEDIA |
346 | mmd -i $(BUILD_DIR)/kolibri.img ::MEDIA |
333 | mmd -i $(BUILD_DIR)/kolibri.img ::NETWORK |
347 | mmd -i $(BUILD_DIR)/kolibri.img ::NETWORK |
334 | $(mcopy_all_items) |
348 | $(mcopy_all_items) |
Line -... | Line 349... | ||
- | 349 | ||
- | 350 | # The second goal: LiveCD image. |
|
- | 351 | $(BUILD_DIR)/kolibri.iso: $(BUILD_DIR)/kolibri.img $(mkisofs_extra_targets) |
|
- | 352 | mkisofs -U -J -pad -b kolibri.img -c boot.catalog -hide-joliet boot.catalog -hide-joliet kolibri.img -graft-points \ |
|
- | 353 | -A "KolibriOS AutoBuilder" -p "CleverMouse" -publisher "KolibriOS Team" -V "KolibriOS r$(REV)" -sysid "KOLIBRI" \ |
|
- | 354 | -iso-level 3 -o $(BUILD_DIR)/kolibri.iso $(BUILD_DIR)/kolibri.img $(MKISOFS_EXTRA) 2>&1 |
|
335 | 355 | ||
336 | # Special targets to modify behaviour of make. |
356 | # Special targets to modify behaviour of make. |
337 | .DELETE_ON_ERROR: |
357 | .DELETE_ON_ERROR: |
Line 338... | Line 358... | ||
338 | .SUFFIXES: # disable all predefined rules |
358 | .SUFFIXES: # disable all predefined rules |