Makefile

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sajithamol

    Makefile

    can you let me know, how to pass the parmaeters in a makefile. I need to pass the name of the file that I want to compile.
  • devikacs
    New Member
    • Jun 2007
    • 96

    #2
    hi, you can pass paramters to a make file from the command line.
    For eg- if you want to pass a variable and a filename, you can pass them as

    make PARA1=1 PARA2=myfile.c

    The same names PARA! and PARA2 should be used within the makefile. Also, if you assign these variables with some other value within the make file, the value in the makefile is overriden

    Originally posted by sajithamol
    can you let me know, how to pass the parmaeters in a makefile. I need to pass the name of the file that I want to compile.

    Comment

    Working...