summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-07-05 16:26:58 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-07-05 16:26:58 +0200
commit0f608e56abf5addc37b498735d4bc32a9bd350a3 (patch)
treea02491a507a64f75d34bcfeb5b38f2813a3eccf6
parentc16ccc9d6a1de5406ba0e74f757403ac7553b6a8 (diff)
Remove useless Makefile as we use CMake files.
Change-Id: I99848f5369420a81cf1e38076d97840e4eab6ee7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--libs/bitfield-c/Makefile53
-rw-r--r--libs/isotp-c/Makefile56
-rw-r--r--libs/openxc-message-format/Makefile11
-rw-r--r--libs/uds-c/Makefile56
4 files changed, 0 insertions, 176 deletions
diff --git a/libs/bitfield-c/Makefile b/libs/bitfield-c/Makefile
deleted file mode 100644
index e93efb4..0000000
--- a/libs/bitfield-c/Makefile
+++ /dev/null
@@ -1,53 +0,0 @@
-CC = gcc
-INCLUDES = -Isrc
-CFLAGS = $(INCLUDES) -c -Wall -Werror -g -ggdb -coverage
-LDFLAGS = -coverage -lm
-LDLIBS = -lcheck
-
-TEST_DIR = tests
-TEST_OBJDIR = build
-
-# Guard against \r\n line endings only in Cygwin
-OSTYPE := $(shell uname)
-ifneq ($(OSTYPE),Darwin)
- OSTYPE := $(shell uname -o)
- ifeq ($(OSTYPE),Cygwin)
- TEST_SET_OPTS = igncr
- endif
-endif
-
-SRC = $(wildcard src/**/*.c)
-OBJS = $(SRC:.c=.o)
-OBJS = $(patsubst %,$(TEST_OBJDIR)/%,$(SRC:.c=.o))
-TEST_SRC = $(wildcard $(TEST_DIR)/*_tests.c)
-TESTS=$(patsubst %.c,$(TEST_OBJDIR)/%.bin,$(TEST_SRC))
-
-all: $(OBJS)
-
-test: $(TESTS)
- @set -o $(TEST_SET_OPTS) >/dev/null 2>&1
- @export SHELLOPTS
- @sh runtests.sh $(TEST_OBJDIR)/$(TEST_DIR)
-
-COVERAGE_INFO_FILENAME = coverage.info
-COVERAGE_INFO_PATH = $(TEST_OBJDIR)/$(COVERAGE_INFO_FILENAME)
-coverage:
- @lcov --base-directory . --directory $(TEST_OBJDIR) --zerocounters -q
- @make clean
- @make test
- @lcov --base-directory . --directory $(TEST_OBJDIR) -c -o $(TEST_OBJDIR)/coverage.info
- @lcov --remove $(COVERAGE_INFO_PATH) "/usr/*" -o $(COVERAGE_INFO_PATH)
- @genhtml -o $(TEST_OBJDIR)/coverage -t "isotp-c test coverage" --num-spaces 4 $(COVERAGE_INFO_PATH)
- @$(BROWSER) $(TEST_OBJDIR)/coverage/index.html
- @echo "$(GREEN)Coverage information generated in $(TEST_OBJDIR)/coverage/index.html.$(COLOR_RESET)"
-
-$(TEST_OBJDIR)/%.o: %.c
- @mkdir -p $(dir $@)
- $(CC) $(CFLAGS) $(CC_SYMBOLS) $(INCLUDES) -o $@ $<
-
-$(TEST_OBJDIR)/%.bin: $(TEST_OBJDIR)/%.o $(OBJS) $(TEST_SUPPORT_OBJS)
- @mkdir -p $(dir $@)
- $(CC) $(LDFLAGS) $(CC_SYMBOLS) $(INCLUDES) -o $@ $^ $(LDLIBS)
-
-clean:
- rm -rf $(TEST_OBJDIR)
diff --git a/libs/isotp-c/Makefile b/libs/isotp-c/Makefile
deleted file mode 100644
index 90165ba..0000000
--- a/libs/isotp-c/Makefile
+++ /dev/null
@@ -1,56 +0,0 @@
-CC = gcc
-INCLUDES = -Isrc -Ideps/bitfield-c/src
-CFLAGS = $(INCLUDES) -c -Wall -Werror -g -ggdb -std=gnu99 -coverage
-LDFLAGS = -coverage
-LDLIBS = -lcheck -lm -lrt -lpthread
-
-TEST_DIR = tests
-TEST_OBJDIR = build
-
-# Guard against \r\n line endings only in Cygwin
-OSTYPE := $(shell uname)
-ifneq ($(OSTYPE),Darwin)
- OSTYPE := $(shell uname -o)
- ifeq ($(OSTYPE),Cygwin)
- TEST_SET_OPTS = igncr
- endif
-endif
-
-LIBS_PATH = deps
-SRC = $(wildcard src/**/*.c)
-SRC += $(wildcard deps/bitfield-c/src/**/*.c)
-OBJS = $(patsubst %,$(TEST_OBJDIR)/%,$(SRC:.c=.o))
-TEST_SRC = $(wildcard $(TEST_DIR)/test_*.c)
-TESTS=$(patsubst %.c,$(TEST_OBJDIR)/%.bin,$(TEST_SRC))
-TEST_SUPPORT_SRC = $(TEST_DIR)/common.c
-TEST_SUPPORT_OBJS = $(patsubst %,$(TEST_OBJDIR)/%,$(TEST_SUPPORT_SRC:.c=.o))
-
-all: $(OBJS)
-
-test: $(TESTS)
- @set -o $(TEST_SET_OPTS) >/dev/null 2>&1
- @export SHELLOPTS
- @sh runtests.sh $(TEST_OBJDIR)/$(TEST_DIR)
-
-COVERAGE_INFO_FILENAME = coverage.info
-COVERAGE_INFO_PATH = $(TEST_OBJDIR)/$(COVERAGE_INFO_FILENAME)
-coverage:
- @lcov --base-directory . --directory src --zerocounters -q
- @make clean
- @make test
- @lcov --base-directory . --directory $(TEST_OBJDIR) -c -o $(TEST_OBJDIR)/coverage.info
- @lcov --remove $(COVERAGE_INFO_PATH) "$(LIBS_PATH)/bitfield-c/*" -o $(COVERAGE_INFO_PATH)
- @genhtml -o $(TEST_OBJDIR)/coverage -t "isotp-c test coverage" --num-spaces 4 $(COVERAGE_INFO_PATH)
- @$(BROWSER) $(TEST_OBJDIR)/coverage/index.html
- @echo "$(GREEN)Coverage information generated in $(TEST_OBJDIR)/coverage/index.html.$(COLOR_RESET)"
-
-$(TEST_OBJDIR)/%.o: %.c
- @mkdir -p $(dir $@)
- $(CC) $(CFLAGS) $(CC_SYMBOLS) $(INCLUDES) -o $@ $<
-
-$(TEST_OBJDIR)/%.bin: $(TEST_OBJDIR)/%.o $(OBJS) $(TEST_SUPPORT_OBJS)
- @mkdir -p $(dir $@)
- $(CC) $(LDFLAGS) $(CC_SYMBOLS) $(INCLUDES) -o $@ $^ $(LDLIBS)
-
-clean:
- rm -rf $(TEST_OBJDIR)
diff --git a/libs/openxc-message-format/Makefile b/libs/openxc-message-format/Makefile
deleted file mode 100644
index 7b968e6..0000000
--- a/libs/openxc-message-format/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-nanopb: proto
- make -C libs/nanopb/generator/proto
- python libs/nanopb/generator/nanopb_generator.py gen/cpp/openxc.pb -f openxc.options
-
-proto: openxc.proto
- @mkdir -p gen/java
- @mkdir -p gen/python
- @mkdir -p gen/cpp
- protoc -I . -I gen -ogen/cpp/openxc.pb --python_out=gen/python --java_out=gen/java $?
-
-all: nanopb proto
diff --git a/libs/uds-c/Makefile b/libs/uds-c/Makefile
deleted file mode 100644
index 4adf3ce..0000000
--- a/libs/uds-c/Makefile
+++ /dev/null
@@ -1,56 +0,0 @@
-CC = gcc
-INCLUDES = -Isrc -Ideps/bitfield-c/src -Ideps/isotp-c/src
-CFLAGS = $(INCLUDES) -c -Wall -Werror -g -ggdb -std=gnu99 -coverage
-LDFLAGS = -coverage -lm
-LDLIBS = -lcheck
-
-TEST_DIR = tests
-TEST_OBJDIR = build
-
-# Guard against \r\n line endings only in Cygwin
-OSTYPE := $(shell uname)
-ifneq ($(OSTYPE),Darwin)
- OSTYPE := $(shell uname -o)
- ifeq ($(OSTYPE),Cygwin)
- TEST_SET_OPTS = igncr
- endif
-endif
-
-SRC = $(wildcard src/**/*.c)
-SRC += $(wildcard deps/bitfield-c/src/**/*.c)
-SRC += $(wildcard deps/isotp-c/src/**/*.c)
-OBJS = $(patsubst %,$(TEST_OBJDIR)/%,$(SRC:.c=.o))
-TEST_SRC = $(wildcard $(TEST_DIR)/test_*.c)
-TESTS=$(patsubst %.c,$(TEST_OBJDIR)/%.bin,$(TEST_SRC))
-TEST_SUPPORT_SRC = $(TEST_DIR)/common.c
-TEST_SUPPORT_OBJS = $(patsubst %,$(TEST_OBJDIR)/%,$(TEST_SUPPORT_SRC:.c=.o))
-
-all: $(OBJS)
-
-test: $(TESTS)
- @set -o $(TEST_SET_OPTS) >/dev/null 2>&1
- @export SHELLOPTS
- @sh runtests.sh $(TEST_OBJDIR)/$(TEST_DIR)
-
-COVERAGE_INFO_FILENAME = coverage.info
-COVERAGE_INFO_PATH = $(TEST_OBJDIR)/$(COVERAGE_INFO_FILENAME)
-coverage:
- @lcov --base-directory . --directory src --zerocounters -q
- @make clean
- @make test
- @lcov --base-directory . --directory $(TEST_OBJDIR) -c -o $(TEST_OBJDIR)/coverage.info
- @lcov --remove $(COVERAGE_INFO_PATH) "deps/*" -o $(COVERAGE_INFO_PATH)
- @genhtml -o $(TEST_OBJDIR)/coverage -t "isotp-c test coverage" --num-spaces 4 $(COVERAGE_INFO_PATH)
- @$(BROWSER) $(TEST_OBJDIR)/coverage/index.html
- @echo "$(GREEN)Coverage information generated in $(TEST_OBJDIR)/coverage/index.html.$(COLOR_RESET)"
-
-$(TEST_OBJDIR)/%.o: %.c
- @mkdir -p $(dir $@)
- $(CC) $(CFLAGS) $(CC_SYMBOLS) $(INCLUDES) -o $@ $<
-
-$(TEST_OBJDIR)/%.bin: $(TEST_OBJDIR)/%.o $(OBJS) $(TEST_SUPPORT_OBJS)
- @mkdir -p $(dir $@)
- $(CC) $(LDFLAGS) $(CC_SYMBOLS) $(INCLUDES) -o $@ $^ $(LDLIBS)
-
-clean:
- rm -rf $(TEST_OBJDIR)