include ../config.mak

#all OS and lib independent
PLUGDIRS=m4_rend mp4_io file_dnload rtp_in codec_pack raw_out mp3_in render2d render3d

#FT raster plugin
ifeq ($(CONFIG_FT), no)
else
PLUGDIRS+=ft_font
endif

#FFMPEG plugin
ifeq ($(CONFIG_FFMPEG), no)
else
PLUGDIRS+=ffmpeg_in
endif

#3GPP AMR-NB plugin
ifeq ($(CONFIG_AMR_NB), yes)
PLUGDIRS+=amr_dec
endif

#OpenDivx plugin
ifeq ($(CONFIG_OPENDIVX), yes)
PLUGDIRS+=OpenDivx
endif

#OSS audio out plugin
ifeq ($(CONFIG_LINUX_AUDIO_OSS), no)
else
PLUGDIRS+=oss_audio
endif

#SDL output
ifeq ($(CONFIG_SDL), yes)
PLUGDIRS+=SDL_out
endif

#w32 plugins
ifeq ($(CONFIG_WIN32),yes)

#wave out
PLUGDIRS+=wav_audio

#direct X
ifeq ($(CONFIG_DIRECTX),yes)
PLUGDIRS+=dx_hw
endif

#w32 plugins
endif

all: plugs

plugs:	
	for i in $(PLUGDIRS) ; do $(MAKE) -C $$i all; done 

dep:
	for i in $(PLUGDIRS) ; do $(MAKE) -C $$i dep; done 

clean:
	for i in $(PLUGDIRS) ; do $(MAKE) -C $$i clean; done 

distclean:	
	for i in $(PLUGDIRS) ; do $(MAKE) -C $$i distclean; done 
