makefile: not "all" are made

This is a discussion on makefile: not "all" are made within the C++ Programming forums, part of the General Programming Boards category; 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 ...

  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
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,248
    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, 10: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, 03:43 PM
  5. using MAKE with makefile to create executable file
    By sballew in forum C Programming
    Replies: 1
    Last Post: 11-19-2001, 11:49 AM

Tags for this Thread


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