Factorize the HOSTCC/HOSTCXX definition

Change-Id: I449289e999238c7ca54974e071577d06130991a9
This commit is contained in:
Romain Goyet
2016-11-05 14:51:55 +01:00
parent 150f52a993
commit 4eae83278d
4 changed files with 3 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ ifndef USE_LIBA
endif
HOSTCC = gcc
HOSTCXX = g++
# Flags - Header search path
SFLAGS += -Ilib -I.

View File

@@ -48,7 +48,7 @@ INLINER := escher/image/inliner
$(INLINER): escher/image/inliner.c
@echo "HOSTCC $@"
@$(HOSTCC) `libpng-config --cflags` `libpng-config --ldflags` $< -o $@
@$(HOSTCC) -std=c99 `libpng-config --cflags` `libpng-config --ldflags` $< -o $@
inline_image_headers := $(inline_images:.png=.h)
inline_image_sources := $(inline_images:.png=.cpp)

View File

@@ -47,7 +47,7 @@ kandinsky/src/font.c: kandinsky/fonts/rasterizer
kandinsky/fonts/rasterizer: kandinsky/fonts/rasterizer.c
@echo "HOSTCC $@"
@$(HOSTCC) $(RASTERIZER_CFLAGS) $< $(RASTERIZER_LDFLAGS) -o $@
@$(HOSTCC) -std=c99 $(RASTERIZER_CFLAGS) $< $(RASTERIZER_LDFLAGS) -o $@
products += $(font_files) kandinsky/fonts/rasterizer

View File

@@ -25,9 +25,6 @@ products += $(rulegen_objs) $(RULEGEN) $(addprefix $(dir)/,\
GENERATOR_CXXFLAGS = -std=c++11 -Wno-deprecated-register
HOSTCC = clang
HOSTCXX = clang++
$(rulegen_objs): %.o: %.cpp
@echo "HOSTCC $@"
@$(HOSTCXX) $(GENERATOR_CXXFLAGS) -c $< -o $@