annotate Gui/Makefile @ 19022:e03e218c592a

- svn sync tag added - small updates
author boskicinek
date Wed, 12 Jul 2006 13:13:16 +0000
parents 2dc84d07332c
children 9fd34039e6df
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
18913
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
12 ifeq ($(TARGET_WIN32),yes)
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
13 SRCS = win32/dialogs.c \
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
14 win32/gui.c \
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
15 win32/interface.c \
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
16 win32/playlist.c \
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
17 win32/preferences.c \
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
18 win32/skinload.c \
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
19 win32/widgetrender.c \
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
20 win32/wincfg.c
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
21 else
17943
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
22 SRCS = wm/ws.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
23 wm/wsxdnd.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
24 app.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
25 interface.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
26 cfg.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
27 bitmap.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
28 skin/skin.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
29 skin/font.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
30 skin/cut.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
31 mplayer/widgets.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
32 mplayer/play.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
33 mplayer/mw.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
34 mplayer/sw.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
35 mplayer/menu.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
36 mplayer/pb.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
37 mplayer/common.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
38 mplayer/gtk/menu.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
39 mplayer/gtk/mb.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
40 mplayer/gtk/about.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
41 mplayer/gtk/pl.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
42 mplayer/gtk/sb.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
43 mplayer/gtk/fs.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
44 mplayer/gtk/opts.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
45 mplayer/gtk/url.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
46 mplayer/gtk/eq.c \
18913
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
47 mplayer/gtk/common.c
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/*~ \
2dc84d07332c Initial win32 gui release.
vayne
parents: 18483
diff changeset
71 win32/*.o
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