Message ID | 20230530084241.1980529-1-michael.opdenacker@bootlin.com |
---|---|
State | Accepted |
Commit | ad24794b095b17beee8e7bdb0b8c92ae72c6e5b0 |
Headers | show |
Series | [v2] sdk-manual: fix Makefile example | expand |
diff --git a/documentation/sdk-manual/working-projects.rst b/documentation/sdk-manual/working-projects.rst index 9a0db0099d..b9af33393b 100644 --- a/documentation/sdk-manual/working-projects.rst +++ b/documentation/sdk-manual/working-projects.rst @@ -293,11 +293,11 @@ example: # CC=i586-poky-linux-gcc -m32 -march=i586 --sysroot=/opt/poky/2.5/sysroots/i586-poky-linux # CC="gcc" all: main.o module.o - ${CC} main.o module.o -o target_bin + ${CC} main.o module.o -o target_bin main.o: main.c module.h ${CC} -I . -c main.c - module.o: module.c - module.h ${CC} -I . -c module.c + module.o: module.c module.h + ${CC} -I . -c module.c clean: rm -rf *.o rm target_bin