开发者

How to process specific files and link them?

I've found something for compiling text file as string variable: Code:

objcopy --input binary --output elf64-x86-64 --binary-architecture i386 test.txt test.o

and i want to do it for each ./included_text/*.abc and then each of these files link. I've find pre/post build steps but i can't find anything which will help me. Or you can explain how t开发者_JAVA百科o do whole makefile if it's easier.


output:

text_files:= $(wildcard *.txt)

text_objects:=$(addsuffix .o,$(basename $(text_files)))
objects=$(text_objects) $(other_objects)


%.o: %.txt
    objcopy --input binary $(OBJCOPY_FLAGS) $< $@

output: $(objects)
    echo linking $@ from $^
    #ld ....
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