![]() ![]() The code objs += lib/libc.a is the code that associates the main Makefile with the sub-Makefile. %.o : %.S %yes makefile The wildcard character in,%.o Represent all.o Document, automatic deduction rulesġ. mkx210 led.bin 210.bin Make SD The purpose of the card startup mirror is to add a check head. Gcc mkv210_image.c -o mkx210 gcc Is used to generate executable programs, in Ubuntu In order to execute the following code elf Format executable program, in turn, get assembly source code Makefile Analysis of Bare Computer Programs led.bin: start.oĪrm-linux-ld -Ttext 0x0 -o led.elf $^ //Generate an executable file led.elf, which is not available for burningĪrm-linux-objcopy -O binary led.elf led.bin Used to generate burnable mirror files.Īrm-linux-objdump -D led.elf > led_elf.dis Used for disassembly. The default make executes the command corresponding to the first target.Ģ. ![]() The make command is equivalent to make hello. Using the make Hello command on the command line of Linux, you can directly execute the code gcc hello.c -o hello when you type the make clean command on the command line of Linux, you execute the code rm hello and delete the generated Hello executable file. c file to generate the output file of hello. Writing and execution of a simple Makefile file fileĬompile A. If and only if it is a Tab key, it cannot be a space. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |