mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-30 11:44:27 +01:00
Get example 1 to compile easily on systems without ruby
This commit is contained in:
@@ -29,7 +29,6 @@ C_COMPILER=gcc
|
|||||||
CFLAGS=-std=c89
|
CFLAGS=-std=c89
|
||||||
CFLAGS += -Wall
|
CFLAGS += -Wall
|
||||||
CFLAGS += -Wextra
|
CFLAGS += -Wextra
|
||||||
CFLAGS += -Werror
|
|
||||||
CFLAGS += -Wpointer-arith
|
CFLAGS += -Wpointer-arith
|
||||||
CFLAGS += -Wcast-align
|
CFLAGS += -Wcast-align
|
||||||
CFLAGS += -Wwrite-strings
|
CFLAGS += -Wwrite-strings
|
||||||
@@ -53,14 +52,17 @@ SYMBOLS=-DTEST
|
|||||||
|
|
||||||
all: clean default
|
all: clean default
|
||||||
|
|
||||||
default:
|
default: $(SRC_FILES1) $(SRC_FILES2)
|
||||||
ruby $(UNITY_ROOT)/auto/generate_test_runner.rb test/TestProductionCode.c test/test_runners/TestProductionCode_Runner.c
|
|
||||||
ruby $(UNITY_ROOT)/auto/generate_test_runner.rb test/TestProductionCode2.c test/test_runners/TestProductionCode2_Runner.c
|
|
||||||
$(C_COMPILER) $(CFLAGS) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES1) -o $(TARGET1)
|
$(C_COMPILER) $(CFLAGS) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES1) -o $(TARGET1)
|
||||||
$(C_COMPILER) $(CFLAGS) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES2) -o $(TARGET2)
|
$(C_COMPILER) $(CFLAGS) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES2) -o $(TARGET2)
|
||||||
./$(TARGET1)
|
- ./$(TARGET1)
|
||||||
./$(TARGET2)
|
./$(TARGET2)
|
||||||
|
|
||||||
clean:
|
test/test_runners/TestProductionCode_Runner.c: test/TestProductionCode.c
|
||||||
$(CLEANUP)
|
ruby $(UNITY_ROOT)/auto/generate_test_runner.rb test/TestProductionCode.c test/test_runners/TestProductionCode_Runner.c
|
||||||
|
test/test_runners/TestProductionCode2_Runner.c: test/TestProductionCode2.c
|
||||||
|
ruby $(UNITY_ROOT)/auto/generate_test_runner.rb test/TestProductionCode2.c test/test_runners/TestProductionCode2_Runner.c
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(CLEANUP) $(TARGET1) $(TARGET2)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user