blob: a5b9fb77d44479b313c39566280089e1bb09eeab [file] [log] [blame]
David Brownfecda2d2017-09-07 10:20:34 -06001################################################################################
2#
Fabio Utzig3efe6b62017-09-22 16:03:24 -03003# Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
David Brownfecda2d2017-09-07 10:20:34 -06004#
5# Global configuration Makefile. Included everywhere.
6#
7################################################################################
8
Fabio Utzig3efe6b62017-09-22 16:03:24 -03009# EDIT HERE:
David Brownfecda2d2017-09-07 10:20:34 -060010CC:=gcc
11CFLAGS:=-Os -std=c99 -Wall -Wextra -D_ISOC99_SOURCE -MMD -I../lib/include/ -I../lib/source/ -I../tests/include/
12vpath %.c ../lib/source/
13ENABLE_TESTS=true
14
15# override MinGW built-in recipe
16%.o: %.c
17 $(COMPILE.c) $(OUTPUT_OPTION) $<
18
19ifeq ($(OS),Windows_NT)
20DOTEXE:=.exe
21endif
22
Fabio Utzig3efe6b62017-09-22 16:03:24 -030023# DO NOT EDIT AFTER THIS POINT:
David Brownfecda2d2017-09-07 10:20:34 -060024ifeq ($(ENABLE_TESTS), true)
25CFLAGS += -DENABLE_TESTS
26else
27CFLAGS += -DDISABLE_TESTS
28endif
29
Fabio Utzig3efe6b62017-09-22 16:03:24 -030030export CC
31export CFLAGS
32export VPATH
33export ENABLE_TESTS
34
David Brownfecda2d2017-09-07 10:20:34 -060035################################################################################