compiling multiple source files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • broli

    compiling multiple source files

    How can this be done in windows based C compilers like PellesC ?? Is
    it possible to write a makefile or use the cc- o option as available
    in unix/linux ?? does anyone know of good makefile tutorials ??


    (I appologize if this is offtopic but I couldn't think of a better
    place to ask this question)
  • David Thompson

    #2
    Re: compiling multiple source files

    #if offtopic == toolchain
    On Fri, 28 Mar 2008 07:17:17 +0000, Richard Heathfield
    <rjh@see.sig.in validwrote:
    broli said:
    Is it possible to write a makefile
    >
    Yes, makefiles aren't compiler-dependent. A make program simply checks
    dependencies and selectively executes commands. The commands you execute
    can be calls to any compiler you like.
    >
    The idea and format of makefiles is not compiler-dependent, but the
    contents of actual makefiles are. The actions you want executed may
    differ, especially as to options, and there are even cases where the
    dependencies are different. (When Fortran 90 added modules,
    implementors made the reasonably obvious choice to put predigested
    interface information in files for later reference, but they made
    different reasonable choices as to which things to put in which files.
    Users got annoyed enough there is now a de-facto standard.)

    There are also _system_ differences which are not strictly compiler
    differences, for example whether to 'tsort' libraries.

    - formerly david.thompson1 || achar(64) || worldnet.att.ne t

    Comment

    Working...