[MPlayer-cvslog] r21325 - in trunk: input/Makefile libaf/Makefile libmenu/Makefile libmpeg2/Makefile mp3lib/Makefile osdep/Makefile stream/Makefile

diego subversion at mplayerhq.hu
Mon Nov 27 14:42:36 CET 2006


Author: diego
Date: Mon Nov 27 14:42:36 2006
New Revision: 21325

Modified:
   trunk/input/Makefile
   trunk/libaf/Makefile
   trunk/libmenu/Makefile
   trunk/libmpeg2/Makefile
   trunk/mp3lib/Makefile
   trunk/osdep/Makefile
   trunk/stream/Makefile

Log:
FFmpeg-style dependency declaration


Modified: trunk/input/Makefile
==============================================================================
--- trunk/input/Makefile	(original)
+++ trunk/input/Makefile	Mon Nov 27 14:42:36 2006
@@ -4,11 +4,7 @@
 LIBNAME = libinput.a
 
 SRCS=input.c
-ifeq ($(JOYSTICK),yes)
-SRCS += joystick.c
-endif
-ifeq ($(LIRC),yes)
-SRCS += lirc.c
-endif
+SRCS-$(JOYSTICK) += joystick.c
+SRCS-$(LIRC)     += lirc.c
 
 include ../mpcommon.mak

Modified: trunk/libaf/Makefile
==============================================================================
--- trunk/libaf/Makefile	(original)
+++ trunk/libaf/Makefile	Mon Nov 27 14:42:36 2006
@@ -29,16 +29,11 @@
      window.c \
      $(AF_SRCS) \
 
-ifeq ($(CONFIG_LIBAVUTIL),yes)
-LIBAV_INC += -I../libavutil
-endif
-ifeq ($(CONFIG_LIBAVCODEC),yes)
-LIBAV_INC += -I../libavcodec
-SRCS+=af_lavcresample.c
-endif
-ifeq ($(CONFIG_LIBAVCODEC_SO),yes)
-SRCS+=af_lavcresample.c
-endif
+SRCS-$(CONFIG_LIBAVCODEC)    += af_lavcresample.c
+SRCS-$(CONFIG_LIBAVCODEC_SO) += af_lavcresample.c
+
+LIBAV_INC-$(CONFIG_LIBAVUTIL)  += -I../libavutil
+LIBAV_INC-$(CONFIG_LIBAVCODEC) += -I../libavcodec
 
 CFLAGS  = -I.. $(LIBAV_INC) -D_GNU_SOURCE
 

Modified: trunk/libmenu/Makefile
==============================================================================
--- trunk/libmenu/Makefile	(original)
+++ trunk/libmenu/Makefile	Mon Nov 27 14:42:36 2006
@@ -13,8 +13,6 @@
       menu_console.c \
       menu_param.c \
 
-ifeq ($(DVBIN),yes)
-SRCS += menu_dvbin.c
-endif
+SRCS-$(DVBIN) += menu_dvbin.c
 
 include ../mpcommon.mak

Modified: trunk/libmpeg2/Makefile
==============================================================================
--- trunk/libmpeg2/Makefile	(original)
+++ trunk/libmpeg2/Makefile	Mon Nov 27 14:42:36 2006
@@ -12,22 +12,11 @@
 	  motion_comp.c \
 	  slice.c \
 
-CFLAGS = -I../libvo -DMPG12PLAY
-
-ifeq ($(TARGET_MMX),yes)
-SRCS += idct_mmx.c motion_comp_mmx.c
-endif
-
-ifeq ($(TARGET_ALTIVEC),yes)
-SRCS += motion_comp_altivec.c idct_altivec.c
-endif
+SRCS-$(TARGET_MMX)        += idct_mmx.c motion_comp_mmx.c
+SRCS-$(TARGET_ALTIVEC)    += motion_comp_altivec.c idct_altivec.c
+SRCS-$(TARGET_VIS)        += motion_comp_vis.c
+SRCS-$(TARGET_ARCH_ALPHA) += idct_alpha.c motion_comp_alpha.c
 
-ifeq ($(TARGET_VIS),yes)
-SRCS += motion_comp_vis.c
-endif
-
-ifeq ($(TARGET_ARCH_ALPHA),yes)
-SRCS += idct_alpha.c motion_comp_alpha.c
-endif
+CFLAGS = -I../libvo -DMPG12PLAY
 
 include ../mpcommon.mak

