mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-24 15:46:49 +03:00
7bc3bc518a
git-svn-id: svn://kolibrios.org@1768 a494cfbc-eb01-0410-851d-a64ba20cac60
16 lines
766 B
Makefile
16 lines
766 B
Makefile
# This is similar to Makefile.fasm, look there for comments.
|
|
# No dependency tracking, so force dependencies on all files
|
|
# in dir/* and dir/*/*
|
|
# Also, we cannot set output file name and need to guess
|
|
# whether c-- has created .com file or no-extension file.
|
|
define cmm_meta_rule
|
|
$(1): $(2) Makefile.cmm $$(call respace,$$(addsuffix .dir,$(3))) \
|
|
$$(wildcard $$(dir $(2))*) $$(wildcard $$(dir $(2))*/*)
|
|
flock $$(dir $(2)).lock -c '\
|
|
win32-c-- /D=AUTOBUILD /D=LANG_RUS $(5) /IP=Z:$$(dir $(2)) Z:$$< >&2 && \
|
|
if [ -e $$(basename $$<) ]; then f=$$(basename $$<); else f=$$(basename $$<).com; fi && \
|
|
kpack --nologo $$$$f "$$@" && rm $$$$f'
|
|
endef
|
|
|
|
$(foreach f,$(CMM_PROGRAMS),$(eval $(call cmm_meta_rule,$(fbinary),$(fsource),$(binarydir),$(progname),$(fparam))))
|