Make file?

This is a discussion on Make file? within the C++ Programming forums, part of the General Programming Boards category; main.cpp and node.class i want make them together using makefile is ther any one who knows it ?# ObjectPath = ...

  1. #1
    Registered User mayfda's Avatar
    Join Date
    Apr 2002
    Posts
    11

    Make file?

    main.cpp and node.class

    i want make them together using makefile is ther any one who knows it ?#
    ObjectPath = ./lib/

    #
    # Header files
    #
    IncludeFiles = ./include/*.h

    #
    # Source Files
    #
    SourceFiles = ./src/

    Project : s.class/
    y6.cpp
    /*i am not sure about above 2lines!*/

    Rebuild : Clean Project

    PSMain : $(IncludeFiles) $(SourceFiles)y6.cpp
    g++ -Wall -g -I$(IncludePath) -o $(OutputFile) $(ObjectPath)*.o $(SourceFiles)y6.cpp -lm
    Clean :
    rm $(ObjectFiles)
    rm $(OutputFile)
    -mayfda-

  2. #2
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    there are several different makefiles, like imake, gnu make, and microsoft make, for instance. which are you trying to make? (no pun intended)

    if it's gnu, just download a program and copy its makefile.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  3. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  4. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 02:58 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 01:58 AM

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