Sha256: 8155109451d06c4ccf3de8a170c5343e9c9d22f8cbfaa0e476641174bab7cb13

Contents?: true

Size: 1.77 KB

Versions: 14

Compression:

Stored size: 1.77 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]
# ==========================================

#We try to detect the OS we are running on, and adjust commands as needed
ifeq ($(OSTYPE),cygwin)
	CLEANUP = rm -f
	MKDIR = mkdir -p
	TARGET_EXTENSION=.out
elseifeq ($(OSTYPE),msys)
    CLEANUP = rm -f
	MKDIR = mkdir -p
	TARGET_EXTENSION=.exe
elseifeq ($(OS),Windows_NT)
	CLEANUP = del /F /Q
	MKDIR = mkdir
	TARGET_EXTENSION=.exe
else
	CLEANUP = rm -f
	MKDIR = mkdir -p
	TARGET_EXTENSION=.out
endif

UNITY_ROOT=../..
C_COMPILER=gcc

CFLAGS = -std=c99
CFLAGS += -Wall
CFLAGS += -Wextra
CFLAGS += -Werror 
CFLAGS += -Wpointer-arith
CFLAGS += -Wcast-align
CFLAGS += -Wwrite-strings
CFLAGS += -Wswitch-default
CFLAGS += -Wunreachable-code
CFLAGS += -Winit-self
CFLAGS += -Wmissing-field-initializers
CFLAGS += -Wno-unknown-pragmas
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wundef
CFLAGS += -Wold-style-definition
CFLAGS += -Wmissing-prototypes
CFLAGS += -Wmissing-declarations
CFLAGS += -DUNITY_FIXTURES

TARGET_BASE1=all_tests
TARGET1 = $(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.c
INC_DIRS=-Isrc -I$(UNITY_ROOT)/src -I$(UNITY_ROOT)/extras/fixture/src
SYMBOLS=

all: clean default

default:
	$(C_COMPILER) $(CFLAGS) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES1) -o $(TARGET1)
	./$(TARGET1) -v

clean:
	$(CLEANUP)

Version data entries

14 entries across 4 versions & 1 rubygems

Version Path
ceedling-0.21.0 vendor/c_exception/vendor/unity/examples/example_2/makefile
ceedling-0.21.0 vendor/unity/examples/example_2/makefile
ceedling-0.21.0 vendor/cmock/vendor/unity/examples/example_2/makefile
ceedling-0.21.0 vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/makefile
ceedling-0.20.3 vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/makefile
ceedling-0.20.3 vendor/c_exception/vendor/unity/examples/example_2/makefile
ceedling-0.20.3 vendor/cmock/vendor/unity/examples/example_2/makefile
ceedling-0.20.3 vendor/unity/examples/example_2/makefile
ceedling-0.20.2 vendor/c_exception/vendor/unity/examples/example_2/makefile
ceedling-0.20.2 vendor/cmock/vendor/unity/examples/example_2/makefile
ceedling-0.20.2 vendor/unity/examples/example_2/makefile
ceedling-0.20.2 vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/makefile
ceedling-0.19.0 vendor/unity/examples/example_2/makefile
ceedling-0.19.0 vendor/cmock/vendor/unity/examples/example_2/makefile