Difference between revisions of "Fpcmake"

From Lazarus wiki
Jump to navigationJump to search
(Added some trouble shoots)
 
(More trouble shooting)
Line 6: Line 6:
  
 
===Trouble Shooting===
 
===Trouble Shooting===
* Error message, that the command  ''__missing_command__ '' is missing. Happens when a tool required by the make process is not found. Remeny: Add the path to the tool as an option to make, like DATA2INC=/path/to/data2inc, for the tool data2inc
+
* Error message, that the command  ''__missing_command__ '' is missing. This happens when a tool required by the make process is not found. Remedy: Add the path to the tool as an option to make, like DATA2INC=/path/to/data2inc, for the tool data2inc
 +
* Clean does not delete the files I expect. This happens when the files was generated by a call to make where certain options was given. Remedy: Call make clean with the same options. Options which may affect this is:
 +
** OS_TARGET
 +
** CPU_TARGET
 +
** FPC or PP (Tells make which version of the compiler created the files, this affects *.*w files generated for Windows for fpc < 1.1. To erase these files, please give an fpc 1.0 compiler as a parameter)
 +
* Make cannot find tools asw, ldw. Happens only when making for fpc 1.0.* Remedy: Make a copy of the tools as and ld, rename them asw, ldw.

Revision as of 01:04, 6 May 2004

Fpcmake is a makefile generator. It generates a makefile "Makefile" from a definition file called "Makefile.fpc".

It defines some default targets always present:

  • Clean -- clean all programs and units explicitly stated to be cleaned by clean, but not other units.
  • Cleanall -- clean also all units (*.ppu).

Trouble Shooting

  • Error message, that the command __missing_command__ is missing. This happens when a tool required by the make process is not found. Remedy: Add the path to the tool as an option to make, like DATA2INC=/path/to/data2inc, for the tool data2inc
  • Clean does not delete the files I expect. This happens when the files was generated by a call to make where certain options was given. Remedy: Call make clean with the same options. Options which may affect this is:
    • OS_TARGET
    • CPU_TARGET
    • FPC or PP (Tells make which version of the compiler created the files, this affects *.*w files generated for Windows for fpc < 1.1. To erase these files, please give an fpc 1.0 compiler as a parameter)
  • Make cannot find tools asw, ldw. Happens only when making for fpc 1.0.* Remedy: Make a copy of the tools as and ld, rename them asw, ldw.