Rev 1752 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1752 | Rev 1757 | ||
---|---|---|---|
Line 253... | Line 253... | ||
253 | fbinary=$(call respace,$(call binarypart,$(f))) |
253 | fbinary=$(call respace,$(call binarypart,$(f))) |
254 | fimage=$(call respace,$(call imagepart,$(f))) |
254 | fimage=$(call respace,$(call imagepart,$(f))) |
255 | fsource=$(call respace,$(call sourcepart,$(f))) |
255 | fsource=$(call respace,$(call sourcepart,$(f))) |
Line 256... | Line 256... | ||
256 | 256 | ||
- | 257 | # Define targets for image file. |
|
257 | # Define targets for image file. |
258 | # Join all the lists above. |
258 | # Join lists $(FASM_PROGRAMS), $(COPY_FILES) and $(OTHER_FILES); |
259 | targets_full:=$(COPY_FILES) $(FASM_PROGRAMS) $(NASM_PROGRAMS) $(OTHER_FILES) |
259 | # for each item in the united list call fbinary. |
260 | # For each item in the united list call fbinary. |
Line 260... | Line 261... | ||
260 | targets:=$(foreach f,$(COPY_FILES) $(FASM_PROGRAMS) $(OTHER_FILES),$(fbinary)) |
261 | targets:=$(foreach f,$(targets_full),$(fbinary)) |
261 | 262 | ||
262 | # Define a command for copying a file inside the image. |
263 | # Define a command for copying a file inside the image. |
263 | # mcopy_command is a macro with two parameters, |
264 | # mcopy_command is a macro with two parameters, |
Line 275... | Line 276... | ||
275 | # that is two empty lines, in order to get one in $(newline). |
276 | # that is two empty lines, in order to get one in $(newline). |
276 | define newline |
277 | define newline |
Line 277... | Line 278... | ||
277 | 278 | ||
278 | 279 | ||
Line 279... | Line 280... | ||
279 | endef |
280 | endef |
280 | mcopy_all_items:=$(foreach f,$(FASM_PROGRAMS) $(COPY_FILES) $(OTHER_FILES),$(mcopy_item_command)$(newline)) |
281 | mcopy_all_items:=$(foreach f,$(targets_full),$(mcopy_item_command)$(newline)) |
281 | 282 | ||
282 | # The main goal: image. |
283 | # The main goal: image. |