Makefile Tool

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
boman666
Posts: 33
Joined: Fri Jan 30, 2004 10:25 am
Location: Hell

Makefile Tool

Post 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?
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post by pixel »

Errr....

"make" ? :-)
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
boman666
Posts: 33
Joined: Fri Jan 30, 2004 10:25 am
Location: Hell

Post by boman666 »

:-)... I'm refering to a tool for creating/managing the makefiles. Or do you do it manually?
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post 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 :)
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post 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! :)
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post 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.
Shoot Pixels Not People!
Makeshift Development
boman666
Posts: 33
Joined: Fri Jan 30, 2004 10:25 am
Location: Hell

Post 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.
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post 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.
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post 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.
Post Reply