I have this command here:
gcc -MD -fno-builtin -nostdinc -fno-stack-protector -Os -g -m32 -I. -c -o boot1lib.o
boot1lib.c
It runs fine if I run this in the folder where boot1lib.o
and boot1lib.c
located. But when I tried to run it from the upper folder i.e. ./boot/boot1/boot1lib.c
It will shows:
./boot/boot1/boot1lib.c:1:10: fatal error: boot1lib.h: No such file or directory #include <boot1lib.h>
How do I modify the parameters to fix this issue? I am trying to build a makefile in the root folder so I don't have to copy and paste the command every time I tried to compile.