Subversion Repositories Kolibri OS

Rev

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