Makefile?

This is a discussion on Makefile? within the C Programming forums, part of the General Programming Boards category; hello.. i have limited experince with c++ and even less in UNIX, i was told to run some programs in ...

  1. #1
    AKira
    Guest

    Unhappy Makefile?

    hello..

    i have limited experince with c++ and even less in UNIX,
    i was told to run some programs in UNIX, and that a Makefile is included for me.

    I have no idea what a Makefile is...?

    any help?

    AKira

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    247
    Hi, this is the c forum, would you not be better posting this on the c++ board
    hoping to be certified (programming in c)
    here's the news - I'm officially certified.

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    A make file is _NOT_ C++ specific.

    Simple, a "make file" executes a series of commands, when, oddly enough, you type "make".

    Quzah.

  4. #4
    Registered User jasrajva's Avatar
    Join Date
    Oct 2001
    Posts
    99
    a Makefile is actually a series of dependencies
    so if you have
    helloworld.c
    and another called printhelloworld.c which has a fn used oin helloworld.c

    to compile them both correctly and together you use a makefile

    dependencies are of the form

    helloword(executable) depends on both object files

    and both object files depend on both the c files

    so once you get the dependencies rite you will be able to just
    make
    the whole program

    i wont explain the rest here you can look at a few makefiles on you Linux distribution

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Makefile Problem: None rule to make target
    By chris24300 in forum Linux Programming
    Replies: 25
    Last Post: 06-17-2009, 09:45 AM
  2. Building a project using a Makefile
    By starcatcher in forum Windows Programming
    Replies: 2
    Last Post: 11-23-2008, 10:50 PM
  3. unix makefile won't work but works in Dev C++
    By jk1998 in forum C++ Programming
    Replies: 1
    Last Post: 06-09-2007, 03:54 PM
  4. makefile blues....
    By WaterNut in forum C Programming
    Replies: 6
    Last Post: 05-30-2005, 08:22 PM
  5. Need help with Makefile
    By xshapirox in forum C++ Programming
    Replies: 14
    Last Post: 09-28-2004, 03:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21