cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

Anonymous
Not applicable

I have created a new application folder with a make file in the Apps folder. This is what my make file looks like

NAME := App_Ly05

$(NAME)_SOURCES := ly05.c \

    Tests/SimpleTestClient.c \

    nanopb/pb_encode.c \

    nanopb/pb_decode.c \

    nanopb/Messages.pb.c

$(NAME)_COMPONENTS := inputs/gpio_keypad

WIFI_CONFIG_DCT_H := wifi_config_dct.h


I want to add folders to the include search folders? How can I do this. I tried doing

CFLAG += -I<Path>

but that didn't really work. Any help will be appreciated.


Thanks

Kartik    



0 Likes
5 Replies
Anonymous
Not applicable

I was wondering if someone can help with this .. I guess its a bit basic with regards to Makefiles but I'm more of a Make novice.. any help is appreciated..

Thanks

Kartik

0 Likes
Anonymous
Not applicable

Could Still use some help on this. I'm seeing another issue. I tried to remove the use of the wifi_config_dct.h file by removing the reference in the makefile. Weirdly, after doing this, my project directory in the Apps folder is no longer searched for Include files.

0 Likes
Anonymous
Not applicable

Hi seyhan, I was wondering if you were able to get any leads on this issue. I want to be able to some folders to the Include search paths when building my application and I'm not sure how to add this to the make file. Basically I want to add a -I path to the compiler flags. Any help here is appreciated.

Thanks

Kartik

0 Likes
SeyhanA_31
Employee

Hi Kartik,

You may add an directory for your source and header files to your application.

Here is an example for adding mysource directory for your source files and adding myheader directory for header files.

Assume these files are for your application:

.../apps/YourAppDirectoyInWicedSDK/myapp.c

.../apps/YourAppDirectoyInWicedSDK/mysource/mysource.c

.../apps/YourAppDirectoyInWicedSDK/myheader/myheader.h

Here is your make file .../apps/YourAppDirectoyInWicedSDK/myapp.mk

NAME := App_MyApp

$(NAME)_SOURCES := myapp.c \

                                    mysource/mysource.c

$(NAME)_INCLUDES += -I ./myheader

You may include the myheader.h file in myapp.c as #include "myheader.h".

Hope it helps,

Seyhan

Anonymous
Not applicable

Thanks a lot seyhan

0 Likes