-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Hi, I am currently working on WINC1500 WiFi driver for MKR1000 and various boards (related: #6666)
I am trying to keep the code structure of the original WiFi driver in an application directory. So, my application directory looks like this:
app
|-- main.c
|-- boo1
| |-- boo1.c
| └-- boo1.h
|-- boo2
| |-- boo2.c
| └-- boo2.h
└-- boo3
|-- boo3.c
└-- boo3.h
and I added a following Makefile:
APPLICATION = test_winc1500
RIOTBASE ?= $(path-to-riot-root)
DIRS += boo1 boo2 boo3
BOARD ?= arduino-mkr1000
FEATURES_REQUIRED = periph_uart periph_spi periph_gpio
USEMODULE += shell
USEMODULE += xtimer
include $(RIOTBASE)/Makefile.includeLastly I added a simple include $(RIOTBASE)/Makefile.include Makefile in every boo directories.
When try compiling using make all it looks like each source is compiled but I got an error because they are not not linked together with the main program at the last stage. At least I got compiled boo*.o objects in bin/source directory.
So I have a couple of question here:
- Did I miss something? What script I should add to compile it correctly?
- Does it look OK so far? Especially, do I need to add that simple Makefile in every subdirectory?
Thank you in advance,
Bumsik.
Metadata
Metadata
Assignees
Labels
No labels