dc-chain: Purpose of ln -nsf instructions in Makefile

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
User avatar
SiZiOUS
DC Developer
DC Developer
Posts: 404
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Fri Mar 05, 2004 2:22 pm
Location: France
Has thanked: 27 times
Been thanked: 19 times
Contact:

dc-chain: Purpose of ln -nsf instructions in Makefile

Post by SiZiOUS »

Hi there!

I'm currently trying to update my toolchain and I have a small question about the Makefile of dc-chain.

What's the purpose of these instructions?

Code: Select all

fixup-sh4-newlib:
...
ln -nsf $(kos_base)/include/kos $(newlib_inc)
ln -nsf $(kos_base)/kernel/arch/dreamcast/include/arch $(newlib_inc)
ln -nsf $(kos_base)/kernel/arch/dreamcast/include/dc   $(newlib_inc)
If I understand well, the $(kos_base)/kernel/arch/dreamcast/include/dc directory will be symlinked to $(newlib_inc). The other instructions seems to be useless... since the $(newlib_inc) directory target is replaced with the latest command...

What am I missing here? :o

Thanks,
Mike
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5652
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: dc-chain: Purpose of ln -nsf instructions in Makefile

Post by BlueCrab »

That doesn't replace the $(newlib_inc) directory -- it creates the links inside of it. So, that will create links for $(newlib_inc)/kos, $(newlib_inc)/arch and $(newlib_inc)/dc.
User avatar
SiZiOUS
DC Developer
DC Developer
Posts: 404
Joined: Fri Mar 05, 2004 2:22 pm
Location: France
Has thanked: 27 times
Been thanked: 19 times
Contact:

Re: dc-chain: Purpose of ln -nsf instructions in Makefile

Post by SiZiOUS »

Thank you very much for your answer BlueCrab! :)
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5652
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: dc-chain: Purpose of ln -nsf instructions in Makefile

Post by BlueCrab »

No problem. Always glad to help. :)
Post Reply