Mercurial > mplayer.hg
changeset 7474:aa2274311ebb
some makefile cleanup
author | arpi |
---|---|
date | Sun, 22 Sep 2002 13:04:19 +0000 |
parents | bd7a539178a3 |
children | 88c15f5493a6 |
files | Makefile |
diffstat | 1 files changed, 35 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Sun Sep 22 12:10:38 2002 +0000 +++ b/Makefile Sun Sep 22 13:04:19 2002 +0000 @@ -30,6 +30,10 @@ SRCS_MENCODER = mencoder.c mp_msg-mencoder.c $(SRCS_COMMON) libao2/afmt.c divx4_vbr.c libvo/aclib.c libvo/osd.c libvo/sub.c libvo/font_load.c libvo/font_load_ft.c me-opt-reg.c xvid_vbr.c SRCS_MPLAYER = mplayer.c mp_msg.c $(SRCS_COMMON) mixer.c mp-opt-reg.c +ifeq ($(UNRARLIB),yes) +SRCS_COMMON += unrarlib.c +endif + OBJS_MENCODER = $(SRCS_MENCODER:.c=.o) OBJS_MPLAYER = $(SRCS_MPLAYER:.c=.o) @@ -47,21 +51,28 @@ endif CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader $(VO_INC) $(EXTRA_INC) $(CDPARANOIA_INC) $(FREETYPE_INC) $(SDL_INC) # -Wall -PARTS = libfame libmpdemux libmpcodecs mp3lib liba52 libmpeg2 libavcodec libao2 drivers linux postproc input libmpdvdkit2 libvo +PARTS = libmpdemux libmpcodecs mp3lib liba52 libmpeg2 libavcodec libao2 drivers linux postproc input libvo ifeq ($(VIDIX),yes) PARTS += libdha vidix endif +ifeq ($(FAME),yes) +PARTS += libfame +endif +ifeq ($(DVDKIT2),yes) +PARTS += libmpdvdkit2 +else +ifeq ($(DVDKIT),yes) +PARTS += libmpdvdkit +endif +endif ifeq ($(GUI),yes) PARTS += Gui endif - -ifeq ($(UNRARLIB),yes) -SRCS_COMMON += unrarlib.c -endif - ifneq ($(W32_LIB),) PARTS += loader loader/dshow endif + + LOADER_DEP = $(W32_DEP) $(DS_DEP) LIB_LOADER = $(W32_LIB) $(DS_LIB) @@ -73,16 +84,7 @@ ALL_PRG += $(PRG_FIBMAP) endif -.SUFFIXES: .cc .c .o - -# .PHONY: all clean - -all: $(ALL_PRG) - -.c.o: - $(CC) -c $(CFLAGS) -o $@ $< - -COMMON_DEPS = libmpdemux/libmpdemux.a libmpcodecs/libmpcodecs.a libao2/libao2.a liba52/liba52.a mp3lib/libMP3.a libmpeg2/libmpeg2.a linux/libosdep.a postproc/libpostproc.a input/libinput.a libvo/libvo.a +COMMON_DEPS = $(LOADER_DEP) $(MP1E_DEP) $(AV_DEP) libmpdemux/libmpdemux.a libmpcodecs/libmpcodecs.a libao2/libao2.a liba52/liba52.a mp3lib/libMP3.a libmpeg2/libmpeg2.a linux/libosdep.a postproc/libpostproc.a input/libinput.a libvo/libvo.a ifeq ($(VIDIX),yes) COMMON_DEPS += libdha/libdha.so vidix/libvidix.a @@ -98,6 +100,21 @@ endif endif +ifeq ($(GUI),yes) +COMMON_DEPS += Gui/libgui.a +GUI_LIBS = Gui/libgui.a +endif + + +.SUFFIXES: .cc .c .o + +# .PHONY: $(COMMON_DEPS) + +all: $(ALL_PRG) + +.c.o: + $(CC) -c $(CFLAGS) -o $@ $< + libmpdvdkit2/libmpdvdkit.a: $(MAKE) -C libmpdvdkit2 @@ -155,14 +172,8 @@ input/libinput.a: $(MAKE) -C input -MPLAYER_DEP = $(OBJS_MPLAYER) $(LOADER_DEP) $(MP1E_DEP) $(AV_DEP) $(COMMON_DEPS) -MENCODER_DEP = $(OBJS_MENCODER) $(LOADER_DEP) $(MP1E_DEP) $(AV_DEP) $(COMMON_DEPS) - -ifeq ($(GUI),yes) -MPLAYER_DEP += Gui/libgui.a -MENCODER_DEP += Gui/libgui.a -GUI_LIBS = Gui/libgui.a -endif +MPLAYER_DEP = $(OBJS_MPLAYER) $(COMMON_DEPS) +MENCODER_DEP = $(OBJS_MENCODER) $(COMMON_DEPS) VIDIX_LIBS = ifeq ($(VIDIX),yes)