aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-24 12:00:20 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-24 12:00:20 -0500
commit39a420f13e8000e2dfa53777b9e51594ba03e5d4 (patch)
tree95d8a0975bf7016a71b64fea1162375a1b916985 /Makefile
parentbc1baf25a0844861713829c0e9e69e4a2d447cc6 (diff)
Add test cases from vi-firmware.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8385c3a..49e22f2 100644
--- a/Makefile
+++ b/Makefile
@@ -19,15 +19,16 @@ SRC = $(wildcard src/**/*.c)
OBJS = $(SRC:.c=.o)
TEST_SRC = $(wildcard $(TEST_DIR)/*.c)
TEST_OBJS = $(TEST_SRC:.c=.o)
+TESTS=$(patsubst %.c,%.bin,$(TEST_SRC))
all: $(OBJS)
-test: $(TEST_DIR)/tests.bin
+test: $(TESTS)
@set -o $(TEST_SET_OPTS) >/dev/null 2>&1
@export SHELLOPTS
@sh runtests.sh $(TEST_DIR)
-$(TEST_DIR)/tests.bin: $(TEST_OBJS) $(OBJS)
+$(TEST_DIR)/%.bin: $(TEST_DIR)/%.o $(OBJS)
@mkdir -p $(dir $@)
$(CC) $(LDFLAGS) $(CC_SYMBOLS) $(INCLUDES) -o $@ $^ $(LDLIBS)