Subversion Repositories Kolibri OS

Rev

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

Rev 2777 Rev 2783
Line 35... Line 35...
35
	-e 'END{$$$$a=join " \\\n ",@a;print q`$(1): `,"$$$$a\n$$$$a:\n"}' > .deps/$(4).Po
35
	-e 'END{$$$$a=join " \\\n ",@a;print q`$(1): `,"$$$$a\n$$$$a:\n"}' > .deps/$(4).Po
36
	kpack --nologo "$$@"
36
	kpack --nologo "$$@"
37
-include .deps/$(4).Po
37
-include .deps/$(4).Po
38
endef
38
endef
Line -... Line 39...
-
 
39
 
-
 
40
define fasm_nokpack_meta_rule
-
 
41
$(1): $(2) Makefile.fasm .deps/.dir $$(call respace,$$(addsuffix .dir,$(3)))
-
 
42
	fasm -m 65536 "$$<" "$$@" -s .deps/$(4).fas
-
 
43
	prepsrc .deps/$(4).fas /dev/null
-
 
44
	prepsrc .deps/$(4).fas /dev/stdout | \
-
 
45
	perl -n -e 's|\\|/|g;s| |\\ |g;push @a,$$$$1 if/^;include\\ \x27(.*?)\x27/;' \
-
 
46
	-e 'END{$$$$a=join " \\\n ",@a;print q`$(1): `,"$$$$a\n$$$$a:\n"}' > .deps/$(4).Po
-
 
47
-include .deps/$(4).Po
-
 
48
endef
39
 
49
 
40
progname=$(call respace,$(basename $(notdir $(call binarypart,$(f)))))
50
progname=$(call respace,$(basename $(notdir $(call binarypart,$(f)))))
41
binarydir=$(subst ./,,$(dir $(call binarypart,$(f))))
51
binarydir=$(subst ./,,$(dir $(call binarypart,$(f))))
-
 
52
$(foreach f,$(FASM_PROGRAMS) $(FASM_PROGRAMS_CD) $(SKIN_SOURCES),$(eval $(call fasm_meta_rule,$(fbinary),$(fsource),$(binarydir),$(progname))))
Line 42... Line 53...
42
$(foreach f,$(FASM_PROGRAMS) $(FASM_PROGRAMS_CD) $(SKIN_SOURCES),$(eval $(call fasm_meta_rule,$(fbinary),$(fsource),$(binarydir),$(progname))))
53
$(foreach f,$(FASM_NOKPACK_PROGRAMS),$(eval $(call fasm_nokpack_meta_rule,$(fbinary),$(fsource),$(binarydir),$(progname))))
43
 
54
 
44
# Rule for the kernel differs: it uses kerpack instead of kpack.
55
# Rule for the kernel differs: it uses kerpack instead of kpack.
45
kernel.mnt: $(KERNEL)/kernel.asm Makefile.fasm .deps/.dir
56
kernel.mnt: $(KERNEL)/kernel.asm Makefile.fasm .deps/.dir