Quote:
main.o: main.c /header/OS.h /header/snmputil.h /header/CPU.h
gcc -o main.c
Should be:
main.o: main.c header/OS.h header/snmputil.h header/CPU.h
gcc -I header -c main.c
Quote:
CPU.o: /source/CPU.c ../header/CPU.h
gcc -o /source/CPU.c
Should be:
CPU.o: ../source/CPU.c ../header/CPU.h
gcc -I../header -c /source/CPU.c
and so on.
Moreover, make sure you (and your editor as well) are using
tabs
instead of
blanks
, before compiling directives (i.e. before
gcc
).