annotate Gui/Makefile @ 20238:acbcafd891ff

syn with r20043, Patch by Emmanuel Turlay %bluesmanu AH gmail P com%
author gpoirier
date Sun, 15 Oct 2006 16:28:56 +0000
parents b1cebdd78625
children 618d1857f4c4
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
17396
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
3 LIBNAME = libgui.a
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
4
19190
1ea5c31932fd Unify include paths in the build system, part I.
diego
parents: 19072
diff changeset
5 INCDIR = -I. -I.. -I../loader -I./wm -I./skin
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
6
19998
b1cebdd78625 Do not compile with -DDEBUG by default.
diego
parents: 19493
diff changeset
7 CFLAGS = $(INCDIR) $(OPTFLAGS)
b1cebdd78625 Do not compile with -DDEBUG by default.
diego
parents: 19493
diff changeset
8 #CFLAGS += -DDEBUG
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
9
18913
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
10 ifeq ($(TARGET_WIN32),yes)
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
11 SRCS = win32/dialogs.c \
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
12 win32/gui.c \
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
13 win32/interface.c \
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
14 win32/playlist.c \
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
15 win32/preferences.c \
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
16 win32/skinload.c \
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
17 win32/widgetrender.c \
19072
e6f5f7c26166 cosmetics to ease future patching
diego
parents: 19052
diff changeset
18 win32/wincfg.c \
e6f5f7c26166 cosmetics to ease future patching
diego
parents: 19052
diff changeset
19
18913
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
20 else
17943
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
21 SRCS = wm/ws.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
22 wm/wsxdnd.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
23 app.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
24 interface.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
25 cfg.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
26 bitmap.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
27 skin/skin.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
28 skin/font.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
29 skin/cut.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
30 mplayer/widgets.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
31 mplayer/play.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
32 mplayer/mw.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
33 mplayer/sw.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
34 mplayer/menu.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
35 mplayer/pb.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
36 mplayer/common.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
37 mplayer/gtk/menu.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
38 mplayer/gtk/mb.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
39 mplayer/gtk/about.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
40 mplayer/gtk/pl.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
41 mplayer/gtk/sb.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
42 mplayer/gtk/fs.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
43 mplayer/gtk/opts.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
44 mplayer/gtk/url.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
45 mplayer/gtk/eq.c \
19072
e6f5f7c26166 cosmetics to ease future patching
diego
parents: 19052
diff changeset
46 mplayer/gtk/common.c \
e6f5f7c26166 cosmetics to ease future patching
diego
parents: 19052
diff changeset
47
18913
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
48 endif
6625
54cfbaaf161b remove unneded config files
pontscho
parents: 6036
diff changeset
49 OBJS = $(SRCS:.c=.o)
54cfbaaf161b remove unneded config files
pontscho
parents: 6036
diff changeset
50
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
51 .SUFFIXES: .c .o
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
52
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
53 .c.o:
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
54 $(CC) -c $(CFLAGS) -o $@ $<
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
55
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
56 ### TARGETS ###
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
57
18483
42e57ea2b91f Make depend targets consistent: Remove redirection through .depend target.
diego
parents: 17943
diff changeset
58 $(LIBNAME): $(OBJS)
17396
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
59 rm -f $(LIBNAME)
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
60 $(AR) rc $(LIBNAME) $(OBJS) $(MPLAYEROBJS)
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
61 $(RANLIB) $(LIBNAME)
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
62
17396
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
63 all: $(LIBNAME)
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
64
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
65 clean:
17494
257c8575c5ab Also remove objects in subdirectories.
diego
parents: 17489
diff changeset
66 rm -f *.o *.a *~ \
257c8575c5ab Also remove objects in subdirectories.
diego
parents: 17489
diff changeset
67 mplayer/*.o mplayer/*~ \
257c8575c5ab Also remove objects in subdirectories.
diego
parents: 17489
diff changeset
68 mplayer/gtk/*.o mplayer/gtk/*~ \
257c8575c5ab Also remove objects in subdirectories.
diego
parents: 17489
diff changeset
69 skin/*.o skin/*~ \
18913
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
70 wm/*.o wm/*~ \
19493
aa58338824f8 Remove backup files from the win32 subdir as well.
diego
parents: 19420
diff changeset
71 win32/*.o win32/*~ \
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
72
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
73 #dep: depend
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
74 #
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
75 #depend:
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
76 # makedepend -- $(CFLAGS) -- $(SRCS) &>/dev/null
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
77 #
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
78
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
79 distclean: clean
17489
399f91dd4fbe Make clean/distclean behave uniformly in all directories.
diego
parents: 17396
diff changeset
80 rm -f .depend
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
81
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
82 dep: depend
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
83
18483
42e57ea2b91f Make depend targets consistent: Remove redirection through .depend target.
diego
parents: 17943
diff changeset
84 depend:
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
85 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
86
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
87 #
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
88 # include dependency files if they exist
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
89 #
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
90 ifneq ($(wildcard .depend),)
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
91 include .depend
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
92 endif