Modified: trunk/mp3lib/Makefile
==============================================================================
--- trunk/mp3lib/Makefile	(original)
+++ trunk/mp3lib/Makefile	Mon Nov 27 14:42:36 2006
@@ -10,18 +10,10 @@
 SRCS = sr1.c
 ifeq ($(TARGET_ARCH_X86_32),yes)
 SRCS += decode_i586.c
-ifeq ($(TARGET_MMX),yes)
-SRCS += decode_MMX.c dct64_MMX.c tabinit_MMX.c
-endif
-ifeq ($(TARGET_3DNOW),yes)
-SRCS += dct36_3dnow.c dct64_3dnow.c
-endif
-ifeq ($(TARGET_3DNOWEX),yes)
-SRCS += dct36_k7.c dct64_k7.c
-endif
-ifeq ($(TARGET_SSE),yes)
-SRCS += dct64_sse.c
-endif
+SRCS-$(TARGET_MMX)     += decode_MMX.c dct64_MMX.c tabinit_MMX.c
+SRCS-$(TARGET_3DNOW)   += dct36_3dnow.c dct64_3dnow.c
+SRCS-$(TARGET_3DNOWEX) += dct36_k7.c dct64_k7.c
+SRCS-$(TARGET_SSE)     += dct64_sse.c
 endif
 ifeq ($(TARGET_ALTIVEC),yes)
 SRCS += dct64_altivec.c

Modified: trunk/osdep/Makefile
==============================================================================
--- trunk/osdep/Makefile	(original)
+++ trunk/osdep/Makefile	Mon Nov 27 14:42:36 2006
@@ -14,13 +14,12 @@
       setenv.c \
       mmap_anon.c \
 
+SRCS-$(MACOSX_FINDER_SUPPORT) += macosx_finder_args.c
+SRCS-$(TARGET_WIN32)          += mplayer-rc.c
+
 getch = getch2.c
 timer = timer-lx.c
-ifeq ($(MACOSX_FINDER_SUPPORT),yes)
-SRCS += macosx_finder_args.c
-endif
 ifeq ($(TARGET_WIN32),yes)
-SRCS += mplayer-rc.c
 timer = timer-win2.c
 endif
 ifeq ($(TARGET_OS),Darwin)

Modified: trunk/stream/Makefile
==============================================================================
--- trunk/stream/Makefile	(original)
+++ trunk/stream/Makefile	Mon Nov 27 14:42:36 2006
@@ -11,107 +11,62 @@
         stream_null.c \
         url.c \
 
-ifeq ($(STREAM_CACHE),yes)
-SRCS += cache2.c
-endif
+SRCS-$(CDDA)              += stream_cdda.c cdinfo.c
+SRCS-$(DVBIN)             += dvb_tune.c stream_dvb.c
+SRCS-$(DVDNAV)            += stream_dvdnav.c
+SRCS-$(DVDREAD)           += stream_dvd.c
+SRCS-$(FTP)               += stream_ftp.c
+SRCS-$(LIBSMBCLIENT)      += stream_smb.c
+SRCS-$(MPLAYER_NETWORK)   += stream_netstream.c     \
+                             asf_mmst_streaming.c   \
+                             asf_streaming.c        \
+                             cookies.c              \
+                             http.c                 \
+                             network.c              \
+                             pnm.c                  \
+                             rtp.c                  \
+                             udp.c                  \
+                             tcp.c                  \
+                             stream_rtp.c           \
+                             stream_rtsp.c          \
+                             stream_udp.c           \
+                             freesdp/common.c       \
+                             freesdp/errorlist.c    \
+                             freesdp/parser.c       \
+                             librtsp/rtsp.c         \
+                             librtsp/rtsp_rtp.c     \
+                             librtsp/rtsp_session.c \
+                             realrtsp/asmrp.c       \
+                             realrtsp/real.c        \
+                             realrtsp/rmff.c        \
+                             realrtsp/sdpplin.c     \
+                             realrtsp/xbuffer.c     \
+
+SRCS-$(PVR)               += stream_pvr.c
+SRCS-$(RADIO)             += stream_radio.c
+SRCS-$(RADIO_CAPTURE)     += audio_in.c
+SRCS-$(STREAM_CACHE)      += cache2.c
+SRCS-$(STREAMING_LIVE555) += stream_livedotcom.c
+SRCS-$(TV)                += stream_tv.c tv.c frequencies.c tvi_dummy.c
+SRCS-$(TV_BSDBT848)       += tvi_bsdbt848.c
+SRCS-$(TV_V4L1)           += tvi_v4l.c  audio_in.c
+SRCS-$(TV_V4L2)           += tvi_v4l2.c audio_in.c
+SRCS-$(VCD)               += stream_vcd.c
+SRCS-$(VSTREAM)           += stream_vstream.c
+
+#FIXME: These should have variables assigned in configure.
 ifeq ($(CDDA),yes)
