37,9 → 37,20 |
-include .deps/$(4).Po |
endef |
|
define fasm_nokpack_meta_rule |
$(1): $(2) Makefile.fasm .deps/.dir $$(call respace,$$(addsuffix .dir,$(3))) |
fasm -m 65536 "$$<" "$$@" -s .deps/$(4).fas |
prepsrc .deps/$(4).fas /dev/null |
prepsrc .deps/$(4).fas /dev/stdout | \ |
perl -n -e 's|\\|/|g;s| |\\ |g;push @a,$$$$1 if/^;include\\ \x27(.*?)\x27/;' \ |
-e 'END{$$$$a=join " \\\n ",@a;print q`$(1): `,"$$$$a\n$$$$a:\n"}' > .deps/$(4).Po |
-include .deps/$(4).Po |
endef |
|
progname=$(call respace,$(basename $(notdir $(call binarypart,$(f))))) |
binarydir=$(subst ./,,$(dir $(call binarypart,$(f)))) |
$(foreach f,$(FASM_PROGRAMS) $(FASM_PROGRAMS_CD) $(SKIN_SOURCES),$(eval $(call fasm_meta_rule,$(fbinary),$(fsource),$(binarydir),$(progname)))) |
$(foreach f,$(FASM_NOKPACK_PROGRAMS),$(eval $(call fasm_nokpack_meta_rule,$(fbinary),$(fsource),$(binarydir),$(progname)))) |
|
# Rule for the kernel differs: it uses kerpack instead of kpack. |
kernel.mnt: $(KERNEL)/kernel.asm Makefile.fasm .deps/.dir |