mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
1b89f334e3
For MSP430 boards oneway-malloc is already used *if* `malloc.h` was included. The problem is that `malloc.h` is not a standard header, even though it is common. `stdlib.h` in the right place to look for `malloc()` and friends. This change removes this discrepancy. `malloc()` is just named like that, without the leading underscore. The symbols now are weak, which means that they won't override library functions if MSP's standard library will provide these functions at some point. (Unlikely, since using `malloc()` on tiny systems is less then optimal ...) Closes #1061 and #863.
100 lines
2.3 KiB
Makefile
100 lines
2.3 KiB
Makefile
MODULE = sys
|
|
ifneq (,$(filter auto_init,$(USEMODULE)))
|
|
DIRS += auto_init
|
|
endif
|
|
ifneq (,$(filter config,$(USEMODULE)))
|
|
DIRS += config
|
|
endif
|
|
ifneq (,$(filter lib,$(USEMODULE)))
|
|
DIRS += lib
|
|
endif
|
|
ifneq (,$(filter ping,$(USEMODULE)))
|
|
DIRS += ping
|
|
endif
|
|
ifneq (,$(filter ps,$(USEMODULE)))
|
|
DIRS += ps
|
|
endif
|
|
ifneq (,$(filter posix,$(USEMODULE)))
|
|
DIRS += posix
|
|
endif
|
|
ifneq (,$(filter pnet,$(USEMODULE)))
|
|
DIRS += posix/pnet
|
|
endif
|
|
ifneq (,$(filter pthread,$(USEMODULE)))
|
|
DIRS += posix/pthread
|
|
endif
|
|
ifneq (,$(filter shell,$(USEMODULE)))
|
|
DIRS += shell
|
|
endif
|
|
ifneq (,$(filter shell_commands,$(USEMODULE)))
|
|
DIRS += shell/commands
|
|
endif
|
|
ifneq (,$(filter timex,$(USEMODULE)))
|
|
DIRS += timex
|
|
endif
|
|
ifneq (,$(filter transceiver,$(USEMODULE)))
|
|
DIRS += transceiver
|
|
endif
|
|
ifneq (,$(filter uart0,$(USEMODULE)))
|
|
DIRS += uart0
|
|
endif
|
|
ifneq (,$(filter vtimer,$(USEMODULE)))
|
|
DIRS += vtimer
|
|
endif
|
|
ifneq (,$(filter net_if,$(USEMODULE)))
|
|
DIRS += net/link_layer/net_if
|
|
endif
|
|
ifneq (,$(filter destiny,$(USEMODULE)))
|
|
DIRS += net/transport_layer/destiny
|
|
endif
|
|
ifneq (,$(filter net_help,$(USEMODULE)))
|
|
DIRS += net/crosslayer/net_help
|
|
endif
|
|
ifneq (,$(filter protocol_multiplex,$(USEMODULE)))
|
|
DIRS += net/link_layer/protocol-multiplex
|
|
endif
|
|
ifneq (,$(filter sixlowpan,$(USEMODULE)))
|
|
DIRS += net/network_layer/sixlowpan
|
|
endif
|
|
ifneq (,$(filter sixlowborder,$(USEMODULE)))
|
|
DIRS += net/network_layer/sixlowpan/border
|
|
endif
|
|
ifneq (,$(filter rpl,$(USEMODULE)))
|
|
DIRS += net/routing/rpl
|
|
endif
|
|
ifneq (,$(filter routing,$(USEMODULE)))
|
|
DIRS += net/routing
|
|
endif
|
|
ifneq (,$(filter ieee802154,$(USEMODULE)))
|
|
DIRS += net/link_layer/ieee802154
|
|
endif
|
|
ifneq (,$(filter bloom,$(USEMODULE)))
|
|
DIRS += bloom
|
|
endif
|
|
ifneq (,$(filter crypto,$(USEMODULE)))
|
|
DIRS += crypto
|
|
endif
|
|
ifneq (,$(filter random,$(USEMODULE)))
|
|
DIRS += random
|
|
endif
|
|
ifneq (,$(filter hashes,$(USEMODULE)))
|
|
DIRS += hashes
|
|
endif
|
|
ifneq (,$(filter ccn_lite,$(USEMODULE)))
|
|
DIRS += net/ccn_lite
|
|
endif
|
|
ifneq (,$(filter ccn_lite_client,$(USEMODULE)))
|
|
DIRS += net/ccn_lite/util
|
|
endif
|
|
ifneq (,$(filter quad_math,$(USEMODULE)))
|
|
DIRS += quad_math
|
|
endif
|
|
ifneq (,$(filter oneway_malloc,$(USEMODULE)))
|
|
DIRS += oneway-malloc
|
|
endif
|
|
|
|
all: $(BINDIR)$(MODULE).a
|
|
@for i in $(DIRS) ; do "$(MAKE)" -C $$i || exit 1; done ;
|
|
|
|
include $(RIOTBASE)/Makefile.base
|