Makefile cleanup

remove TARGET_YOCTO
replace "=" with "?=" if variable is defined, don't redefine.

Signed-off-by: Tianhua Sun <tianhuax.s.sun@intel.com>
This commit is contained in:
Tianhua Sun 2018-03-28 12:47:25 +08:00 committed by Jack Ren
parent 10129556a7
commit 6c04d576ec

View File

@ -7,9 +7,7 @@ RC_VERSION=2
BASEDIR := $(shell pwd) BASEDIR := $(shell pwd)
DM_OBJDIR ?= $(CURDIR)/build DM_OBJDIR ?= $(CURDIR)/build
ifneq ($(TARGET_YOCTO), TRUE) CC ?= gcc
CC := gcc
endif
CFLAGS := -g -O0 -std=gnu11 CFLAGS := -g -O0 -std=gnu11
CFLAGS += -D_GNU_SOURCE CFLAGS += -D_GNU_SOURCE