2017-09-08 00:20:34 +08:00
|
|
|
################################################################################
|
|
|
|
#
|
2017-09-23 03:03:24 +08:00
|
|
|
# Copyright (C) 2017 by Intel Corporation, All Rights Reserved.
|
2017-09-08 00:20:34 +08:00
|
|
|
#
|
|
|
|
# Global configuration Makefile. Included everywhere.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-23 03:03:24 +08:00
|
|
|
# EDIT HERE:
|
2017-09-08 00:20:34 +08:00
|
|
|
CC:=gcc
|
|
|
|
CFLAGS:=-Os -std=c99 -Wall -Wextra -D_ISOC99_SOURCE -MMD -I../lib/include/ -I../lib/source/ -I../tests/include/
|
|
|
|
vpath %.c ../lib/source/
|
|
|
|
ENABLE_TESTS=true
|
|
|
|
|
|
|
|
# override MinGW built-in recipe
|
|
|
|
%.o: %.c
|
|
|
|
$(COMPILE.c) $(OUTPUT_OPTION) $<
|
|
|
|
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
DOTEXE:=.exe
|
|
|
|
endif
|
|
|
|
|
2017-09-23 03:03:24 +08:00
|
|
|
# DO NOT EDIT AFTER THIS POINT:
|
2017-09-08 00:20:34 +08:00
|
|
|
ifeq ($(ENABLE_TESTS), true)
|
|
|
|
CFLAGS += -DENABLE_TESTS
|
|
|
|
else
|
|
|
|
CFLAGS += -DDISABLE_TESTS
|
|
|
|
endif
|
|
|
|
|
2017-09-23 03:03:24 +08:00
|
|
|
export CC
|
|
|
|
export CFLAGS
|
|
|
|
export VPATH
|
|
|
|
export ENABLE_TESTS
|
|
|
|
|
2017-09-08 00:20:34 +08:00
|
|
|
################################################################################
|