diff options
author | George Boyle <george@thebuds.net> | 2015-06-25 18:37:10 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-27 03:42:47 +0200 |
commit | 3f18cb97e5a7b1ef1094e78ef3937944573347eb (patch) | |
tree | b29c66edd09642ad38c5351c7dc78642c09235b9 /tests/api | |
parent | 1221b7df6817e4d2603e7ca8c226ce0e13eee5bb (diff) | |
download | ffmpeg-3f18cb97e5a7b1ef1094e78ef3937944573347eb.tar.gz |
fate/api-tests: Add directory and Makefile for API tests
The intention of this change is to allow separation of API tests from the
existing tests, and also to have a place for the API test source/executable
files so they're not mixed in with the actual library code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tests/api')
-rw-r--r-- | tests/api/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/api/Makefile b/tests/api/Makefile new file mode 100644 index 0000000000..7010b00178 --- /dev/null +++ b/tests/api/Makefile @@ -0,0 +1,15 @@ +APITESTPROGS += $(APITESTPROGS-yes) + +APITESTOBJS := $(APITESTOBJS:%=$(APITESTSDIR)%) $(APITESTPROGS:%=$(APITESTSDIR)/%-test.o) +APITESTPROGS := $(APITESTPROGS:%=$(APITESTSDIR)/%-test$(EXESUF)) +-include $(wildcard $(APITESTOBJS:.o=.d)) + +$(APITESTOBJS): | $(sort $(dir $(APITESTOBJS))) +$(APITESTOBJS) $(APITESTOBJS:.o=.i): CPPFLAGS += -DTEST +$(APITESTOBJS) $(APITESTOBJS:.o=.i): CFLAGS += -Umain + +$(APITESTPROGS): %$(EXESUF): %.o $(EXEOBJS) + $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(filter %.o,$^) $(FF_DEP_LIBS) $(FFEXTRALIBS) $(ELIBS) + +testclean:: + $(RM) $(addprefix $(APITESTSDIR)/,$(CLEANSUFFIXES) *-test$(EXESUF)) |