compiling

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
ganzpopp
Engineer
Engineer
Posts: 46
Joined: 20 Oct 2004 20:36
Location: The Netherlands

compiling

Post 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: )
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: compiling

Post 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.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
}T{Reme [Q_G]
Route Supervisor
Route Supervisor
Posts: 389
Joined: 04 Feb 2004 23:24
Contact:

Post 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 :)
Siggy not gonna work unless someone allows javascripting...
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post 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
No longer active here, but you can still reach me via email: luca[at]stackednotion[dot]com
ganzpopp
Engineer
Engineer
Posts: 46
Joined: 20 Oct 2004 20:36
Location: The Netherlands

Post 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'?
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 13 guests