[MPlayer-dev-eng] [PATCH] clean and cross-compilation

Diego Biurrun diego at biurrun.de
Tue Aug 24 22:15:47 CEST 2004


Kenny (Constantine Shulyupin) writes:
> 
> --- ../MPlayer-1.0pre5.orig/libmpcodecs/Makefile	2004-06-24 16:54:07.000000000 +0300
> +++ ./libmpcodecs/Makefile	2004-08-24 18:42:37.000000000 +0300
> @@ -66,6 +66,7 @@
>  
>  clean:
>  	rm -f *.o *.a *~
> +	cd native; rm -f *.o *.a *~

Looks, OK, dunno if

  rm -f native/*.o native/*.a native/*~

wouldn't be better, though.

> --- ../MPlayer-1.0pre5.orig/Makefile	2004-07-09 20:32:17.000000000 +0300
> +++ ./Makefile	2004-08-24 18:42:37.000000000 +0300
> @@ -241,7 +241,8 @@
>  $(MENCODER_DEP): version.h
>  
>  $(PRG_CFG): version.h codec-cfg.c codec-cfg.h
> -	$(CC) $(CFLAGS) -g codec-cfg.c mp_msg.c -o $(PRG_CFG) -DCODECS2HTML $(EXTRA_LIB) $(I18NLIBS)
> +	@# use local compiler, not cross
> +	gcc $(CFLAGS) -g codec-cfg.c mp_msg.c -o $(PRG_CFG) -DCODECS2HTML $(EXTRA_LIB) $(I18NLIBS)
>  
>  install: $(ALL_PRG)
>  ifeq ($(VIDIX),yes)
> @@ -303,6 +304,7 @@
>  
>  clean:
>  	-rm -f *.o *~ $(OBJS) codecs.conf.h
> +	@for a in $(PARTS); do $(MAKE) -C $$a clean; done

IIRC clean is not recursive on purpose.  If you want a recursive clean
you might as well do a distclean.

Diego




More information about the MPlayer-dev-eng mailing list