make compilation of sc_heap module dependent

This commit is contained in:
Oleg Hahm 2013-12-13 18:49:19 +01:00
parent 0f20a3c87f
commit 3f983db20a
2 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,4 @@
SRC = shell_commands.c sc_id.c sc_heap.c SRC = shell_commands.c sc_id.c
INCLUDES = -I../../../core/include -I../../include -I../../../drivers/include/ INCLUDES = -I../../../core/include -I../../include -I../../../drivers/include/
ifneq (,$(findstring cc110x_ng,$(USEMODULE))) ifneq (,$(findstring cc110x_ng,$(USEMODULE)))
@ -32,6 +32,9 @@ endif
ifneq (,$(findstring sht11,$(USEMODULE))) ifneq (,$(findstring sht11,$(USEMODULE)))
SRC += sc_sht11.c SRC += sc_sht11.c
endif endif
ifneq (,$(findstring lpc_common,$(USEMODULE)))
SRC += sc_heap.c
endif
OBJ = $(SRC:%.c=$(BINDIR)%.o) OBJ = $(SRC:%.c=$(BINDIR)%.o)
DEP = $(SRC:%.c=$(BINDIR)%.d) DEP = $(SRC:%.c=$(BINDIR)%.d)

View File

@ -18,8 +18,6 @@
* @note $Id: sc_heap.c 3855 2013-09-05 12:40:11 kasmi $ * @note $Id: sc_heap.c 3855 2013-09-05 12:40:11 kasmi $
*/ */
#ifdef MODULE_LPC_COMMON
extern void heap_stats(void); extern void heap_stats(void);
void _heap_handler(char *unused) void _heap_handler(char *unused)
@ -28,5 +26,3 @@ void _heap_handler(char *unused)
heap_stats(); heap_stats();
} }
#endif