![]() |
rasProject_01 / weSweetHome
R. 146 2026-09-26
process control / RasPi software by weinert-automation
|
Organising platform specific includes for the make process. More...
Organising platform specific includes for the make process.
Revision history
The different Raspberry types, like Pi1, 3, 4, Zero (0) and 5, can be handled transparently to the control programs. This is done by a make variable TARGET identifying a concrete target machine, like e.g. meterPi or growPi. This will include the target machine's make include file makeTarg_<TARGET>_settings.mk, like e.g. makeTarg_meterPi_settings.mk.
This respective file will among other values set the PLATFORM variable by PLATFORM = raspberry_03 in the example.
The mechanism used is calculated make includes and calculated C includes (organised by this file config.h).