@Saurabh: Maybe after the line
p1.o : p1.c
you should insert the line
gcc -c p1.c
Without that, make uses the default rule for constructing a .o file
from a .c file.
Dave
On Sep 19, 4:58 am, Saurabh <[email protected]> wrote:
> Can any one have any idea how this make file is working.
> Without compiling gcc -c p1.c.
>
> *******************************
> exe : p1.o
> gcc -o exe p1.o
> p1.o : p1.c
> clean:
> rm *.o
> rm exe
> ***********************************
> Makefile output as follows :
> cc -c -o p1.o p1.c // I am not getting this line ???
> gcc -o exe p1.o
>
> --
> Regards n Luv
> Saurabh Badhai
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.