Mercurial > mplayer.hg
annotate Gui/Makefile @ 17742:c95961832830
Comment fix: mp_msg_levels[] is inited to -2, not 2.
author | diego |
---|---|
date | Sun, 05 Mar 2006 18:28:20 +0000 |
parents | 257c8575c5ab |
children | c127ce678083 |
rev | line source |
---|---|
1693 | 1 include ../config.mak |
2 include config.mak | |
3 | |
17396 | 4 LIBNAME = libgui.a |
5 | |
13787
e047e70a9767
Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.
diego
parents:
12707
diff
changeset
|
6 INCDIR = -I. -I.. -I../loader -I./wm -I./skin $(FREETYPE_INC) $(GTKINC) $(EXTRA_INC) |
1693 | 7 |
17381
7af5fe0860a1
This patch cleans up OPTFLAGS in Gui, removes hardcoded -Wall from
rathann
parents:
13787
diff
changeset
|
8 OPTIMIZE = $(OPTFLAGS) |
1693 | 9 |
10 CFLAGS = $(OPTIMIZE) $(INCDIR) $(DEBUG) | |
11 | |
8058 | 12 SRCS = wm/ws.c wm/wsxdnd.c app.c interface.c cfg.c bitmap.c \ |
6625 | 13 skin/skin.c skin/font.c skin/cut.c \ |
8973 | 14 mplayer/widgets.c mplayer/play.c mplayer/mw.c mplayer/sw.c mplayer/menu.c mplayer/pb.c mplayer/common.c \ |
8181 | 15 mplayer/gtk/menu.c mplayer/gtk/mb.c mplayer/gtk/about.c mplayer/gtk/pl.c mplayer/gtk/sb.c mplayer/gtk/fs.c mplayer/gtk/opts.c mplayer/gtk/url.c mplayer/gtk/eq.c mplayer/gtk/common.c |
6625 | 16 OBJS = $(SRCS:.c=.o) |
17 | |
1693 | 18 .SUFFIXES: .c .o |
19 | |
20 .c.o: | |
21 $(CC) -c $(CFLAGS) -o $@ $< | |
22 | |
23 ### TARGETS ### | |
24 | |
17396 | 25 $(LIBNAME): .depend $(OBJS) |
26 rm -f $(LIBNAME) | |
27 $(AR) rc $(LIBNAME) $(OBJS) $(MPLAYEROBJS) | |
28 $(RANLIB) $(LIBNAME) | |
1693 | 29 |
17396 | 30 all: $(LIBNAME) |
1693 | 31 |
32 clean: | |
17494 | 33 rm -f *.o *.a *~ \ |
34 mplayer/*.o mplayer/*~ \ | |
35 mplayer/gtk/*.o mplayer/gtk/*~ \ | |
36 skin/*.o skin/*~ \ | |
37 wm/*.o wm/*~ | |
1693 | 38 |
39 #dep: depend | |
40 # | |
41 #depend: | |
42 # makedepend -- $(CFLAGS) -- $(SRCS) &>/dev/null | |
43 # | |
44 | |
45 distclean: clean | |
17489
399f91dd4fbe
Make clean/distclean behave uniformly in all directories.
diego
parents:
17396
diff
changeset
|
46 rm -f .depend |
1693 | 47 |
48 dep: depend | |
49 | |
50 depend: .depend | |
51 | |
6625 | 52 .depend: Makefile config.mak |
1693 | 53 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
54 | |
55 # | |
56 # include dependency files if they exist | |
57 # | |
58 ifneq ($(wildcard .depend),) | |
59 include .depend | |
60 endif |