-SRCS += stream_cdda.c cdinfo.c
-  ifeq ($(MPLAYER_NETWORK),yes)
-  SRCS += stream_cddb.c
-  endif
-endif
-ifeq ($(DVDREAD),yes)
-SRCS += stream_dvd.c
-endif
-ifeq ($(DVDNAV),yes)
-SRCS += stream_dvdnav.c
-endif
-ifeq ($(VCD),yes)
-SRCS += stream_vcd.c
-endif
-ifeq ($(FTP),yes)
-SRCS += stream_ftp.c
-endif
-ifeq ($(LIBSMBCLIENT),yes)
-SRCS += stream_smb.c
-endif
-ifeq ($(MPLAYER_NETWORK),yes)
-SRCS += stream_netstream.c
-endif
-ifeq ($(STREAMING_LIVE555),yes)
-SRCS += stream_livedotcom.c
-endif
-ifeq ($(VSTREAM),yes)
-SRCS += stream_vstream.c
-endif
-ifeq ($(TV),yes)
-SRCS += stream_tv.c tv.c frequencies.c tvi_dummy.c
-endif
-ifeq ($(TV_BSDBT848),yes)
-SRCS += tvi_bsdbt848.c
-endif
-ifeq ($(TV_V4L2),yes)
-SRCS += tvi_v4l2.c audio_in.c
-endif
-ifeq ($(PVR),yes)
-SRCS += stream_pvr.c
-endif
-ifeq ($(TV_V4L1),yes)
-SRCS += tvi_v4l.c audio_in.c
+SRCS-$(MPLAYER_NETWORK)   += stream_cddb.c
 endif
 ifeq ($(TV_V4L),yes)
-  ifeq ($(ALSA1X),yes)
-  SRCS += ai_alsa1x.c
-  endif
-  ifeq ($(ALSA9),yes)
-  SRCS += ai_alsa.c
-  endif
-  ifeq ($(OSS),yes)
-  SRCS += ai_oss.c
-  endif
-endif
-ifeq ($(RADIO),yes)
-SRCS += stream_radio.c
+SRCS-$(ALSA1X)            += ai_alsa1x.c
+SRCS-$(ALSA9)             += ai_alsa.c
+SRCS-$(OSS)               += ai_oss.c
 endif
 ifeq ($(RADIO_CAPTURE),yes)
-SRCS += audio_in.c
-  ifeq ($(ALSA1X),yes)
-  SRCS += ai_alsa1x.c
-  endif
-  ifeq ($(ALSA9),yes)
-  SRCS += ai_alsa.c
-  endif
-  ifeq ($(OSS),yes)
-  SRCS += ai_oss.c
-  endif
-endif
-ifeq ($(MPLAYER_NETWORK),yes)
-SRCS += asf_mmst_streaming.c \
-        asf_streaming.c \
-        cookies.c \
-        http.c \
-        network.c \
-        pnm.c \
-        rtp.c \
-        udp.c \
-        tcp.c \
-        stream_rtsp.c \
-        stream_rtp.c \
-        stream_udp.c \
-        freesdp/common.c \
-        freesdp/errorlist.c \
-        freesdp/parser.c \
-        librtsp/rtsp.c \
-        librtsp/rtsp_rtp.c \
-        librtsp/rtsp_session.c \
-        realrtsp/asmrp.c \
-        realrtsp/real.c \
-        realrtsp/rmff.c \
-        realrtsp/sdpplin.c \
-        realrtsp/xbuffer.c \
-endif
-ifeq ($(DVBIN),yes)
-SRCS += dvb_tune.c stream_dvb.c
+SRCS-$(ALSA1X)            += ai_alsa1x.c
+SRCS-$(ALSA9)             += ai_alsa.c
+SRCS-$(OSS)               += ai_oss.c
 endif
 
 CFLAGS = -I../loader



More information about the MPlayer-cvslog mailing list