Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Commit

Permalink
feat(elfname): modify Makefile to config project name
Browse files Browse the repository at this point in the history
  • Loading branch information
ustccw committed Apr 13, 2018
1 parent fd91fe3 commit d56ec6f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Expand Up @@ -6,17 +6,21 @@
export PROJECT_PATH := $(PWD)
export IDF_PATH ?= $(PWD)/esp-idf

ifeq ($(SERVER), 1)
PROJECT_NAME := iotivity_server
else
PROJECT_NAME := iotivity_client
endif

include $(IDF_PATH)/make/project.mk

# sdkconfig is included project.mk recursively
# after setting sdkconfig done, start user layer macro define
ifdef CONFIG_IOTIVITY_CLIENT
PROJECT_NAME := iotivity_client
CFLAGS += -DOC_CLIENT
endif

ifdef CONFIG_IOTIVITY_SERVER
PROJECT_NAME := iotivity_server
CFLAGS += -DOC_SERVER
endif

Expand Down

0 comments on commit d56ec6f

Please sign in to comment.