changeset 19523:8220d48531ae

cosmetics: Move some parts to more sensible places.
author diego
date Fri, 25 Aug 2006 13:15:49 +0000
parents 0aba40fe27e1
children 771698922515
files Makefile
diffstat 1 files changed, 25 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Aug 24 22:39:26 2006 +0000
+++ b/Makefile	Fri Aug 25 13:15:49 2006 +0000
@@ -14,6 +14,10 @@
 LIBAV_INC += -I./libavcodec
 endif
 
+CFLAGS = $(OPTFLAGS) -I. $(LIBAV_INC)
+
+#CFLAGS += -Wall
+
 # Do not strip the binaries at installation
 ifeq ($(STRIPBINARIES),yes)
 INSTALLSTRIP = -s
@@ -35,6 +39,10 @@
               subreader.c \
               vobsub.c \
 
+ifeq ($(UNRARLIB),yes)
+SRCS_COMMON += unrarlib.c
+endif
+
 SRCS_MENCODER = mencoder.c \
                 mp_msg-mencoder.c \
                 $(SRCS_COMMON) \
@@ -44,6 +52,10 @@
                 parser-mecmd.c \
                 xvid_vbr.c \
 
+ifeq ($(BITMAP_FONT),yes)
+SRCS_MENCODER += libvo/font_load.c
+endif
+
 SRCS_MPLAYER = mplayer.c \
                m_property.c \
                mp_msg.c \
@@ -52,10 +64,6 @@
                parser-mpcmd.c \
                subopt-helper.c \
 
-ifeq ($(UNRARLIB),yes)
-SRCS_COMMON += unrarlib.c
-endif
-
 OBJS_MENCODER = $(SRCS_MENCODER:.c=.o)
 OBJS_MPLAYER = $(SRCS_MPLAYER:.c=.o)
 
@@ -103,6 +111,19 @@
              $(MUSEPACK_LIB) \
              $(SPEEX_LIB) \
 
+ifeq ($(TOOLAME),yes)
+CFLAGS += $(TOOLAME_EXTRAFLAGS)
+CODEC_LIBS += $(TOOLAME_LIB)
+endif
+
+ifeq ($(TWOLAME),yes)
+CODEC_LIBS += $(TWOLAME_LIB)
+endif
+
+ifeq ($(FAAC),yes)
+CODEC_LIBS += $(FAAC_LIB)
+endif
+
 COMMON_LIBS = libmpcodecs/libmpcodecs.a \
               $(W32_LIB) \
               libaf/libaf.a \
@@ -130,23 +151,6 @@
               $(MATH_LIB) \
               $(LIBC_LIB) \
 
-CFLAGS = $(OPTFLAGS) -I. $(LIBAV_INC)
-
-#CFLAGS += -Wall
-
-ifeq ($(TOOLAME),yes)
-CFLAGS += $(TOOLAME_EXTRAFLAGS) 
-CODEC_LIBS += $(TOOLAME_LIB)
-endif
-
-ifeq ($(TWOLAME),yes)
-CODEC_LIBS += $(TWOLAME_LIB)
-endif
-
-ifeq ($(FAAC),yes)
-CODEC_LIBS += $(FAAC_LIB)
-endif
-
 PARTS = libmpdemux \
         stream \
         libmpcodecs \
@@ -246,9 +250,6 @@
 COMMON_LIBS += libass/libass.a
 PARTS += libass
 endif
-ifeq ($(BITMAP_FONT),yes)
-SRCS_MENCODER += libvo/font_load.c
-endif
 # FontConfig and FreeType need to come after ASS to avoid link failures on MinGW
 COMMON_LIBS += $(FONTCONFIG_LIB)
 ifeq ($(FREETYPE),yes)