Makefile 900 B

123456789101112131415161718192021
  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-$(call DEMDEC, H263, H263) += api-band
  6. APITESTPROGS-$(HAVE_THREADS) += api-threadmessage
  7. APITESTPROGS += $(APITESTPROGS-yes)
  8. APITESTOBJS := $(APITESTOBJS:%=$(APITESTSDIR)%) $(APITESTPROGS:%=$(APITESTSDIR)/%-test.o)
  9. APITESTPROGS := $(APITESTPROGS:%=$(APITESTSDIR)/%-test$(EXESUF))
  10. -include $(wildcard $(APITESTOBJS:.o=.d))
  11. $(APITESTOBJS): | $(sort $(dir $(APITESTOBJS)))
  12. $(APITESTOBJS) $(APITESTOBJS:.o=.i): CPPFLAGS += -DTEST
  13. $(APITESTOBJS) $(APITESTOBJS:.o=.i): CFLAGS += -Umain
  14. $(APITESTPROGS): %$(EXESUF): %.o $(FF_DEP_LIBS)
  15. $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(filter %.o,$^) $(FF_EXTRALIBS) $(ELIBS)
  16. testclean::
  17. $(RM) $(addprefix $(APITESTSDIR)/,$(CLEANSUFFIXES) *-test$(EXESUF))