Thread: makefile: not "all" are made

  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    48

    makefile: not "all" are made

    hey, I must forget the syntax and got this strange phenomenon. In my makefile, I have

    IB.a:errorcode.cpp EClientSocketBase.cpp EPosixClientSocket.cpp Myewrapper.cpp

    all: test1 IB.a

    and when I "make all", only test1 is made. I "make IB.a", and it says nothing to be done for it, though there is no IB.a under the dir at all!

    What's wrong?

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by patiobarbecue View Post
    hey, I must forget the syntax and got this strange phenomenon. In my makefile, I have

    IB.a:errorcode.cpp EClientSocketBase.cpp EPosixClientSocket.cpp Myewrapper.cpp

    all: test1 IB.a

    and when I "make all", only test1 is made. I "make IB.a", and it says nothing to be done for it, though there is no IB.a under the dir at all!

    What's wrong?
    Where are you rules for the IB.a target? make doesn't magically know how to turn .cpp files into a .a file.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with makefile
    By New_Programmer in forum C++ Programming
    Replies: 5
    Last Post: 03-31-2009, 04:55 PM
  2. Building a project using a Makefile
    By starcatcher in forum Windows Programming
    Replies: 2
    Last Post: 11-23-2008, 11:50 PM
  3. makefile problem
    By allelopath in forum C Programming
    Replies: 4
    Last Post: 06-06-2005, 01:22 AM
  4. makefile woes
    By Grifftt in forum C Programming
    Replies: 2
    Last Post: 12-06-2002, 04:43 PM
  5. using MAKE with makefile to create executable file
    By sballew in forum C Programming
    Replies: 1
    Last Post: 11-19-2001, 12:49 PM

Tags for this Thread