The International Simutrans Forum

 

Author Topic: Compiling only parts of Simutrans  (Read 2544 times)

0 Members and 1 Guest are viewing this topic.

weirdnose

  • Guest
Compiling only parts of Simutrans
« on: September 21, 2008, 04:37:54 PM »
Hey,

I'd like to compile only parts of Simutrans. I am trying to get used to the code and so I'm making frequent changes and re-compiles. Is there a way to speed up the compile roundabout?

All I do at this time is:
Code: [Select]
make clean
make

And wait.


Regards,

Tobi

Offline whoami

  • Devotees (Inactive)
  • *
  • Posts: 693
Re: Compiling only parts of Simutrans
« Reply #1 on: September 21, 2008, 05:34:58 PM »
"make clean" removes the intermediate results, so just omit that. It is needed only in cases where something is changed that the build process cannot recognize, but where object files (.o/.obj) have to be re-generated. If you change a header file, most .c/.cc files' compilations will be invalidated automatically.

Offline VS

  • Senior Plumber (Devotee)
  • Devotees (Inactive)
  • *
  • Posts: 4856
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: Compiling only parts of Simutrans
« Reply #2 on: September 21, 2008, 09:07:10 PM »
I don't know a thing about this, but a while ago I heard something about something called ccache - it should speed up compiling in some cases. Might be worth at least googling...