[x264-devel] libx264 API usage example

Diego Biurrun diego at biurrun.de
Tue Nov 25 19:06:45 CET 2014


On 2014-11-13 13:52, Anton Mitrofanov wrote:
> --- a/Makefile
> +++ b/Makefile
> @@ -176,9 +178,10 @@ $(SONAME): $(GENERATED) .depend $(OBJS) $(OBJASM) $(OBJSO)
>   ifneq ($(EXE),)
> -.PHONY: x264 checkasm
> +.PHONY: x264 checkasm example
>   x264: x264$(EXE)
>   checkasm: checkasm$(EXE)
> +example: example$(EXE)
>   endif
>
> @@ -187,7 +190,10 @@ x264$(EXE): $(GENERATED) .depend $(OBJCLI) $(CLI_LIBX264)
>
> -$(OBJS) $(OBJASM) $(OBJSO) $(OBJCLI) $(OBJCHK): .depend
> +example$(EXE): $(GENERATED) .depend $(OBJEXAMPLE) $(LIBX264)
> +	$(LD)$@ $(OBJEXAMPLE) $(LIBX264) $(LDFLAGS)
> +
> +$(OBJS) $(OBJASM) $(OBJSO) $(OBJCLI) $(OBJCHK) $(OBJEXAMPLE): .depend

Gosh, no, this is very much not a phony target.

Diego


More information about the x264-devel mailing list