Makefile 936 B

12345678910111213141516171819202122
  1. APITESTPROGS-$(call ENCDEC, FLAC, FLAC) += api-flac
  2. APITESTPROGS-$(call DEMDEC, H264, H264) += api-h264
  3. APITESTPROGS-$(call DEMDEC, H264, H264) += api-h264-slice
  4. APITESTPROGS-yes += api-seek
  5. APITESTPROGS-yes += api-codec-param
  6. APITESTPROGS-$(call DEMDEC, H263, H263) += api-band
  7. APITESTPROGS-$(HAVE_THREADS) += api-threadmessage
  8. APITESTPROGS += $(APITESTPROGS-yes)
  9. APITESTOBJS := $(APITESTOBJS:%=$(APITESTSDIR)%) $(APITESTPROGS:%=$(APITESTSDIR)/%-test.o)
  10. APITESTPROGS := $(APITESTPROGS:%=$(APITESTSDIR)/%-test$(EXESUF))
  11. -include $(wildcard $(APITESTOBJS:.o=.d))
  12. $(APITESTOBJS): | $(sort $(dir $(APITESTOBJS)))
  13. $(APITESTOBJS) $(APITESTOBJS:.o=.i): CPPFLAGS += -DTEST
  14. $(APITESTOBJS) $(APITESTOBJS:.o=.i): CFLAGS += -Umain
  15. $(APITESTPROGS): %$(EXESUF): %.o $(FF_DEP_LIBS)
  16. $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(filter %.o,$^) $(FF_EXTRALIBS) $(ELIBS)
  17. testclean::
  18. $(RM) $(addprefix $(APITESTSDIR)/,$(CLEANSUFFIXES) *-test$(EXESUF))