mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
sdk-manual: fix Makefile example
"module.h" should be part of the dependency line Space fixes too (From yocto-docs rev: ad24794b095b17beee8e7bdb0b8c92ae72c6e5b0) Signed-off-by: Tom Isaacson <tom.isaacson@teknique.com> Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9f3a49c3ad
commit
5be9f4ad77
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user