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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
1 include ../config.mak
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
2 include config.mak
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
3
17396
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
4 LIBNAME = libgui.a
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
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
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
7
17381
7af5fe0860a1 This patch cleans up OPTFLAGS in Gui, removes hardcoded -Wall from
rathann
parents: 13787
diff changeset
8 OPTIMIZE = $(OPTFLAGS)
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
9
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
10 CFLAGS = $(OPTIMIZE) $(INCDIR) $(DEBUG)
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
11
8058
9246adcf95f0 cosmetic
pontscho
parents: 8046
diff changeset
12 SRCS = wm/ws.c wm/wsxdnd.c app.c interface.c cfg.c bitmap.c \
6625
54cfbaaf161b remove unneded config files
pontscho
parents: 6036
diff changeset
13 skin/skin.c skin/font.c skin/cut.c \
8973
0a665389cf2b - add playbar
pontscho
parents: 8273
diff changeset
14 mplayer/widgets.c mplayer/play.c mplayer/mw.c mplayer/sw.c mplayer/menu.c mplayer/pb.c mplayer/common.c \
8181
pontscho
parents: 8136
diff changeset
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
54cfbaaf161b remove unneded config files
pontscho
parents: 6036
diff changeset
16 OBJS = $(SRCS:.c=.o)
54cfbaaf161b remove unneded config files
pontscho
parents: 6036
diff changeset
17
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
18 .SUFFIXES: .c .o
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
19
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
20 .c.o:
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
21 $(CC) -c $(CFLAGS) -o $@ $<
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
22
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
23 ### TARGETS ###
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
24
17396
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
25 $(LIBNAME): .depend $(OBJS)
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
26 rm -f $(LIBNAME)
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
27 $(AR) rc $(LIBNAME) $(OBJS) $(MPLAYEROBJS)
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
28 $(RANLIB) $(LIBNAME)
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
29
17396
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
30 all: $(LIBNAME)
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
31
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
32 clean:
17494
257c8575c5ab Also remove objects in subdirectories.
diego
parents: 17489
diff changeset
33 rm -f *.o *.a *~ \
257c8575c5ab Also remove objects in subdirectories.
diego
parents: 17489
diff changeset
34 mplayer/*.o mplayer/*~ \
257c8575c5ab Also remove objects in subdirectories.
diego
parents: 17489
diff changeset
35 mplayer/gtk/*.o mplayer/gtk/*~ \
257c8575c5ab Also remove objects in subdirectories.
diego
parents: 17489
diff changeset
36 skin/*.o skin/*~ \
257c8575c5ab Also remove objects in subdirectories.
diego
parents: 17489
diff changeset
37 wm/*.o wm/*~
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
38
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
39 #dep: depend
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
40 #
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
41 #depend:
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
42 # makedepend -- $(CFLAGS) -- $(SRCS) &>/dev/null
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
43 #
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
44
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
45 distclean: clean
17489
399f91dd4fbe Make clean/distclean behave uniformly in all directories.
diego
parents: 17396
diff changeset
46 rm -f .depend
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
47
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
48 dep: depend
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
49
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
50 depend: .depend
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
51
6625
54cfbaaf161b remove unneded config files
pontscho
parents: 6036
diff changeset
52 .depend: Makefile config.mak
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
53 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
54
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
55 #
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
56 # include dependency files if they exist
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
57 #
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
58 ifneq ($(wildcard .depend),)
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
59 include .depend
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
60 endif