Skip to content

Commit

Permalink
feat: Joylink sdk 20180524
Browse files Browse the repository at this point in the history
xiewenxiang committed Jul 10, 2018
1 parent 044816d commit 15f3c05
Showing 93 changed files with 793 additions and 849 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
include ./Makefile.rule

ifeq (${AGENT_GW_EN}, yes)
DEPS= auth json list example joylink agent
else
DEPS= auth json list example joylink
endif

STATICLIBS = $(wildcard $(TARGET_LIB)/*.a)
SDKLIBNAME = libjoylinksdk.a

all: ${DEPS} sdk_lib jt

clean: ${DEPS}

distclean: ${DEPS}
${RM} ${TARGET_LIB}/*

${DEPS}:
make -C $@ $(MAKECMDGOALS)

jt:
make jt -C joylink

sdk_lib:
@for name in $(STATICLIBS); \
do \
${AR} x "$$name"; \
if [ "$$name" != "$(TARGET_LIB)/libjoylinksdk.a" ]; then ${RM} "$$name" ; fi;\
done
@${AR} -crs ${SDKLIBNAME} *.o
@${RANLIB} ${SDKLIBNAME}
@${RM} *.o
@${MV} ${SDKLIBNAME} $(TARGET_LIB)

.PHONY:all clean distclean ${DEPS} jt sdk_lib
Original file line number Diff line number Diff line change
@@ -30,7 +30,11 @@ MV = mv -f

LIBS += -lm

#CFLAGS += -D_AGENT_GW_
#AGENT_GW_EN=yes
ifeq (${AGENT_GW_EN}, yes)
CFLAGS += -D_AGENT_GW_
endif

#CFLAGS += -D_SAVE_FILE_

DEBUG=y
Loading

0 comments on commit 15f3c05

Please sign in to comment.