I have been searching the forums and learning about the Makefile recursive hierarchy, but I still haven’t found anything simple enough for me to understand.
I am new using QNX IDE. I have a card driver that provides me with the following files:
And I’m given a Makefile that is simply:
x26demo: x26demo x26.o
cc - o x26demo x26demo.o x26.o
x26demo.o: x26demo.c x26.h
cc -c x26demo.c
I don’t have any problems running the Makefile from the command line. However, I’m trying to incorporate the Makefile given above into the recursive makefiles in IDE.
I’ve already created a project in IDE, and added the “x26demo.o: x26demo.c x26.h …” lines into the Makefile of the x86/o/ folder, however, I don’t know where to include the “x26demo: x26demo x26.o …” line into the Makefile hierarchy so that the driver actually compiles.
If someone could give me some simple directions, that would be greatly appreciated. I’ve never written complicated Makefiles before.