mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Factorize the HOSTCC/HOSTCXX definition
Change-Id: I449289e999238c7ca54974e071577d06130991a9
This commit is contained in:
1
Makefile
1
Makefile
@@ -7,6 +7,7 @@ ifndef USE_LIBA
|
||||
endif
|
||||
|
||||
HOSTCC = gcc
|
||||
HOSTCXX = g++
|
||||
|
||||
# Flags - Header search path
|
||||
SFLAGS += -Ilib -I.
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 $@
|
||||
|
||||
Reference in New Issue
Block a user