Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

my program compiles fine, but not with a make file :( but I 'need' one

Status
Not open for further replies.

2016nc

Programmer
Jun 3, 2002
31
US
my program compiles fine, but not with a make file. Yet, the irony is I need a make file to comply with the powers that be. In fact, I need it by midnight. So your help is much appreciated. Here is the problem. My program compiles when I type `g++ procTree.cpp` however, when I try to make any friggin makefile work for my program it doesnt. I have used makefiles before, and found them just as useless on the small projects which I was required to use them on. I hate them with a passion, perhaps ignorance breeds hatred. So, basically I would like a makefile that does only this `g++ procTree.cpp` in whatever mystical ways a make file does things. I don't wnat a *.o, I dont want it to stop on errors, I just want it to compile. If someone could elighten me to ways of the madness which is the make utilty, I would very much be thankful.
 
Something like this?
Makefile
Code:
all:
    @g++ -oprogram_name procTree.cpp
This is all that I use for my smaller programs. //Daniel
 
Thank you soooo much, I was lost in a sea of man pages and other peoples makefiles which did not help me. 1,000 Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top