-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from rhempel/develop
Major reorganization of umm_malloc
- Loading branch information
Showing
17 changed files
with
2,395 additions
and
2,035 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Temporary editor files | ||
*.swp | ||
|
||
# Object files | ||
*.o | ||
|
||
# Other files | ||
.DS_Store | ||
|
||
# Unity Test Framework output directory | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "includes/c-helper-macros"] | ||
path = includes/c-helper-macros | ||
url = https://github.com/rhempel/c-helper-macros |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
ifeq ($(OSTYPE),cygwin) | ||
CLEANUP=rm -f | ||
MKDIR=mkdir -p | ||
TARGET_EXTENSION=out | ||
else ifeq ($(OS),Windows_NT) | ||
CLEANUP=del /F /Q | ||
MKDIR=mkdir | ||
TARGET_EXTENSION=exe | ||
else | ||
CLEANUP=rm -f | ||
MKDIR=mkdir -p | ||
TARGET_EXTENSION=out | ||
endif | ||
|
||
PATHU = ../Unity/src/ | ||
PATHX = ../Unity/extras/fixture/src/ | ||
PATHS = src/ | ||
PATHI = includes/c-helper-macros/ | ||
PATHT = test/ | ||
PATHB = build/ | ||
PATHD = build/depends/ | ||
PATHO = build/objs/ | ||
PATHR = build/results/ | ||
|
||
BUILD_PATHS = $(PATHB) $(PATHD) $(PATHO) $(PATHR) | ||
|
||
SRCT = $(wildcard $(PATHT)*.c) | ||
|
||
COMPILE=gcc -c | ||
LINK=gcc | ||
DEPEND=gcc -MM -MG -MF | ||
CFLAGS=-I. -I$(PATHU) -I$(PATHX) -I$(PATHS) -I$(PATHI) -DTEST_BUILD | ||
|
||
RESULTS = $(patsubst $(PATHT)test_%.c,$(PATHR)test_%.txt,$(SRCT)) | ||
|
||
$(PATHR)%.txt: $(PATHB)%.$(TARGET_EXTENSION) | ||
-./$< > $@ 2>&1 | ||
|
||
$(PATHB)test_%.$(TARGET_EXTENSION): $(PATHO)test_%.o $(PATHO)%.o $(PATHU)unity.o $(PATHX)unity_fixture.o | ||
$(LINK) -o $@ $^ | ||
|
||
$(PATHO)%.o:: $(PATHT)%.c | ||
$(COMPILE) $(CFLAGS) $< -o $@ | ||
|
||
$(PATHO)%.o:: $(PATHS)%.c | ||
$(COMPILE) $(CFLAGS) $< -o $@ | ||
|
||
$(PATHO)%.o:: $(PATHU)%.c $(PATHU)%.h | ||
$(COMPILE) $(CFLAGS) $< -o $@ | ||
|
||
$(PATHO)%.o:: $(PATHX)%.c $(PATHX)%.h | ||
$(COMPILE) $(CFLAGS) $< -o $@ | ||
|
||
$(PATHD)%.d:: $(PATHT)%.c | ||
$(DEPEND) $@ $< | ||
|
||
$(PATHB): | ||
$(MKDIR) $(PATHB) | ||
|
||
$(PATHD): | ||
$(MKDIR) $(PATHD) | ||
|
||
$(PATHO): | ||
$(MKDIR) $(PATHO) | ||
|
||
$(PATHR): | ||
$(MKDIR) $(PATHR) | ||
|
||
clean: | ||
$(CLEANUP) $(PATHO)*.o | ||
$(CLEANUP) $(PATHB)*.$(TARGET_EXTENSION) | ||
$(CLEANUP) $(PATHR)*.txt | ||
|
||
.PRECIOUS: $(PATHB)test_%.$(TARGET_EXTENSION) | ||
.PRECIOUS: $(PATHD)%.d | ||
.PRECIOUS: $(PATHO)%.o | ||
.PRECIOUS: $(PATHR)%.txt | ||
|
||
.PHONY: clean | ||
.PHONY: test | ||
|
||
test: $(BUILD_PATHS) $(RESULTS) | ||
@echo "-----------------------\nIGNORES:\n-----------------------" | ||
@echo `grep -s IGNORE $(PATHR)*.txt` | ||
@echo "-----------------------\nFAILURES:\n-----------------------" | ||
@echo `grep -s FAIL $(PATHR)*.txt` | ||
@echo "\nDONE" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule c-helper-macros
added at
abe7f4
Oops, something went wrong.