31,8 → 31,8 |
fasm -m 65536 $$< "$$@" -s .deps/$(4).fas |
prepsrc .deps/$(4).fas /dev/null |
prepsrc .deps/$(4).fas /dev/stdout | \ |
perl -n -e 's|\\|/|g;push @a,$$$$1 if/^;include \x27(.*?)\x27/;' \ |
-e 'END{$$$$a=join " \\\n ",@a;print "$(1): $$$$a\n$$$$a:\n"}' > .deps/$(4).Po |
perl -n -e '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 |
kpack --nologo "$$@" |
-include .deps/$(4).Po |
endef |
39,7 → 39,7 |
|
progname=$(call respace,$(basename $(notdir $(call binarypart,$(f))))) |
binarydir=$(subst ./,,$(dir $(call binarypart,$(f)))) |
$(foreach f,$(FASM_PROGRAMS),$(eval $(call fasm_meta_rule,$(fbinary),$(fsource),$(binarydir),$(progname)))) |
$(foreach f,$(FASM_PROGRAMS) $(FASM_PROGRAMS_CD),$(eval $(call fasm_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 |
46,7 → 46,7 |
fasm -m 65536 $< "$@" -s .deps/kernel.fas |
prepsrc .deps/kernel.fas /dev/null |
prepsrc .deps/kernel.fas /dev/stdout | \ |
perl -n -e 's|\\|/|g;push @a,$$1 if/^;include \x27(.*?)\x27/;' \ |
perl -n -e 's|\\|/|g;push @a,"\"$$1\"" if/^;include \x27(.*?)\x27/;' \ |
-e 'END{$$a=join " \\\n ",@a;print "$@: $$a\n$$a:\n"}' > .deps/kernel.Po |
kerpack $@ |
-include .deps/kernel.Po |