30 lines
781 B
Makefile
30 lines
781 B
Makefile
|
################################################################################
|
||
|
#
|
||
|
# Copyright (C) 2015 by Intel Corporation, All Rights Reserved.
|
||
|
#
|
||
|
# Global configuration Makefile. Included everywhere.
|
||
|
#
|
||
|
################################################################################
|
||
|
|
||
|
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
|
||
|
|
||
|
# DO NOT EDIT THIS:
|
||
|
ifeq ($(ENABLE_TESTS), true)
|
||
|
CFLAGS += -DENABLE_TESTS
|
||
|
else
|
||
|
CFLAGS += -DDISABLE_TESTS
|
||
|
endif
|
||
|
|
||
|
################################################################################
|