[riot-devel] Include in Makefile

Baptiste Clenet bapclenet at gmail.com
Wed Oct 14 15:23:42 CEST 2015


Thanks Thomas and Rakendra. I didn't try it but it will work as good
as Attilio solution expect from the fact that it will use only one
module APPLICATION.

Thanks again!

Cheers,

Baptiste

2015-10-14 14:03 GMT+02:00 Thomas Eichinger <thomas.eichinger at fu-berlin.de>:
> Baptist,
>
> Did you try the following?
>
> app/Makefile:
> ```
> ...
> DIRS += thingA thingB
> INCLUDES += -I$(CURDIR)/include -I$(CURDIR)/thingA -I$(CURDIR)/thingB
> ...
> ```
>
> app/thingA/Makefile, app/thingB/Makefile
> ```
> module = $(APPLICATION)
>
> include $(RIOTBASE)/Makefile.base
> ```
>
> This way all code in `app` should form one module.
> Let me know if this helps.
>
> Best,
> Thomas
>
> On 14 Oct 2015, at 9:05 CEST(+0200), Baptiste Clenet wrote:
>
>> Anyone? @OlegHahm , @daniel-k ?
>>
>> 2015-10-09 16:50 GMT+02:00 Baptiste Clenet <bapclenet at gmail.com>:
>>> Hi all,
>>>
>>> I'm building an example (let's called it "app") for RIOT with the
>>> following structure:
>>> app/*.c
>>> app/include/*.h
>>> app/thingA/*.c
>>> app/thingA/include*.h
>>> app/thingB/*.c
>>> app/thingB/include*.h
>>>
>>> How to add the required path in the Makefile? Should I add
>>> Makefile.base in each folder or is there another way to do it with
>>> RIOT Makefile ? I couldn't find any example of this structure.
>>>
>>> Cheers,
>>>
>>>
>>> --
>>> Baptiste
>>
>>
>>
>> --
>> Baptiste
>> _______________________________________________
>> devel mailing list
>> devel at riot-os.org
>> https://lists.riot-os.org/mailman/listinfo/devel
> _______________________________________________
> devel mailing list
> devel at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel



-- 
Baptiste


More information about the devel mailing list