mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-26 01:41:35 +01:00
Updated makefile to run tests after building and added :clean and :all tasks.
Added UnityHelper module in order to show how to extend Unity. git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@2 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
21
makefile
21
makefile
@@ -1,13 +1,28 @@
|
||||
C_COMPILER=gcc
|
||||
OUT_FILE=-o testunity
|
||||
TARGET_BASE = testunity
|
||||
ifeq ($(OS),Windows_NT)
|
||||
OUT_EXTENSION=.exe
|
||||
TARGET_EXTENSION=.exe
|
||||
else
|
||||
OUT_EXTENSION=.out
|
||||
TARGET_EXTENSION=.out
|
||||
endif
|
||||
TARGET = $(TARGET_BASE)$(TARGET_EXTENSION)
|
||||
OUT_FILE=-o $(TARGET)
|
||||
SRC_FILES=src/unity.c test/testunity.c test/testunity_Runner.c
|
||||
INC_DIRS=-Isrc
|
||||
SYMBOLS=-DTEST
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
CLEANUP = del /F /Q bin\* && del /F /Q $(TARGET)
|
||||
else
|
||||
CLEANUP = rm -f bin/*.o ; rm -f $(TARGET)
|
||||
endif
|
||||
|
||||
all: clean default
|
||||
|
||||
default:
|
||||
$(C_COMPILER) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES) $(OUT_FILE)$(OUT_EXTENSION)
|
||||
$(TARGET)
|
||||
|
||||
clean:
|
||||
$(CLEANUP)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user