[MPlayer-cvslog] r24243 - trunk/TOOLS/Makefile

diego subversion at mplayerhq.hu
Mon Aug 27 13:58:37 CEST 2007


Author: diego
Date: Mon Aug 27 13:58:37 2007
New Revision: 24243

Log:
Move common link libs/objects into a variable.


Modified:
   trunk/TOOLS/Makefile

Modified: trunk/TOOLS/Makefile
==============================================================================
--- trunk/TOOLS/Makefile	(original)
+++ trunk/TOOLS/Makefile	Mon Aug 27 13:58:37 2007
@@ -12,18 +12,19 @@ OBJS = alaw-gen$(EXESUF) \
 	subrip$(EXESUF) \
 #	vivodump$(EXESUF) \
 
+COMMON_LIBS = ../mp_msg.o ../mp_fifo.o ../osdep/libosdep.a -ltermcap -lm
+
 all: $(OBJS)
 
 subrip$(EXESUF): subrip.c
-	$(CC) $(CFLAGS) -g -o $@ $< ../vobsub.o ../spudec.o ../mp_msg.o \
+	$(CC) $(CFLAGS) -g -o $@ $< ../vobsub.o ../spudec.o \
           ../unrarlib.o ../libswscale/libswscale.a ../libavutil/libavutil.a \
-          ../libmpcodecs/img_format.o ../mp_fifo.o ../osdep/libosdep.a \
-          -ltermcap -lm
+          ../libmpcodecs/img_format.o $(COMMON_LIBS)
 
 #FIXME: Linking is broken, help welcome.
 vivodump$(EXESUF): vivodump.c
-	$(CC) $(CFLAGS) -o $@ $< ../mp_msg.o ../libmpdemux/libmpdemux.a \
-           ../stream/stream.a ../mp_fifo.o ../osdep/libosdep.a -ltermcap -lm
+	$(CC) $(CFLAGS) -o $@ $< ../libmpdemux/libmpdemux.a \
+          ../stream/stream.a $(COMMON_LIBS)
 
 fastmemcpybench: fastmemcpybench.c
 	$(CC) $(CFLAGS) -g $< -o fastmem-mmx$(EXESUF)  -DNAME=\"mmx\"      -DHAVE_MMX
@@ -59,10 +60,7 @@ NETSTREAM_DEPS = ../libmpdemux/libmpdemu
                  ../libavutil/libavutil.a \
                  ../m_option.o \
                  ../m_struct.o \
-                 ../mp_msg.o \
-                 ../mp_fifo.o \
-                 ../osdep/libosdep.a \
-                 -ltermcap -lm \
+                  $(COMMON_LIBS)
 
 ifeq ($(TARGET_WIN32),yes)
 NETSTREAM_DEPS += -lwsock32



More information about the MPlayer-cvslog mailing list