Update Makefile to add command line parameters

Parameters are additional include and lib directories for future useage.

e.g. make INCLUDE="-I/foo" LIB="-L/bar"

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2017-09-28 16:01:50 +09:00
parent 6905e7aa1c
commit 8a2ac67b4f

View File

@@ -62,14 +62,16 @@ $(SUBDIR)/MQTTSNUnsubscribeServer.c
CXX := g++ CXX := g++
CPPFLAGS += CPPFLAGS +=
INCLUDES += -I$(SRCDIR) \ INCLUDE :=
INCLUDES += $(INCLUDE) -I$(SRCDIR) \
-I$(SRCDIR)/$(OS) \ -I$(SRCDIR)/$(OS) \
-I$(SRCDIR)/$(OS)/$(SENSORNET) \ -I$(SRCDIR)/$(OS)/$(SENSORNET) \
-I$(SUBDIR) \ -I$(SUBDIR) \
-I$(SRCDIR)/$(TEST) -I$(SRCDIR)/$(TEST)
DEFS := DEFS :=
LIBS += -L/usr/local/lib LIB :=
LIBS += $(LIB) -L/usr/local/lib
LDFLAGS := LDFLAGS :=
CXXFLAGS := -Wall -O3 -std=c++11 CXXFLAGS := -Wall -O3 -std=c++11
LDADD := -lpthread -lssl -lcrypto -lrt LDADD := -lpthread -lssl -lcrypto -lrt