From 995ca76581e3f4134b1e9f3b2d9b4c3efb0855d4 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Tue, 20 Nov 2018 13:28:47 +0800
Subject: [PATCH] Update nbiot all makefile and add nbiot parser code
---
src/cp_library/test/makefile | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
diff --git a/src/cp_library/test/makefile b/src/cp_library/test/makefile
index f1d11c8..697a554 100644
--- a/src/cp_library/test/makefile
+++ b/src/cp_library/test/makefile
@@ -21,31 +21,16 @@
ARCH?=arm
LINK_MODE=STATIC
-MODE=PRODUCTION
-DEBUG=1
CFLAGS+=-Wall -Werror
#CFLAGS+=-Wno-unused
-
-ifeq ("${MODE}", "PRODUCTION")
- CFLAGS+=-DPRODUCTION_MODE
-endif
-ifdef DEBUG
- CFLAGS+=-g -DDEBUG
-endif
COMPILE_DATE=$(shell date -u +"%Y-%m-%d %H:%M")
VPATH= .
SRCS = $(wildcard ${VPATH}/*.c)
OBJS = $(patsubst %.c,%.o,$(SRCS))
-TMP=$(shell echo $(ARCH) | tr "[A-Z]" "[a-z]")
-ifneq (,$(filter i386,$(TMP)))
- CROSS_COMPILE=
-else
- CROSS_COMPILE=/opt/rpi/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
-endif
-
+CROSS_COMPILE?=/opt/rpi/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
CFLAGS+=-I${LIB_PATH}
LDFLAGS+=-L${LIB_PATH} -l${LIB_NAME}
--
Gitblit v1.9.1