mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-09 06:38:58 +08:00
Fixed examples compilation
This commit is contained in:
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
UNITY_ROOT=../..
|
UNITY_ROOT=../..
|
||||||
C_COMPILER=gcc
|
C_COMPILER=gcc
|
||||||
|
CFLAGS=-std=c99
|
||||||
TARGET_BASE1=test1
|
TARGET_BASE1=test1
|
||||||
TARGET_BASE2=test2
|
TARGET_BASE2=test2
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
@ -31,8 +32,8 @@ all: clean default
|
|||||||
default:
|
default:
|
||||||
# ruby auto/generate_test_runner.rb test/TestProductionCode.c test/test_runners/TestProductionCode_Runner.c
|
# 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
|
# 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) $(CFLAGS) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES1) -o $(TARGET1)
|
||||||
$(C_COMPILER) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES2) -o $(TARGET2)
|
$(C_COMPILER) $(CFLAGS) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES2) -o $(TARGET2)
|
||||||
./$(TARGET1)
|
./$(TARGET1)
|
||||||
./$(TARGET2)
|
./$(TARGET2)
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
UNITY_ROOT=../..
|
UNITY_ROOT=../..
|
||||||
C_COMPILER=gcc
|
C_COMPILER=gcc
|
||||||
|
CFLAGS=-std=c99
|
||||||
TARGET_BASE1=test1
|
TARGET_BASE1=test1
|
||||||
TARGET_BASE2=test2
|
TARGET_BASE2=test2
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
@ -31,8 +32,8 @@ all: clean default
|
|||||||
default:
|
default:
|
||||||
# ruby auto/generate_test_runner.rb test/TestProductionCode.c test/no_ruby/TestProductionCode_Runner.c
|
# ruby auto/generate_test_runner.rb test/TestProductionCode.c test/no_ruby/TestProductionCode_Runner.c
|
||||||
# ruby auto/generate_test_runner.rb test/TestProductionCode2.c test/no_ruby/TestProductionCode2_Runner.c
|
# ruby auto/generate_test_runner.rb test/TestProductionCode2.c test/no_ruby/TestProductionCode2_Runner.c
|
||||||
$(C_COMPILER) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES1) -o $(TARGET1)
|
$(C_COMPILER) $(CFLAGS) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES1) -o $(TARGET1)
|
||||||
$(C_COMPILER) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES2) -o $(TARGET2)
|
$(C_COMPILER) $(CFLAGS) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES2) -o $(TARGET2)
|
||||||
./$(TARGET1)
|
./$(TARGET1)
|
||||||
./$(TARGET2)
|
./$(TARGET2)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user