tflite/tools/make: replace CCFLAGS with CFLAGS

This commit is contained in:
Johan Euphrosine 2019-04-10 17:16:55 +09:00
parent 306d335dde
commit 413effbdae
5 changed files with 8 additions and 8 deletions

View File

@ -57,7 +57,7 @@ LIBS := \
# these settings are for the target compiler.
CXXFLAGS := -O3 -DNDEBUG -fPIC
CXXFLAGS += $(EXTRA_CXXFLAGS)
CCFLAGS := ${CXXFLAGS}
CFLAGS := ${CXXFLAGS}
CXXFLAGS += --std=c++11
CFLAGS :=
LDOPTS := -L/usr/local/lib
@ -206,7 +206,7 @@ $(OBJDIR)%.o: %.cc
# For normal manually-created TensorFlow C++ source files.
$(OBJDIR)%.o: %.c
@mkdir -p $(dir $@)
$(CC) $(CCFLAGS) $(INCLUDES) -c $< -o $@
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
# The target that's compiled if there's no command-line arguments.
all: $(LIB_PATH) $(MINIMAL_BINARY) $(BENCHMARK_BINARY)

View File

@ -11,7 +11,7 @@ ifeq ($(TARGET),aarch64)
-ftree-vectorize \
-fPIC
CCFLAGS += \
CFLAGS += \
-march=armv8-a \
-funsafe-math-optimizations \
-ftree-vectorize \

View File

@ -31,8 +31,8 @@ ifeq ($(TARGET), ios)
${IPHONEOS_SYSROOT} \
-arch $(TARGET_ARCH) \
-O3
CCFLAGS += -miphoneos-version-min=$(MIN_SDK_VERSION) \
-fembed-bitcode \
CFLAGS += -miphoneos-version-min=$(MIN_SDK_VERSION) \
-fembed-bitcode \
-mno-thumb \
-isysroot \
${IPHONEOS_SYSROOT} \

View File

@ -4,7 +4,7 @@ ifeq ($(TARGET), linux)
-fPIC \
-DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK \
-pthread
CCFLAGS += \
CFLAGS += \
-fPIC \
-DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK \
-pthread

View File

@ -13,7 +13,7 @@ ifeq ($(TARGET),rpi)
-ftree-vectorize \
-fPIC
CCFLAGS += \
CFLAGS += \
-march=armv7-a \
-mfpu=neon-vfpv4 \
-funsafe-math-optimizations \
@ -37,7 +37,7 @@ ifeq ($(TARGET),rpi)
-ftree-vectorize \
-fPIC
CCFLAGS += \
CFLAGS += \
-march=armv6 \
-mfpu=vfp \
-funsafe-math-optimizations \