Sha256: 9a3bf44abff3fbb34d25c484a9d58af7a927f3e2a686a6dae4935e690fe89df3
Contents?: true
Size: 1.39 KB
Versions: 7
Compression:
Stored size: 1.39 KB
Contents
# ========================================== # 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] # ========================================== UNITY_ROOT=../.. C_COMPILER=gcc TARGET_BASE1=test1 TARGET_BASE2=test2 ifeq ($(OS),Windows_NT) TARGET_EXTENSION=.exe else TARGET_EXTENSION=.out endif TARGET1 = $(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.c SRC_FILES2=$(UNITY_ROOT)/src/unity.c src/ProductionCode2.c test/TestProductionCode2.c test/test_runners/TestProductionCode2_Runner.c INC_DIRS=-Isrc -I$(UNITY_ROOT)/src SYMBOLS=-DTEST ifeq ($(OS),Windows_NT) CLEANUP = del /F /Q $(TARGET1) && del /F /Q $(TARGET2) else CLEANUP = rm -f build/*.o ; rm -f $(TARGET1) ; rm -f $(TARGET2) endif all: clean default default: # ruby auto/generate_test_runner.rb test/TestProductionCode.c test/test_runners/TestProductionCode_Runner.c # ruby auto/generate_test_runner.rb test/TestProductionCode2.c test/test_runners/TestProductionCode2_Runner.c $(C_COMPILER) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES1) -o $(TARGET1) $(C_COMPILER) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES2) -o $(TARGET2) ./$(TARGET1) ./$(TARGET2) clean: $(CLEANUP)
Version data entries
7 entries across 6 versions & 1 rubygems