blob: 87a6c9fdb7b1ed9c06f92fc27ec8b07f5eb9134a [file] [log] [blame]
builddir = $out
disabled = false
# Each compiler has enabled all the warnings it can.
# Here we make them errors, and disable a few we don't want bothering us.
# TODO: -Wno-reserved-id-macro can go away when we refactor skcms_Transform().
warnings = -Werror $
-Wno-double-promotion $
-Wno-float-equal $
-Wno-padded $
-Wno-reserved-id-macro $
warnings_cc = $warnings $
-Wno-c++98-compat-pedantic $
-Wno-gnu-anonymous-struct $
-Wno-narrowing $
-Wno-old-style-cast $
rule compile_c
command = $disabled && touch $out || $cc -std=c11 -g -Os $warnings $cflags $extra_cflags $
-MD -MF $out.d -c $in -o $out
depfile = $out.d
deps = gcc
description = compile $out
rule compile_cc
command = $disabled && touch $out || $cc -std=c++11 -g -Os $warnings_cc $cflags $extra_cflags $
-MD -MF $out.d -c $in -o $out
depfile = $out.d
deps = gcc
description = compile $out
rule link
command = $disabled && touch $out || $cc $ldflags $extra_ldflags $in -ldl -pthread -o $out
description = link $out
include build/targets