Page 1 of 1

Makefile Tool

Posted: Wed Feb 04, 2004 6:51 am
by boman666
Since my experience with Linux and GNU is very limited, it has bacome painfully obvious to me that I need some kind of makefile tool. Which one(s) do you recommend?

Posted: Wed Feb 04, 2004 7:04 am
by pixel
Errr....

"make" ? :-)

Posted: Wed Feb 04, 2004 8:41 am
by boman666
:-)... I'm refering to a tool for creating/managing the makefiles. Or do you do it manually?

Posted: Wed Feb 04, 2004 8:56 am
by pixel
For "big sized" projects, one could use the automake/autoconf system. But I don't think this suit PS2 projects at all. Yes, do them by hand. It's not that hard :)

Posted: Wed Feb 04, 2004 9:25 am
by ooPo
A quick look on google for 'makefile tutorial' brought up this link:

http://www.opussoftware.com/tutorial/TutMakefile.htm

Google is your friend! :)

Posted: Wed Feb 04, 2004 9:43 am
by Drakonite
When creating your own projects, you can usually use one of the makefiles from one of the example programs with a bit of minor changes.

Posted: Wed Feb 04, 2004 10:44 am
by boman666
The project I'm about to move to the PS2 is ~1500 files big, divided in 22 sub-projects. I'd rather spend my time, if possible, on other things than editing and learning makefile syntax. Maybe I can get VC++ to create the makefiles for me. I'll have to look into that.

Posted: Wed Feb 04, 2004 12:07 pm
by pixel
Well... depending on the situation of course. But even there, you might find easier to write them by hand.

In all cases, I think you'll have more problems about size than anything else. I'm not sure, but, I don't think that compiling 1500 source files into one single monolith elf file would give you good results...

And if you just feel unsure with Makefiles right now, you'd better write batch files. But you can read ps2lib's Makefiles (or other simplier projects like ps2hid or ps2ftp) in order to get a general idea on how you should proceed.

Forget M$VC. It won't give you any good for that point.

Posted: Thu Feb 05, 2004 5:24 am
by mrbrown
pixel wrote:For "big sized" projects, one could use the automake/autoconf system. But I don't think this suit PS2 projects at all. Yes, do them by hand. It's not that hard :)
I have a few unreleased PS2 projects that use autoconf/automake. When TGE gets rolling, it'll also be using autotools. Once you get around the macros to find ps2lib, etc. and the cross-compilers, using auto* for PS2 projects is extremely easy.