Guys, Do I have to list out every single .c source file i would like to compile
by typing APP_SRC = "???.c" once in oil file? There are a lot of source files for my case. It is really tedious to type APP_SRC = "*???.c" for every file. Is there better way to specify a directory or path including all *.c files needed?
Thanks a lot!
Can a path or directory assigned to APP_SRC in oil file
Moderator: paolo.gai
Can a path or directory assigned to APP_SRC in oil file
- Attachments
-
- 2017_01_22_14_25_17_Atmel_AVR5_ErikaWiki.jpg (28.09 KiB) Viewed 4802 times
Re: Can a path or directory assigned to APP_SRC in oil file
Hi!
you have to list the files. you can put relative paths as well. It has never been a big issue in the past, as the companies using it in products always asked an integration in their custom build systems.
Note that with ERIKA3 the build system will be different, but for now we have to live with this one.
Ciao,
PJ
you have to list the files. you can put relative paths as well. It has never been a big issue in the past, as the companies using it in products always asked an integration in their custom build systems.
Note that with ERIKA3 the build system will be different, but for now we have to live with this one.
Ciao,
PJ
Re: Can a path or directory assigned to APP_SRC in oil file
Hi,
since the entry of APP_SRC is copied verbatim in a makefile variable APP_SRC, actually you can use any make function to valorize it, like $(wildcard *.c).
Just remeber two things
1) All resulting path should be relative path to the folder containing OIL file.
2) OIL file should be located in the top-most folder for source code.
This means: you should use relative path, without "..".
Errico Guidieri
since the entry of APP_SRC is copied verbatim in a makefile variable APP_SRC, actually you can use any make function to valorize it, like $(wildcard *.c).
Just remeber two things
1) All resulting path should be relative path to the folder containing OIL file.
2) OIL file should be located in the top-most folder for source code.
This means: you should use relative path, without "..".
Errico Guidieri