Thread: Makefile

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    6

    Makefile

    Hi,

    I want to make my own Makefile, but I don't know what to do first.
    I have 3 file :
    xxxx.h
    xxxx.c
    mxxxx.c

    I want to compile xxxx.c, then use xxxx.o with mxxxx.c :
    gcc -o xxxx mxxxx.c xxxx.o

    Please help me!!

  2. #2
    Unregistered
    Guest
    make file goes something like
    ________________________


    outputfile : dependent files <enter>
    <tab> the commands


    _______________________
    cheers

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, 11: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