From 6c04d576ec0f8803d0a9fa006a924ad9e620f3db Mon Sep 17 00:00:00 2001 From: Tianhua Sun Date: Wed, 28 Mar 2018 12:47:25 +0800 Subject: [PATCH] Makefile cleanup remove TARGET_YOCTO replace "=" with "?=" if variable is defined, don't redefine. Signed-off-by: Tianhua Sun --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c07c26392..22c7f3adb 100644 --- a/Makefile +++ b/Makefile @@ -7,9 +7,7 @@ RC_VERSION=2 BASEDIR := $(shell pwd) DM_OBJDIR ?= $(CURDIR)/build -ifneq ($(TARGET_YOCTO), TRUE) -CC := gcc -endif +CC ?= gcc CFLAGS := -g -O0 -std=gnu11 CFLAGS += -D_GNU_SOURCE