| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 | # ==========================================#   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=c89CFLAGS += -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=test1TARGET_BASE2=test2TARGET1 = $(TARGET_BASE1)$(TARGET_EXTENSION)TARGET2 = $(TARGET_BASE2)$(TARGET_EXTENSION)SRC_FILES1=$(UNITY_ROOT)/src/unity.c src/ProductionCode.c  test/TestProductionCode.c  test/test_runners/TestProductionCode_Runner.cSRC_FILES2=$(UNITY_ROOT)/src/unity.c src/ProductionCode2.c test/TestProductionCode2.c test/test_runners/TestProductionCode2_Runner.cINC_DIRS=-Isrc -I$(UNITY_ROOT)/srcSYMBOLS=all: clean defaultdefault: $(SRC_FILES1) $(SRC_FILES2)	$(C_COMPILER) $(CFLAGS) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES1) -o $(TARGET1)	$(C_COMPILER) $(CFLAGS) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES2) -o $(TARGET2)	- ./$(TARGET1)	./$(TARGET2)test/test_runners/TestProductionCode_Runner.c: test/TestProductionCode.c	ruby $(UNITY_ROOT)/auto/generate_test_runner.rb test/TestProductionCode.c  test/test_runners/TestProductionCode_Runner.ctest/test_runners/TestProductionCode2_Runner.c: test/TestProductionCode2.c	ruby $(UNITY_ROOT)/auto/generate_test_runner.rb test/TestProductionCode2.c test/test_runners/TestProductionCode2_Runner.cclean:	$(CLEANUP) $(TARGET1) $(TARGET2)ci: CFLAGS += -Werrorci: default
 |