Subversion Repositories Kolibri OS

Rev

Rev 2371 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2371 Rev 2372
Line 5... Line 5...
5
 
5
 
6
# Define directories for destination, source repository, sources of kernel, sources of programs.
6
# Define directories for destination, source repository, sources of kernel, sources of programs.
7
BUILD_DIR:=build
7
BUILD_DIR:=build
8
REPOSITORY:=../..
8
REPOSITORY:=../..
-
 
9
KERNEL:=$(REPOSITORY)/kernel/branches/net
9
KERNEL:=$(REPOSITORY)/kernel/branches/net
10
TRUNKKERNEL:=$(REPOSITORY)/kernel/trunk
10
PROGS:=$(REPOSITORY)/programs
11
PROGS:=$(REPOSITORY)/programs
Line 11... Line 12...
11
NETPROGS:=$(REPOSITORY)/kernel/branches/net/applications
12
NETPROGS:=$(REPOSITORY)/kernel/branches/net/applications
12
 
13
 
Line 87... Line 88...
87
 develop/mtdbg:DEVELOP/MTDBG:$(PROGS)/develop/mtdbg/mtdbg.asm \
88
 develop/mtdbg:DEVELOP/MTDBG:$(PROGS)/develop/mtdbg/mtdbg.asm \
88
 develop/scancode:DEVELOP/SCANCODE:$(PROGS)/develop/scancode/trunk/scancode.asm \
89
 develop/scancode:DEVELOP/SCANCODE:$(PROGS)/develop/scancode/trunk/scancode.asm \
89
 develop/test_gets:DEVELOP/test_gets:$(PROGS)/develop/libraries/console/examples/test_gets.asm \
90
 develop/test_gets:DEVELOP/test_gets:$(PROGS)/develop/libraries/console/examples/test_gets.asm \
90
 develop/testcon2:DEVELOP/TESTCON2:$(PROGS)/develop/libraries/console/examples/testcon2.asm \
91
 develop/testcon2:DEVELOP/TESTCON2:$(PROGS)/develop/libraries/console/examples/testcon2.asm \
91
 develop/thread:DEVELOP/THREAD:$(PROGS)/develop/examples/thread/trunk/thread.asm \
92
 develop/thread:DEVELOP/THREAD:$(PROGS)/develop/examples/thread/trunk/thread.asm \
92
 drivers/com_mouse.obj:DRIVERS/COM_MOUSE.OBJ:$(KERNEL)/drivers/com_mouse.asm \
93
 drivers/com_mouse.obj:DRIVERS/COM_MOUSE.OBJ:$(TRUNKKERNEL)/drivers/com_mouse.asm \
93
 drivers/emu10k1x.obj:DRIVERS/EMU10K1X.OBJ:$(KERNEL)/drivers/emu10k1x.asm \
94
 drivers/emu10k1x.obj:DRIVERS/EMU10K1X.OBJ:$(TRUNKKERNEL)/drivers/emu10k1x.asm \
94
 drivers/fm801.obj:DRIVERS/FM801.OBJ:$(KERNEL)/drivers/fm801.asm \
95
 drivers/fm801.obj:DRIVERS/FM801.OBJ:$(TRUNKKERNEL)/drivers/fm801.asm \
95
 drivers/infinity.obj:DRIVERS/INFINITY.OBJ:$(KERNEL)/drivers/infinity.asm \
96
 drivers/infinity.obj:DRIVERS/INFINITY.OBJ:$(TRUNKKERNEL)/drivers/infinity.asm \
96
 drivers/ps2mouse.obj:DRIVERS/PS2MOUSE.OBJ:$(REPOSITORY)/drivers/mouse/ps2mouse4d/trunk/ps2mouse.asm \
97
 drivers/ps2mouse.obj:DRIVERS/PS2MOUSE.OBJ:$(REPOSITORY)/drivers/mouse/ps2mouse4d/trunk/ps2mouse.asm \
97
 drivers/sb16.obj:DRIVERS/SB16.OBJ:$(KERNEL)/drivers/sb16/sb16.asm \
