mirror of
https://github.com/ThrowTheSwitch/Unity
synced 2025-03-12 16:11:12 -04:00
- fixed broken gcc makefile git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@95 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
36 lines
948 B
Makefile
36 lines
948 B
Makefile
# ==========================================
|
|
# 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]
|
|
# ==========================================
|
|
|
|
C_COMPILER=gcc
|
|
TARGET_BASE = testunity
|
|
ifeq ($(OS),Windows_NT)
|
|
TARGET_EXTENSION=.exe
|
|
else
|
|
TARGET_EXTENSION=.out
|
|
endif
|
|
TARGET = $(TARGET_BASE)$(TARGET_EXTENSION)
|
|
OUT_FILE=-o $(TARGET)
|
|
SRC_FILES=src/unity.c test/testunity.c build/testunity_Runner.c
|
|
INC_DIRS=-Isrc
|
|
SYMBOLS=-DTEST -DUNITY_SUPPORT_64
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
CLEANUP = del /F /Q build\* && del /F /Q $(TARGET)
|
|
else
|
|
CLEANUP = rm -f build/*.o ; rm -f $(TARGET)
|
|
endif
|
|
|
|
all: clean default
|
|
|
|
default:
|
|
ruby auto/generate_test_runner.rb test/testunity.c build/testunity_Runner.c
|
|
$(C_COMPILER) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES) $(OUT_FILE)
|
|
$(TARGET)
|
|
|
|
clean:
|
|
$(CLEANUP)
|
|
|