Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I am compiling c files using gcc. When I compile few files I use gcc filename.c But there a large number of files and I need a file list.How ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    1

    how to compile a filelist

    Hi,

    I am compiling c files using gcc. When I compile few files I use

    gcc filename.c

    But there a large number of files and I need a file list.How to compile filelist using gcc?

    Supra

  2. #2
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    522
    Then you could make a makefile. I don't know exactly how to do that, but here in the Netherlands we often say:

    Google is your friend.

  3. #3
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Yep, learn how to use make and Makefiles. That will not only let you compile the whole list, but it will also be able to compile only what needs to be compiled, depending on what source files were changed since the last compilation.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...