2002-02-28 00:57:30 +00:00
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
|
|
|
|
LIBNAME = libmpcodecs.a
|
|
|
|
|
2002-03-30 22:27:45 +00:00
|
|
|
AUDIO_SRCS=dec_audio.c ad.c ad_a52.c ad_acm.c ad_alaw.c ad_dk3adpcm.c ad_dshow.c ad_dvdpcm.c ad_ffmpeg.c ad_hwac3.c ad_imaadpcm.c ad_mp3.c ad_msadpcm.c ad_pcm.c ad_roqaudio.c ad_msgsm.c ad_faad.c
|
2002-03-25 22:04:33 +00:00
|
|
|
VIDEO_SRCS=dec_video.c vd.c vd_null.c vd_cinepak.c vd_qtrpza.c vd_ffmpeg.c vd_dshow.c vd_vfw.c vd_odivx.c vd_divx4.c vd_raw.c vd_xanim.c vd_msvidc.c vd_fli.c vd_qtrle.c vd_qtsmc.c vd_roqvideo.c vd_cyuv.c vd_nuv.c vd_libmpeg2.c vd_msrle.c vd_huffyuv.c vd_zlib.c
|
2002-03-10 22:49:18 +00:00
|
|
|
|
|
|
|
ifeq ($(PNG),yes)
|
2002-03-25 22:04:33 +00:00
|
|
|
VIDEO_SRCS += vd_mpng.c
|
2002-03-10 22:49:18 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(JPEG),yes)
|
2002-03-25 22:04:33 +00:00
|
|
|
VIDEO_SRCS += vd_ijpg.c
|
2002-03-10 22:49:18 +00:00
|
|
|
endif
|
2002-02-28 00:57:30 +00:00
|
|
|
|
2002-03-25 22:04:33 +00:00
|
|
|
SRCS=$(AUDIO_SRCS) $(VIDEO_SRCS)
|
2002-02-28 00:57:30 +00:00
|
|
|
OBJS=$(SRCS:.c=.o)
|
|
|
|
|
|
|
|
CFLAGS = -Wall $(OPTFLAGS) -I. -I.. -I../libmpdemux -I../loader $(EXTRA_INC)
|
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(LIBNAME): $(OBJS)
|
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
|
|
|
|
|
|
|
all: $(LIBNAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
|
|
|
distclean:
|
|
|
|
rm -f Makefile.bak *.o *.a *~ .depend
|
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|
|
|
|
|