Hi, All!
Trying to compile a project for non-standard hobby OS and have couple of questions, most probably related to wrong paths.
There is a port of basic RTL for non-standard OS, modules for which are basically delivered as compiling to Win32 and then converting PE exe to format of that OS.
Right now I have following directory structure:
c:\lazarus\tmp\units\rtl - .o/.ppu files for basic RTL converted to use API of the non-standard OS
c:\lazarus\tmp\examples\src - example hello world program
c:\lazarus\tmp\examples - has makefile.fpc and makefile itself.
Makefile.fpc has sections:
[target]
programs=hello
[default]
target=win32
cpu=i386
fpcdir=C:\lazarus\fpc\3.0.0\source
unitdir=C:\lazarus\tmp\units
[compiler]
sourcedir=src
...
...
Hence, it points that sources must be looked up in .\src. But when I run make in the c:\lazarus\tmp\examples, I get an error "No rule to make target hello.exe needed by", but if i copy hello.pp into folder with makefile, it finds id.
Obviously, make doesn't look up file(s) in .\src directory. Why? How to resolve the issue?
Next, I see that make adds units dir from main FPC installation, hence:
-FuC:/lazarus/fpc/3.0.0/source/rtl/units/i386-win32
while I'd need it to pickup my RTL for another OS, which is in c:\lazarus\tmp\units\rtl\; obviously, fpcdir=C:\lazarus\fpc\3.0.0\source does interfer; should I model directory structure of "my" RTL as main one (/units/i386-win32) and point fpcdir to it?