Adjust the Cooja build system to the new build output dir structure
This commit is contained in:
parent
8121383950
commit
44d3f78b9c
@ -34,10 +34,10 @@ endif
|
||||
|
||||
endif ## QUICKSTART
|
||||
|
||||
#MAIN_SRC = $(OBJECTDIR)/$(LIBNAME).c
|
||||
MAIN_OBJ = $(OBJECTDIR)/$(LIBNAME).o
|
||||
ARCHIVE = $(OBJECTDIR)/$(LIBNAME).a
|
||||
JNILIB = $(OBJECTDIR)/$(LIBNAME).$(TARGET)
|
||||
#MAIN_SRC = $(BUILD_DIR_BOARD)/$(LIBNAME).c
|
||||
MAIN_OBJ = $(BUILD_DIR_BOARD)/$(LIBNAME).o
|
||||
ARCHIVE = $(BUILD_DIR_BOARD)/$(LIBNAME).a
|
||||
JNILIB = $(BUILD_DIR_BOARD)/$(LIBNAME).$(TARGET)
|
||||
CONTIKI_APP_OBJ = $(CONTIKI_APP).o
|
||||
|
||||
### COOJA platform sources
|
||||
|
@ -10,11 +10,11 @@ CUSTOM_RULE_LINK=1
|
||||
|
||||
REDEF_PRINTF=1 # Redefine functions to enable printf()s inside Cooja
|
||||
|
||||
# NB: Assumes ARCHIVE was not overridden and is in $(OBJECTDIR)
|
||||
# NB: Assumes ARCHIVE was not overridden and is in $(BUILD_DIR_BOARD)
|
||||
$(ARCHIVE): $(CONTIKI_OBJECTFILES) | $(OBJECTDIR)
|
||||
$(AR_COMMAND_1) $^ $(AR_COMMAND_2)
|
||||
|
||||
# NB: Assumes JNILIB was not overridden and is in $(OBJECTDIR)
|
||||
# NB: Assumes JNILIB was not overridden and is in $(BUILD_DIR_BOARD)
|
||||
$(JNILIB): $(CONTIKI_APP_OBJ) $(MAIN_OBJ) $(PROJECT_OBJECTFILES) $(ARCHIVE) | $(OBJECTDIR)
|
||||
|
||||
ifdef REDEF_PRINTF
|
||||
|
Loading…
Reference in New Issue
Block a user