mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-09-15 22:59:59 +00:00
Updated example makefile
* Make would fail due to missing build directory. Now it doesn't try to delete build/
This commit is contained in:
+5
-4
@@ -4,6 +4,7 @@
|
|||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# [Released under MIT License. Please refer to license.txt for details]
|
||||||
# ==========================================
|
# ==========================================
|
||||||
|
|
||||||
|
UNITY_ROOT=..
|
||||||
C_COMPILER=gcc
|
C_COMPILER=gcc
|
||||||
TARGET_BASE1=test1
|
TARGET_BASE1=test1
|
||||||
TARGET_BASE2=test2
|
TARGET_BASE2=test2
|
||||||
@@ -14,13 +15,13 @@ else
|
|||||||
endif
|
endif
|
||||||
TARGET1 = $(TARGET_BASE1)$(TARGET_EXTENSION)
|
TARGET1 = $(TARGET_BASE1)$(TARGET_EXTENSION)
|
||||||
TARGET2 = $(TARGET_BASE2)$(TARGET_EXTENSION)
|
TARGET2 = $(TARGET_BASE2)$(TARGET_EXTENSION)
|
||||||
SRC_FILES1=../src/unity.c src/ProductionCode.c test/TestProductionCode.c test/no_ruby/TestProductionCode_Runner.c
|
SRC_FILES1=$(UNITY_ROOT)/src/unity.c src/ProductionCode.c test/TestProductionCode.c test/no_ruby/TestProductionCode_Runner.c
|
||||||
SRC_FILES2=../src/unity.c src/ProductionCode2.c test/TestProductionCode2.c test/no_ruby/TestProductionCode2_Runner.c
|
SRC_FILES2=$(UNITY_ROOT)/src/unity.c src/ProductionCode2.c test/TestProductionCode2.c test/no_ruby/TestProductionCode2_Runner.c
|
||||||
INC_DIRS=-Isrc -I../src
|
INC_DIRS=-Isrc -I$(UNITY_ROOT)/src
|
||||||
SYMBOLS=-DTEST
|
SYMBOLS=-DTEST
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
CLEANUP = del /F /Q build\* && del /F /Q $(TARGET1) && del /F /Q $(TARGET2)
|
CLEANUP = del /F /Q $(TARGET1) && del /F /Q $(TARGET2)
|
||||||
else
|
else
|
||||||
CLEANUP = rm -f build/*.o ; rm -f $(TARGET1) ; rm -f $(TARGET2)
|
CLEANUP = rm -f build/*.o ; rm -f $(TARGET1) ; rm -f $(TARGET2)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user