[MPlayer-cvslog] r26217 - trunk/common.mak

diego subversion at mplayerhq.hu
Mon Mar 10 20:43:07 CET 2008


Author: diego
Date: Mon Mar 10 20:43:07 2008
New Revision: 26217

Log:
sync with FFmpeg r12398


Modified:
   trunk/common.mak

Modified: trunk/common.mak
==============================================================================
--- trunk/common.mak	(original)
+++ trunk/common.mak	Mon Mar 10 20:43:07 2008
@@ -4,6 +4,9 @@
 
 LIBSRC = $(SRC_PATH_BARE)/lib$(NAME)
 
+LIBVERSION = $(lib$(NAME)_VERSION)
+LIBMAJOR   = $(lib$(NAME)_VERSION_MAJOR)
+
 vpath %.c $(LIBSRC)
 vpath %.h $(LIBSRC)
 vpath %.S $(LIBSRC)
@@ -58,8 +61,9 @@ $(SLIBNAME_WITH_MAJOR): $(OBJS)
 ALLHEADERS = $(subst $(LIBSRC)/,,$(wildcard $(LIBSRC)/*.h))
 checkheaders: $(filter-out %_template.ho,$(ALLHEADERS:.h=.ho))
 
+# gcc stupidly only outputs the basename of targets with -MM
 depend dep: $(SRCS)
-	$(CC) -MM $(CFLAGS) $^ 1>.depend
+	$(CC) -MM $(CFLAGS) $^ | sed 's,[0-9a-z._-]*: \([a-z0-9]*/\).*,\1&,' 1>.depend
 
 clean::
 	rm -f *.o *~ *.a *.lib *.so *.so.* *.dylib *.dll \



More information about the MPlayer-cvslog mailing list