Skip to main content
Associate II
January 21, 2026
Solved

Share source files between multiple projects

  • January 21, 2026
  • 3 replies
  • 322 views

Hi,

at this moment I have two projects (BootLoader and Application), but I have some shared files.

What is the best solution to share those files? Is it possible to create an 'empty' project, with only those shared files, and make the two projects depending on it?

Or is it possible to add a directory, which can be handled by both projects?

Thanks in advance.

Greetings,

ErX

3 replies

Associate II
January 21, 2026

Hi,

if you use Windows you can stop reading here.

 

If you have a more capable OS you can use links to duplicate files.

- Either hard links: create one set of the files, and copy this to the other project with cp -l ...
This makes two views to the the same files. Changing a file on one side changes the other one as well.

- Or symbolic links: create one set as usual, and make the second view as soft links with ln -s ...

I would prefer hard links.

 

If you keep your files in a version control system (even on Windows) there is one more option: check them out in two places in parallel.

padawan
Senior
January 21, 2026

Hi mfgkw

Windows has this as "mlink"

hth

padawan

Andrew Neil
Andrew NeilBest answer
Super User
January 21, 2026
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.