summaryrefslogtreecommitdiff
path: root/common.mak
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2016-06-22 13:44:29 +0200
committerClément Bœsch <clement@stupeflix.com>2016-06-22 13:44:34 +0200
commit5d48e4eafa6c4559683892b8638d10508125f3cf (patch)
tree0d5becbd08d6ae319497dd32cbe9b67f4670cc5e /common.mak
parent989a614b707dcff8abdffe28dc24ec64a83b2837 (diff)
parenta6a750c7ef240b72ce01e9653343a0ddf247d196 (diff)
Merge commit 'a6a750c7ef240b72ce01e9653343a0ddf247d196'
* commit 'a6a750c7ef240b72ce01e9653343a0ddf247d196': tests: Move all test programs to a subdirectory Merged-by: Clément Bœsch <clement@stupeflix.com>
Diffstat (limited to 'common.mak')
-rw-r--r--common.mak7
1 files changed, 3 insertions, 4 deletions
diff --git a/common.mak b/common.mak
index 700e4c1f77..59b039fa67 100644
--- a/common.mak
+++ b/common.mak
@@ -114,8 +114,8 @@ FFEXTRALIBS := $(LDLIBS:%=$(LD_LIB)) $(EXTRALIBS)
OBJS := $(sort $(OBJS:%=$(SUBDIR)%))
SLIBOBJS := $(sort $(SLIBOBJS:%=$(SUBDIR)%))
-TESTOBJS := $(TESTOBJS:%=$(SUBDIR)%) $(TESTPROGS:%=$(SUBDIR)%-test.o)
-TESTPROGS := $(TESTPROGS:%=$(SUBDIR)%-test$(EXESUF))
+TESTOBJS := $(TESTOBJS:%=$(SUBDIR)tests/%) $(TESTPROGS:%=$(SUBDIR)tests/%.o)
+TESTPROGS := $(TESTPROGS:%=$(SUBDIR)tests/%$(EXESUF))
HOSTOBJS := $(HOSTPROGS:%=$(SUBDIR)%.o)
HOSTPROGS := $(HOSTPROGS:%=$(SUBDIR)%$(HOSTEXESUF))
TOOLS += $(TOOLS-yes)
@@ -158,8 +158,7 @@ LIBSUFFIXES = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a
define RULES
clean::
- $(RM) $(HOSTPROGS)
- $(RM) $(TOOLS)
+ $(RM) $(HOSTPROGS) $(TESTPROGS) $(TOOLS)
endef
$(eval $(RULES))