diff Gui/Makefile @ 21259:92b122592776

Merge common parts of all Makefiles into one file included by all.
author diego
date Sun, 26 Nov 2006 18:12:36 +0000
parents 80106fbd9ddc
children 947f679ee12e
line wrap: on
line diff
--- a/Gui/Makefile	Sun Nov 26 18:06:11 2006 +0000
+++ b/Gui/Makefile	Sun Nov 26 18:12:36 2006 +0000
@@ -44,34 +44,12 @@
        mplayer/gtk/common.c \
 
 endif
-OBJS = $(SRCS:.c=.o)
 
-.SUFFIXES: .c .o
-
-.c.o:
-	$(CC) -c $(CFLAGS) -o $@ $<
+include ../mpcommon.mak
 
-$(LIBNAME): $(OBJS)
-	rm -f $(LIBNAME)
-	$(AR) rc $(LIBNAME) $(OBJS)
-	$(RANLIB) $(LIBNAME)
-
-all:	$(LIBNAME)
-
-clean:
-	rm -f *.o *.a *~ \
-              mplayer/*.o mplayer/*~ \
+clean::
+	rm -f mplayer/*.o mplayer/*~ \
               mplayer/gtk/*.o mplayer/gtk/*~ \
               skin/*.o skin/*~ \
               wm/*.o wm/*~ \
               win32/*.o win32/*~ \
-
-distclean: clean
-	rm -f .depend
-
-dep depend:
-	$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
-
-ifneq ($(wildcard .depend),)
-include .depend
-endif