Subversion Repositories Kolibri OS

Rev

Rev 1764 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1764 Rev 1766
1
# This is similar to Makefile.fasm, look there for comments.
1
# This is similar to Makefile.fasm, look there for comments.
2
# No dependency tracking, so force dependencies on all files
2
# No dependency tracking, so force dependencies on all files
3
# in dir/* and dir/*/*
3
# in dir/* and dir/*/*
4
# Also, we cannot set output file name and need to guess
4
# Also, we cannot set output file name and need to guess
5
# whether c-- has created .com file or no-extension file.
5
# whether c-- has created .com file or no-extension file.
6
define cmm_meta_rule
6
define cmm_meta_rule
7
$(1): $(2) Makefile.cmm $$(call respace,$$(addsuffix .dir,$(3))) \
7
$(1): $(2) Makefile.cmm $$(call respace,$$(addsuffix .dir,$(3))) \
8
 $$(wildcard $$(dir $(2))*) $$(wildcard $$(dir $(2))*/*)
8
 $$(wildcard $$(dir $(2))*) $$(wildcard $$(dir $(2))*/*)
9
	flock $$(dir $(2)).lock \
9
	flock $$(dir $(2)).lock \
10
	win32-c-- /IP=Z:$$(dir $(2)) Z:$$< >&2 && \
10
	win32-c-- $(5) /IP=Z:$$(dir $(2)) Z:$$< >&2 && \
11
	if [ -e $$(basename $$<) ]; then f=$$(basename $$<); else f=$$(basename $$<).com; fi && \
11
	if [ -e $$(basename $$<) ]; then f=$$(basename $$<); else f=$$(basename $$<).com; fi && \
12
	kpack --nologo $$$$f "$$@" && rm $$$$f
12
	kpack --nologo $$$$f "$$@" && rm $$$$f
13
endef
13
endef
14
 
14
 
15
$(foreach f,$(CMM_PROGRAMS),$(eval $(call cmm_meta_rule,$(fbinary),$(fsource),$(binarydir),$(progname))))
15
$(foreach f,$(CMM_PROGRAMS),$(eval $(call cmm_meta_rule,$(fbinary),$(fsource),$(binarydir),$(progname),$(fparam))))