The International Simutrans Forum

 

Author Topic: Fix for minor Makefile issues  (Read 445 times)

0 Members and 1 Guest are viewing this topic.

Offline ceeac

  • Devotee
  • *
  • Posts: 247
Fix for minor Makefile issues
« on: April 28, 2020, 01:28:23 PM »
This fixes several minor Makefile issues:
  • Building and cleaning nettool, and cleaning makeobj from the main Makefile were not possible
  • Clang does not support -fno-schedule-insns, so it makes no sense supplying it when building with clang
  • COLOUR_DEPTH = 0 is equivalent to BACKEND = posix, so I enabled setting COLOUR_DEPTH automatically instead of manually in config.default
  • When you edit the Makefile or config.default, make reports all targets as up-to-date, which is incorrect; instead, a full rebuild is necessary since compiler flags might have changed.
I also enabled building makeobj and nettool by default to catch possible compile errors early, but this can be easily disabled by modifying the all target.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10622
  • Languages: De,EN,JP
Re: Fix for minor Makefile issues
« Reply #1 on: April 29, 2020, 01:09:33 PM »
Usually I clean after building simutrans before building makeobj, since the flags are different for the debug module simdebug.cc (at least that was the case for a long time). I am not sure building all in one will generate a working binary.

So the default build is to build simutrans only. Incorporated in r 9056.

NB: Since I updated Mingw, the make file and compiler runs at snails pace. I need nearly an hour to compile simutrans now.

EDIT: The svn call was done before each compilation thanks to quotes. Without it runs as fast as before ...
« Last Edit: April 29, 2020, 01:45:13 PM by prissi »