Page 1 of 1

compiling

Posted: 23 Aug 2005 00:01
by ganzpopp
Hi there,

I'm making (trying!) to create an extension for OpenTTD and everything works fine for now. The only thing is that I have a slow computer (P2-400) and so compiling is a little bit slow.
Now Cygwin is said to be intelligent enough to only compile the .c files that have changed since previous compilations, but unfortunately this is not the case on my computer. Sometimes Cygwin skips unchanged files when compiling, sometimes not. I'm wondering if there are some extra options for 'make' or some Makefile[.config] options to rule out some files or anything like that!

I would appreciate some tips!

(currently waiting for compiling to complete..... :rolleyes: )

Re: compiling

Posted: 23 Aug 2005 00:06
by DaleStan
ganzpopp wrote:Now Cygwin is said to be intelligent enough to only compile the .c files that have changed since previous compilations, but unfortunately this is not the case on my computer.
Actually, it's make that has this intelligence. make checks the date on each .o file, and if it's earlier than the date on the corresponding .c file, *or any .h file #included by the .c file*, then the .c file is recompiled.

Posted: 23 Aug 2005 06:45
by }T{Reme [Q_G]
My make version is known to skip over header files even tho they are changed while the source file isnt. Compiling does take a while. Lotsa source :)

Posted: 23 Aug 2005 19:48
by lucaspiller
Cygwin itself is really slow. I found it took 5 minutes in Cygwin, while 2 minutes natively - this was on a 1300mhz processor, so for you it will take ages. :P

Posted: 24 Aug 2005 00:48
by ganzpopp
lucaspiller wrote:Cygwin itself is really slow. I found it took 5 minutes in Cygwin, while 2 minutes natively - this was on a 1300mhz processor, so for you it will take ages. :P
Ages? No no, only 6-8 minutes in Cygwin! :lol:

But what do you mean by 'natively'?