| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 | # ==========================================#   Unity Project - A Test Framework for C#   Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams#   [Released under MIT License. Please refer to license.txt for details]# ==========================================#We try to detect the OS we are running on, and adjust commands as neededifeq ($(OS),Windows_NT)  ifeq ($(shell uname -s),) # not in a bash-like shell	CLEANUP = del /F /Q	MKDIR = mkdir  else # in a bash-like shell, like msys	CLEANUP = rm -f	MKDIR = mkdir -p  endif	TARGET_EXTENSION=.exeelse	CLEANUP = rm -f	MKDIR = mkdir -p	TARGET_EXTENSION=.outendifC_COMPILER=gccifeq ($(shell uname -s), Darwin)C_COMPILER=clangendifUNITY_ROOT=../..CFLAGS=-std=c99CFLAGS += -WallCFLAGS += -WextraCFLAGS += -Wpointer-arithCFLAGS += -Wcast-alignCFLAGS += -Wwrite-stringsCFLAGS += -Wswitch-defaultCFLAGS += -Wunreachable-codeCFLAGS += -Winit-selfCFLAGS += -Wmissing-field-initializersCFLAGS += -Wno-unknown-pragmasCFLAGS += -Wstrict-prototypesCFLAGS += -WundefCFLAGS += -Wold-style-definitionTARGET_BASE1=all_testsTARGET1 = $(TARGET_BASE1)$(TARGET_EXTENSION)SRC_FILES1=\  $(UNITY_ROOT)/src/unity.c \  $(UNITY_ROOT)/extras/fixture/src/unity_fixture.c \  src/ProductionCode.c \  src/ProductionCode2.c \  test/TestProductionCode.c \  test/TestProductionCode2.c \  test/test_runners/TestProductionCode_Runner.c \  test/test_runners/TestProductionCode2_Runner.c \  test/test_runners/all_tests.cINC_DIRS=-Isrc -I$(UNITY_ROOT)/src -I$(UNITY_ROOT)/extras/fixture/srcSYMBOLS=all: clean defaultdefault:	$(C_COMPILER) $(CFLAGS) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES1) -o $(TARGET1)	- ./$(TARGET1) -vclean:	$(CLEANUP) $(TARGET1)ci: CFLAGS += -Werrorci: default
 |