Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » damn these make files

This thread is locked; no one can reply to it. rss feed Print
 1   2   3   4 
damn these make files
Mars
Member #971
February 2001
avatar

Probably you are right in that a visual installer would be nice to have for Windows people. So why don't you create one? After all, this is open source and since you're the one who's screaming for one the most loudly this is the perfect way for you to contribute to the community.

--
This posting is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.

IronBob
Member #3,248
February 2003
avatar

because:

1) its not just for allegro, it is for every library with an annoying make file.

2) im working on a game

3) i dont know how to run a make file or another program from my program

but you know, it might be such a good idea that i actually might do that later.

CGamesPlay
Member #2,559
July 2002
avatar

That would be an excellent idea. I'll get to that in a second...

BD: MSVS as in Visual Studio? And does the configure script produce an nmake compatible makefile? That'd be way kewl.

If someone wanted to be able to run UNIX-makefiles on Windows, you'd have toconsider that library names are different, and you'd have to ignore the CXX family of variables in favor of the system's own. I can't immedeately think of anything else someone might want to do, except maybe change around certain tools, del for rm, for example...

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Bruce Perry
Member #270
April 2000

No, MSYS. ::)

Quote:

make and make install is no where near the only thing you have to do. i had to find unix tools,

Allegro's Makefile could indeed be improved here. If any developers are reading, try the $(COMSPEC) trick I'm using in DUMB's Makefile. Don't forget to account for the possibility that $(COMSPEC) isn't set but $(ComSpec) is.

Quote:

get help on how to change the make file from linux to windows,

'fix mingw32' - it's in the docs as the first step after extracting. How hard can that be? ::)

Quote:

get pthreads,

Allegro doesn't use pthreads on Windows.

Quote:

move and rename a bunch of make files,

You shouldn't have had to do that.

Quote:

get some evtra thing libnet

Allegro definitely doesn't use libnet.

Quote:

and then install it all. all of it took me about 3 hours.

That's impressive. I'd have left it for ages and come back to it - getting Unix-oriented stuff to work on Windows can be very frustrating ::)

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

CGamesPlay
Member #2,559
July 2002
avatar

Weel, you have to account for the fact that people who use windows aren't used to having to do much themselves.... They just put the CD in the drive, and the virus copies itself... I mean, the setup starts.

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Bruce Perry
Member #270
April 2000

That's not it. I'm sure Windows would be less frustrating if the prompt weren't so crap.

IronBob, you probably have 'bash' installed, right? Run it. Play around with it. You'll find it much easier to use than the usual command prompt :)

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

Johan Henriksson
Member #11
April 2000
avatar

I have to agree completely with korval about makefiles. They were the worst pile of junk that anyone saw until someone invented some s*t that is even worse - configure scripts. As with all s*t, it lives in symbiosis. makefiles and configure scripts are great examples. But if this was not horrible enough, now we can find .bat, .sh, .pl, .<younameit> junk all over the place, meaning we will not just have to solve many library dependencies, we now also have to figure out how to compile our programs.

GNU has the old goal of keeping everything as portable as possible. This is a sick goal. It is thanks to choices like these we have IPv4, FTP, CVS, POP3, QWERTY and all other archane technologies that would never had stood a chance if they were to compete with Real solutions to the problems. This is why competition is good. Everyone produces crap, even the open community (just look at linux), but hopefully someone will manage to not make something that is not all that shitty as everything else. This is also why Microsoft should go down because their crap surpasses the TTL by eons.

Keeping support for MSVC is a lame excuse for keeping makefiles. Anyone foolish enough to use proprietary solutions when there are free, better ones deserve problems. As for a proper build-tool, I have specs ready for a good solution (although heavily biased towards HLDL) meant for my Usix project. Anyone up for the job can tell me :P

EndOfBash

[Edit: SSH -> CVS]

IronBob
Member #3,248
February 2003
avatar

dude, you really think there was all that trouble for allegro. did you even read my other posts. i was trying to install a bunch of different libs. i meant "an extra thing FOR libnet" i forgot now what all i had to do. good thing its all installed now. i was installing MULTIPLE things. if you had actually read my earlier posts you wouldve noticed im not just installing allegro.

Thomas Fjellstrom
Member #476
June 2000
avatar

heh. My code almost never supports MSVC so thats a moot point. I usually code in GNUC. Not actual C.
I use a free compiler, that does what I need it too, and then some, a free IDE, and makefiles. What more could I ask for? Nothin.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

BAF
Member #2,981
December 2002
avatar

bp: those are long, some i could use for my sig;D

oh, i hate makefiles. i don't care to use them. i like typing make to make my prog, so i just make a file called make.bat and it says something like this:

g++ whatever.cpp -o whatever.exe -lalleg ...

is this bad?:-/

Bruce Perry
Member #270
April 2000

Since your project only contains one file, it's not bad at all.

If you had lots of files, then a Makefile could help you by only recompiling the bits you change. This would be a lot faster. Of course you have to write the Makefile first, and header files are a nightmare to deal with.

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

BAF
Member #2,981
December 2002
avatar

mine contains multiple! one of my files says:

g++ fs.cpp map_handle.cpp main.cpp -o obs_maze.exe -lmasking -lalfont -lalleg

and it only compiles what has changed until i reboot and the temp files are deleted :)

23yrold3yrold
Member #1,134
March 2001
avatar

Temp files? Mine saves the .o files and only recompiles a source file if it's more recent that the object file ...

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Thomas Fjellstrom
Member #476
June 2000
avatar

23: Which is EXACTLY what make does...

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

23yrold3yrold
Member #1,134
March 2001
avatar

I'm well aware of that (since I use makefiles to do it ::)); it's Bobby's way that doesn't ...

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Thomas Fjellstrom
Member #476
June 2000
avatar

Ah. It sounded like you are using a bat file like him.. He said "My thing", you said "Mine ..." :D

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Bruce Perry
Member #270
April 2000

Bobby said:

and it only compiles what has changed until i reboot and the temp files are deleted :)

You are deluded. It recompiles everything, every time. The temp files are not reused (and I would have expected GCC to delete them after running).

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

Marcello
Member #1,860
January 2002
avatar

damn, this is a long thread. Dunno, seems like Ironbob is stupid, in the nonintelligent way, not the insulting way.

I'm curious, has anyone messed with ant at all as an alternative for makefiles. I know it's intended for java, but as far as I know, it works with c/c++ and whatever as well.

Also, you don't need to use - on grep, it automatically figures out to read from stdin.

Marcello

IronBob
Member #3,248
February 2003
avatar

oh ya, stupid in a non-insulting way. what intelligence does that statement give you. just because i have trouble with those annoying things doesnt make me stupid. i can almost guarantee that most people that are programming have had trouble with make files atleast once in their life.

Bruce Perry
Member #270
April 2000

Don't mind marcello. He's one of those people who doesn't really understand the concept of other people. He's offended me before. He also insists that British spelling is wrong. Kinda the same way my brother insists that US spelling is wrong. They should be good friends :D

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
Programming should be fun. That's why I hate C and C++.
The brxybrytl has you.

 1   2   3   4 


Go to: