summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-02-14 12:45:12 +0200
committerFred Sundvik <fsundvik@gmail.com>2016-02-14 12:45:12 +0200
commit1f1bc183dd1080e14a2d85010d5c7f6455f023f6 (patch)
treeb82dc924e1f9d5e0bcd53d790d8e94ece4e3cda0 /tests
parent3eaddd65141f880ddc7d23fc05cafb01ca5477ac (diff)
Start implementing data_link
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile39
1 files changed, 0 insertions, 39 deletions
diff --git a/tests/Makefile b/tests/Makefile
deleted file mode 100644
index 3f89cba471..0000000000
--- a/tests/Makefile
+++ /dev/null
@@ -1,39 +0,0 @@
-CC = gcc
-CFLAGS =
-INCLUDES = -I.
-LDFLAGS = -L$(BUILDDIR)/cgreen/build-c/src -shared
-LDLIBS = -lcgreen
-UNITOBJ = $(BUILDDIR)/serialtest/unitobj
-DEPDIR = $(BUILDDIR)/serialtest/unit.d
-UNITTESTS = $(BUILDDIR)/serialtest/unittests
-DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Td
-EXT = .so
-UNAME := $(shell uname)
-ifneq (, $(findstring MINGW, $(UNAME)))
- EXT = .dll
-endif
-ifneq (, $(findstring CYGWIN, $(UNAME)))
- EXT = .dll
-endif
-
-SRC = $(wildcard *.c)
-TESTFILES = $(patsubst %.c, $(UNITTESTS)/%$(EXT), $(SRC))
-$(shell mkdir -p $(DEPDIR) >/dev/null)
-
-test: $(TESTFILES)
- @$(BUILDDIR)/cgreen/build-c/tools/cgreen-runner --color $(TESTFILES)
-
-$(UNITTESTS)/%$(EXT): $(UNITOBJ)/%.o
- mkdir -p $(UNITTESTS)
- $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
-
-$(UNITOBJ)/%.o : %.c
-$(UNITOBJ)/%.o: %.c $(DEPDIR)/%.d
- mkdir -p $(UNITOBJ)
- $(CC) $(CFLAGS) $(DEPFLAGS) -c $< -o $@
- mv -f $(DEPDIR)/$*.Td $(DEPDIR)/$*.d
-
-$(DEPDIR)/%.d: ;
-.PRECIOUS: $(DEPDIR)/%.d
-
--include $(patsubst %,$(DEPDIR)/%.d,$(basename $(SRC).c)) \ No newline at end of file