I am new to Solaris and compilation using make files.
I have a code base which is organized into different folders. At the root folder is a master make file and in the sub directories, there are make files for that particular folder.
In the make files present in subdirectories, I am seeing that "Makefile" is being used as a command for generating .obj files. For e.g.
abc.obj : abc.asm \
../kernal/xxx.def \
../kernal/yyy.def \
../kernal/zzz.def \
../kernal/queue.def \
Makefile \
aaa.def \
bbb.asm \
ccc.asm \
ddd.mac
Some other line
abc.obj : abc.asm Makefile $(BB_INCS) xxx.def
Below are my questions.
- Why is "Makefile" being used as a command? What does it signify? It is not defined anywhere in any other make file also.
- What is a .mac file in Solaris? what is it's purpose?
- What is the use of .def file in SOlaris? What is it's purpose?