aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/makefile/unix.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/build-data/makefile/unix.in')
-rw-r--r--src/build-data/makefile/unix.in20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/build-data/makefile/unix.in b/src/build-data/makefile/unix.in
index fbc45a681..4eda9d5c9 100644
--- a/src/build-data/makefile/unix.in
+++ b/src/build-data/makefile/unix.in
@@ -1,13 +1,13 @@
# Compiler Options
CXX = %{cc}
LIB_OPT = %{lib_opt}
-CHECK_OPT = %{check_opt}
+TEST_OPT = %{test_opt}
LANG_FLAGS = %{lang_flags}
WARN_FLAGS = %{warn_flags}
LINK_TO = %{link_to}
LIB_FLAGS = $(LANG_FLAGS) $(LIB_OPT) $(WARN_FLAGS)
-CHECK_FLAGS = $(LANG_FLAGS) $(CHECK_OPT) $(WARN_FLAGS)
+TEST_FLAGS = $(LANG_FLAGS) $(TEST_OPT) $(WARN_FLAGS)
# Version Numbers
VERSION = %{version}
@@ -49,22 +49,24 @@ STATIC_LIB = $(LIBNAME)-$(SERIES).a
all: $(LIBRARIES)
# File Lists
-CHECK = %{check_prefix}check
+TEST = %{test_prefix}test
HEADERS = %{include_files}
LIBOBJS = %{lib_objs}
-CHECKOBJS = %{check_objs}
+TESTOBJS = %{test_objs}
# Build Commands
%{lib_build_cmds}
-%{check_build_cmds}
+%{test_build_cmds}
# Link Commands
-$(CHECK): $(LIBRARIES) $(CHECKOBJS)
- $(CXX) $(CHECKOBJS) $(STATIC_LIB) $(LINK_TO) -o $(CHECK)
+check: $(TEST)
+
+$(TEST): $(LIBRARIES) $(TESTOBJS)
+ $(CXX) $(TESTOBJS) $(STATIC_LIB) $(LINK_TO) -o $(TEST)
$(STATIC_LIB): $(LIBOBJS)
$(RM) $(STATIC_LIB)
@@ -80,8 +82,8 @@ docs:
%{build_doc_commands}
clean:
- $(RM_R) %{build_dir}/lib/* %{build_dir}/checks/*
- $(RM) $(LIBRARIES) $(SYMLINK) $(CHECK)
+ $(RM_R) %{build_dir}/lib/* %{build_dir}/tests/*
+ $(RM) $(LIBRARIES) $(SYMLINK) $(TEST)
distclean: clean
$(RM_R) %{build_dir}