Kaspar Schleiser
560a509036
make: remove trailing slash from BINDIR variable
7 years ago
Kaspar Schleiser
1b0d9ef14b
make: treat packages like modules when it comes to linking
7 years ago
Joakim Nohlgård
a678e868e9
Makefile.include: Move USEMODULE CFLAGS expansion last
...
Some USEMODULE parts (e.g. defined in ${BOARD}/Makefile.dep) were not
being properly exported to CFLAGS -DMODULE_xxx options.
7 years ago
Joakim Nohlgård
77a15e7886
make: Place most configuration macros in a separate file instead of on the command line
7 years ago
Joakim Nohlgård
7835ab2be7
make: Move BOARD and CPU includes to Makefile.modules
7 years ago
Oleg Hahm
aef6256cc5
make: include DEFAULT_MODULES from cpu and boards
9 years ago
Oleg Hahm
9a6a91fcbb
make: filter out optional non-available modules
9 years ago
René Kijewski
938d7d441b
make: expose used features with `-DFEATURE_ABC`
...
All used feature requests (both in `FEATURES_REQUIRED` and
`FEATURES_OPTIONAL`) that could be satisfied get exposed to C with
`-DFEATURE_ABC`.
9 years ago
René Kijewski
4a9864ebc7
make / cortex m: replace hyphen in module name
...
When you compile for UDOO, you are greeted by a multitude of this
warnings:
```
<command-line>:0:14: warning: ISO C99 requires whitespace after the macro name [enabled by default]
```
The reason for that is the argument `-DMODULE_CORTEX-M3_COMMON`.
This PR fixes this problem by replacing hyphens with underscores for the
`-D…` argument.
9 years ago
René Kijewski
d19fc447ed
make: make DIRS usable for applications
9 years ago
René Kijewski
a8064fd97c
Automatically remove dups in `$(USEMODULE)`
9 years ago
René Kijewski
3f59eefbaf
Use subfolders in bin dir
...
Creating all object files in one directory is bound to produce name
clashes. RIOT developers may take care to use unique file names, but
external packages surely don't.
With this change all the objects of a module (e.g. `shell`) will be
created in `bin/$(BOARD)/$(MODULE)`.
I compared the final linker command before and after the change. The
`.o` files (e.g. `startup.o`, `syscall.o` ...) are included in the same
order. Neglecting the changed path name where the `.o` files reside, the
linker command stays exactly the same.
A major problem could be third party boards, because the location of the
`startup.o` needs to the specified now in
`boards/$(BOARD)/Makefile.include`, e.g.
```Makefile
export UNDEF += $(BINDIR)msp430_common/startup.o
```
9 years ago
René Kijewski
e740fbc800
make: Add DEFAULT_MODULE and DISABLE_MODULE
...
Closes #926
9 years ago
Ludwig Ortmann
91814e52ae
make: replace MAKEBASE with RIOTBASE
...
closes https://github.com/RIOT-OS/RIOT/issues/959
9 years ago
Ludwig Ortmann
d58da976c6
make: add Makefile.pseudomodules and use it
...
BASELIBS now defines targets for anything in USEMODULE that is not in PSEUDOMODULES
move defaulttransceiver to Makefile.pseudomodules
9 years ago
Ludwig Ortmann
8ac4f3332d
core cpu: add defaulttransceiver pseudomodule
...
update examples/default
9 years ago
Oleg Hahm
93e32953b3
always build and initialize hwtimer
...
Eliminates special treatment of the hwtimer module and makes it a
mandatory part of the kernel.
9 years ago
Martin Lenders
24b63bd9f0
Update libcoap
9 years ago
Ludwig Ortmann
73a2c4edf2
move Makefile.dep include
...
boards modify USEMODULE which can lead to additional dependencies.
including Makefile.dep last enables it to resolve all dependencies.
9 years ago
Oleg Hahm
8d13f57ae4
add basic include pathes by default
10 years ago
Oleg Hahm
593ee623b6
simplify and unify include pathes
...
additional:
* exporting include path in sys is mandatory for subfolders
* removed duplicate object file in linker call
10 years ago
Oleg Hahm
1e665b49de
build everything in the project directory
10 years ago
Oleg Hahm
6297516371
restructured and fixed arm architecutre files
10 years ago
Oleg Hahm
19e4034ace
Merge branch 'thomas-mc1322x'
...
Conflicts:
Makefile.modules
core/kernel_init.c
core/thread.c
cpu/arm_common/arm_cpu.c
cpu/arm_common/syscalls.c
cpu/lpc_common/hwtimer_cpu.c
cpu/lpc_common/iap.c
sys/include/transceiver.h
sys/net/sixlowpan/sixlowip.c
sys/net/sixlowpan/sixlowmac.c
sys/net/sixlowpan/sixlowmac.h
sys/net/sixlowpan/sixlowpan.c
sys/transceiver/Makefile
sys/transceiver/transceiver.c
10 years ago
Oliver Hahm
3d85573f9d
add kernel headers to default include path
10 years ago
Oleg Hahm
de038ed38c
* some minor Makefile cleanup
10 years ago
Oliver Hahm
2c6b406d2d
* renamed msp430_common module name
10 years ago
Oliver Hahm
f13ef5f500
* restructured cpu folder to distinguish between arm and lpc common files
10 years ago
Oliver Hahm
e6177e811a
* moved cpu and board specific parts to corresponding Makefiles
...
* introduced variable for cpu folder
10 years ago
Ludwig Ortmann
2883ca121e
migrate to current Makefile structure
10 years ago
Oliver Hahm
3a69aa8ebc
* added arm_common to include path for lpc2387 in Makefile.modules
...
* cleaned dist/Makefile up
10 years ago
Oliver Hahm
7a4dec1830
* replaced new Makefile name in Makefiles
10 years ago
Oliver Hahm
5ffe5a9c27
* renamed makefiles to Makefile
10 years ago