From 34a7c0ca08683eb83d6b6b3d5a6a8fb2f7d5b918 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Fri, 27 Dec 2013 18:28:03 -0500 Subject: Add skeleton tests for receiving and sending ISO-TP messages. --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0dd93599..847196ab 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CC = gcc INCLUDES = -Isrc -Ideps/canutil/src -CFLAGS = $(INCLUDES) -c -w -Wall -Werror -g -ggdb +CFLAGS = $(INCLUDES) -c -w -Wall -Werror -g -ggdb -std=c99 LDFLAGS = LDLIBS = -lcheck @@ -16,11 +16,13 @@ ifneq ($(OSTYPE),Darwin) endif SRC = $(wildcard src/**/*.c) -SRC = $(wildcard deps/**/*.c) +SRC += $(wildcard deps/**/*.c) OBJS = $(SRC:.c=.o) -TEST_SRC = $(wildcard $(TEST_DIR)/*.c) +TEST_SRC = $(wildcard $(TEST_DIR)/test_*.c) TEST_OBJS = $(TEST_SRC:.c=.o) TESTS=$(patsubst %.c,%.bin,$(TEST_SRC)) +TEST_SUPPORT_SRC = $(TEST_DIR)/common.c +TEST_SUPPORT_OBJS = $(TEST_SUPPORT_SRC:.c=.o) all: $(OBJS) @@ -29,7 +31,7 @@ test: $(TESTS) @export SHELLOPTS @sh runtests.sh $(TEST_DIR) -$(TEST_DIR)/%.bin: $(TEST_DIR)/%.o $(OBJS) +$(TEST_DIR)/%.bin: $(TEST_DIR)/%.o $(OBJS) $(TEST_SUPPORT_OBJS) @mkdir -p $(dir $@) $(CC) $(LDFLAGS) $(CC_SYMBOLS) $(INCLUDES) -o $@ $^ $(LDLIBS) -- cgit 1.2.3-korg