Sunday, September 27, 2015

how to write multiple files c programs and make/compile it together

Honestly this is the first time I am trying to write multiple file C program and trying to compile it together.
Details are explained in the below video


Learn Python Through Public Data Hacking

Building python

I have installed Ubuntu again in Dell laptop to experiment Cpython internals http://naveendavisv.blogspot.in/2015/08/cpython-internals-interpreter-and.html.

I have managed to download the Python source gz file from https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tar.xz and edit the cevel.c internal program in python and I have added printf("naveen") in infinite for loop in the program.

and I did below steps steps-
1. ./configure
2. make



the make printing 'naveennaveen...' as expected,

but what i am not understading , is the make command do both compiling the C program and running the executables ? I am not clear how cevel.c is running while we do MAKE ?

 make commnad - http://www.computerhope.com/unix/umake.htm http://linoxide.com/how-tos/linux-make-command-examples/