98
 drivers/sb16.obj:DRIVERS/SB16.OBJ:$(TRUNKKERNEL)/drivers/sb16/sb16.asm \
98
 drivers/sound.obj:DRIVERS/SOUND.OBJ:$(KERNEL)/drivers/sound.asm \
99
 drivers/sound.obj:DRIVERS/SOUND.OBJ:$(TRUNKKERNEL)/drivers/sound.asm \
99
 drivers/vt8235.obj:DRIVERS/VT8235.OBJ:$(KERNEL)/drivers/vt823x.asm \
100
 drivers/vt8235.obj:DRIVERS/VT8235.OBJ:$(TRUNKKERNEL)/drivers/vt823x.asm \
100
 File|Managers/kfar:File|Managers/KFAR:$(PROGS)/fs/kfar/trunk/kfar.asm \
101
 File|Managers/kfar:File|Managers/KFAR:$(PROGS)/fs/kfar/trunk/kfar.asm \
101
 File|Managers/kfm:File|Managers/KFM:$(PROGS)/fs/kfm/trunk/kfm.asm \
102
 File|Managers/kfm:File|Managers/KFM:$(PROGS)/fs/kfm/trunk/kfm.asm \
102
 File|Managers/opendial:File|Managers/OPENDIAL:$(PROGS)/fs/opendial/opendial.asm \
103
 File|Managers/opendial:File|Managers/OPENDIAL:$(PROGS)/fs/opendial/opendial.asm \
103
 fonts/bgitest:FONTS/BGITEST:$(PROGS)/demos/bgitest/trunk/bgitest.asm \
104
 fonts/bgitest:FONTS/BGITEST:$(PROGS)/demos/bgitest/trunk/bgitest.asm \
104
 lib/archiver.obj:LIB/ARCHIVER.OBJ:$(PROGS)/fs/kfar/trunk/kfar_arc/kfar_arc.asm \
105
 lib/archiver.obj:LIB/ARCHIVER.OBJ:$(PROGS)/fs/kfar/trunk/kfar_arc/kfar_arc.asm \
Line 156... Line 157...
156
# Some of them are auto-built with special rules, some just exist before build.
157
# Some of them are auto-built with special rules, some just exist before build.
157
# Each item is of the form :.
158
# Each item is of the form :.
158
# Spaces should be represented as |.
159
# Spaces should be represented as |.
159
OTHER_FILES:=autorun.dat:AUTORUN.DAT \
160
OTHER_FILES:=autorun.dat:AUTORUN.DAT \
160
 background.gif:background.gif default.skn:DEFAULT.SKN \
161
 background.gif:background.gif default.skn:DEFAULT.SKN \
161
 e80:E80 graph:GRAPH hdread:HDREAD \
-
 
162
 icons.dat:ICONS.DAT iconstrp.gif:ICONSTRP.GIF index_htm:INDEX.HTM \
162
 icons.dat:ICONS.DAT iconstrp.gif:ICONSTRP.GIF index_htm:INDEX.HTM \
163
 kernel.mnt:KERNEL.MNT kerpack:KERPACK keymap.key:KEYMAP.KEY \
163
 kernel.mnt:KERNEL.MNT kerpack:KERPACK keymap.key:KEYMAP.KEY \
164
 kuzkina.mid:KUZKINA.MID lang.inc:LANG.INC lang.ini:LANG.INI \
164
 lang.inc:LANG.INC lang.ini:LANG.INI \
165
 menu.dat:MENU.DAT \
165
 menu.dat:MENU.DAT \
166
 panel.dat:PANEL.DAT setup.dat:SETUP.DAT \
166
 panel.dat:PANEL.DAT setup.dat:SETUP.DAT \
167
 shell:SHELL table:TABLE \
167
 shell:SHELL \
168
 vmode:VMODE \
168
 vmode:VMODE \
169
 File|Managers/eolite.ini:File|Managers/EOLITE.INI \
169
 File|Managers/eolite.ini:File|Managers/EOLITE.INI \
170
 File|Managers/icons.ini:File|Managers/ICONS.INI \
170
 File|Managers/icons.ini:File|Managers/ICONS.INI \
