summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-06-09 12:56:28 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-06-09 13:01:37 -0400
commit174f98fca012215238554c29b199e4b0377e416f (patch)
tree85fdefda37cab90366b17029e6c224c708240b0f /Makefile
parente541a7a48ef162895bd5840f3bddfcd23bb231ac (diff)
downloadbfs-174f98fca012215238554c29b199e4b0377e416f.tar.xz
tests/trie: New acceptance test for tries
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4f4c1e3..3844966 100644
--- a/Makefile
+++ b/Makefile
@@ -89,7 +89,7 @@ ALL_LDLIBS = $(LOCAL_LDLIBS) $(LDLIBS)
default: bfs
-all: bfs tests/mksock tests/xtimegm
+all: bfs tests/mksock tests/trie tests/xtimegm
bfs: \
bftw.o \
@@ -126,13 +126,19 @@ release: bfs
tests/mksock: tests/mksock.o
$(CC) $(ALL_LDFLAGS) $^ -o $@
+tests/trie: trie.o tests/trie.o
+ $(CC) $(ALL_LDFLAGS) $^ -o $@
+
tests/xtimegm: time.o tests/xtimegm.o
$(CC) $(ALL_LDFLAGS) $^ -o $@
%.o: %.c
$(CC) $(ALL_CFLAGS) -c $< -o $@
-check: check-xtimegm check-bfs check-dfs check-ids
+check: check-trie check-xtimegm check-bfs check-dfs check-ids
+
+check-trie: tests/trie
+ $<
check-xtimegm: tests/xtimegm
$<
@@ -150,7 +156,7 @@ endif
+$(MAKE) -B check $(DISTCHECK_FLAGS)
clean:
- $(RM) bfs *.[od] tests/mksock tests/xtimegm tests/*.[od]
+ $(RM) bfs *.[od] tests/mksock tests/trie tests/xtimegm tests/*.[od]
install:
$(MKDIR) $(DESTDIR)$(PREFIX)/bin
@@ -162,6 +168,6 @@ uninstall:
$(RM) $(DESTDIR)$(PREFIX)/bin/bfs
$(RM) $(DESTDIR)$(MANDIR)/man1/bfs.1
-.PHONY: all asan ubsan msan release check distcheck clean install uninstall
+.PHONY: all asan ubsan msan release check check-trie check-xtimegm distcheck clean install uninstall
-include $(wildcard *.d)