summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7a31d6b..4f4c1e3 100644
--- a/Makefile
+++ b/Makefile
@@ -89,7 +89,7 @@ ALL_LDLIBS = $(LOCAL_LDLIBS) $(LDLIBS)
default: bfs
-all: bfs tests/mksock
+all: bfs tests/mksock tests/xtimegm
bfs: \
bftw.o \
@@ -126,10 +126,16 @@ release: bfs
tests/mksock: tests/mksock.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-bfs check-dfs check-ids
+check: check-xtimegm check-bfs check-dfs check-ids
+
+check-xtimegm: tests/xtimegm
+ $<
check-%: all
./tests.sh --bfs="$(CURDIR)/bfs -S $*" $(TEST_FLAGS)
@@ -144,7 +150,7 @@ endif
+$(MAKE) -B check $(DISTCHECK_FLAGS)
clean:
- $(RM) bfs *.[od] tests/mksock tests/*.[od]
+ $(RM) bfs *.[od] tests/mksock tests/xtimegm tests/*.[od]
install:
$(MKDIR) $(DESTDIR)$(PREFIX)/bin