171
 File|Managers/kfar.ini:File|Managers/KFAR.INI \
171
 File|Managers/kfar.ini:File|Managers/KFAR.INI \
172
 File|Managers/kfm.ini:File|Managers/KFM.INI \
172
 File|Managers/kfm.ini:File|Managers/KFM.INI \
Line 223... Line 223...
223
# dependencies of MKISOFS_EXTRA; we iterate through $(MKISOFS_EXTRA),
223
# dependencies of MKISOFS_EXTRA; we iterate through $(MKISOFS_EXTRA),
224
# substitute "=" with space, get the 2nd word and join all results
224
# substitute "=" with space, get the 2nd word and join all results
225
mkisofs_extra_targets:=$(foreach f,$(MKISOFS_EXTRA),$(word 2,$(subst =, ,$(f))))
225
mkisofs_extra_targets:=$(foreach f,$(MKISOFS_EXTRA),$(word 2,$(subst =, ,$(f))))
Line 226... Line 226...
226
 
226
 
227
# The main goal: build kolibri.img and kolibri.iso
227
# The main goal: build kolibri.img and kolibri.iso
Line 228... Line 228...
228
all: $(BUILD_DIR)/kolibri.img $(BUILD_DIR)/kolibri.iso
228
all: $(BUILD_DIR)/kolibri.img
229
 
229
 
230
# The first goal: floppy image.
230
# The first goal: floppy image.
231
$(BUILD_DIR)/kolibri.img: $(BUILD_DIR)/.dir \
231
$(BUILD_DIR)/kolibri.img: $(BUILD_DIR)/.dir \
Line 252... Line 252...
252
# Special targets to modify behaviour of make.
252
# Special targets to modify behaviour of make.
253
.DELETE_ON_ERROR:
253
.DELETE_ON_ERROR:
254
.SUFFIXES: # delete all predefined rules
254
.SUFFIXES: # delete all predefined rules
Line 255... Line 255...
255
 
255
 
256
# The floppy bootsector.
256
# The floppy bootsector.
257
$(BUILD_DIR)/boot_fat12.bin: $(KERNEL)/bootloader/boot_fat12.asm $(KERNEL)/bootloader/floppy1440.inc
257
$(BUILD_DIR)/boot_fat12.bin: $(TRUNKKERNEL)/bootloader/boot_fat12.asm $(KERNEL)/bootloader/floppy1440.inc
Line 258... Line 258...
258
	fasm $(KERNEL)/bootloader/boot_fat12.asm $(BUILD_DIR)/boot_fat12.bin
258
	fasm $(TRUNKKERNEL)/bootloader/boot_fat12.asm $(BUILD_DIR)/boot_fat12.bin
259
 
259
 
260
$(BUILD_DIR)/.dir develop/.dir drivers/.dir fonts/.dir \
260
$(BUILD_DIR)/.dir develop/.dir drivers/.dir fonts/.dir \
261
 lib/.dir media/.dir network/.dir .deps/.dir:
261
 lib/.dir media/.dir network/.dir .deps/.dir:
Line 274... Line 274...
274
# Similar for copying files.
274
# Similar for copying files.
275
include Makefile.copy
275
include Makefile.copy
Line 276... Line 276...
276
 
276
 
277
# Special rules for copying sysfuncs.txt - it isn't directly included in the image.
277
# Special rules for copying sysfuncs.txt - it isn't directly included in the image.
278
docpak: $(DOCDIR)SYSFUNCS.TXT $(wildcard $(DOCDIR)*)
278
docpak: $(DOCDIR)SYSFUNCS.TXT $(wildcard $(DOCDIR)*)
279
$(DOCDIR)SYSFUNCS.TXT: $(KERNEL)/docs/sysfuncs.txt
279
$(DOCDIR)SYSFUNCS.TXT: $(TRUNKKERNEL)/docs/sysfuncs.txt
Line 280... Line 280...
280
	cp $(KERNEL)/docs/sysfuncs.txt $(DOCDIR)SYSFUNCS.TXT
280
	cp $(KERNEL)/docs/sysfuncs.txt $(DOCDIR)SYSFUNCS.TXT
281
 
281