comparison 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
comparison
equal deleted inserted replaced
21258:ed01090d1192 21259:92b122592776
42 mplayer/gtk/url.c \ 42 mplayer/gtk/url.c \
43 mplayer/gtk/eq.c \ 43 mplayer/gtk/eq.c \
44 mplayer/gtk/common.c \ 44 mplayer/gtk/common.c \
45 45
46 endif 46 endif
47 OBJS = $(SRCS:.c=.o)
48 47
49 .SUFFIXES: .c .o 48 include ../mpcommon.mak
50 49
51 .c.o: 50 clean::
52 $(CC) -c $(CFLAGS) -o $@ $< 51 rm -f mplayer/*.o mplayer/*~ \
53
54 $(LIBNAME): $(OBJS)
55 rm -f $(LIBNAME)
56 $(AR) rc $(LIBNAME) $(OBJS)
57 $(RANLIB) $(LIBNAME)
58
59 all: $(LIBNAME)
60
61 clean:
62 rm -f *.o *.a *~ \
63 mplayer/*.o mplayer/*~ \
64 mplayer/gtk/*.o mplayer/gtk/*~ \ 52 mplayer/gtk/*.o mplayer/gtk/*~ \
65 skin/*.o skin/*~ \ 53 skin/*.o skin/*~ \
66 wm/*.o wm/*~ \ 54 wm/*.o wm/*~ \
67 win32/*.o win32/*~ \ 55 win32/*.o win32/*~ \
68
69 distclean: clean
70 rm -f .depend
71
72 dep depend:
73 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
74
75 ifneq ($(wildcard .depend),)
76 include .depend
77 endif