|
Makefile with sources in diferent folders
Hi guys!
I have a problem to create a makefile when using 2 types of sources.
Suppose we have sources at master_source folder:
- 1.c
- 2.c
and also we have sources at platform_source folder:
- 1.c
I really need to use platform_source folder because there is many of them (one folder with 1.c, 2.c, neither or both for each platform)
I need to copy master_source files to a diferent folder (say tmp) and there overwrite files with ones at platform_source folder.
So if i touch platform_source/1.c it shoul copy only this file to tmp folder. And if i touch master_src/1.c, it should copy master_src/1.c to tmp and after it copy platform_source/1.c to tmp (or not do anything, because our source depends mostly on platform_source folder)
If someone can help me to create such a makefile i would apreciate it.
Thanks!
|