annotate Gui/Makefile @ 17964:2a85c470cbd0

Discard return value from ldconfig, it might not work on non-root installs.
author diego
date Sun, 26 Mar 2006 21:17:14 +0000
parents c127ce678083
children 42e57ea2b91f
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
17943
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
12 SRCS = wm/ws.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
13 wm/wsxdnd.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
14 app.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
15 interface.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
16 cfg.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
17 bitmap.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
18 skin/skin.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
19 skin/font.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
20 skin/cut.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
21 mplayer/widgets.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
22 mplayer/play.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
23 mplayer/mw.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
24 mplayer/sw.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
25 mplayer/menu.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
26 mplayer/pb.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
27 mplayer/common.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
28 mplayer/gtk/menu.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
29 mplayer/gtk/mb.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
30 mplayer/gtk/about.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
31 mplayer/gtk/pl.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
32 mplayer/gtk/sb.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
33 mplayer/gtk/fs.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
34 mplayer/gtk/opts.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
35 mplayer/gtk/url.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
36 mplayer/gtk/eq.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
37 mplayer/gtk/common.c \
c127ce678083 cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents: 17494
diff changeset
38
6625
54cfbaaf161b remove unneded config files
pontscho
parents: 6036
diff changeset
39 OBJS = $(SRCS:.c=.o)
54cfbaaf161b remove unneded config files
pontscho
parents: 6036
diff changeset
40
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
41 .SUFFIXES: .c .o
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
42
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
43 .c.o:
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
44 $(CC) -c $(CFLAGS) -o $@ $<
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
45
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
46 ### TARGETS ###
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
47
17396
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
48 $(LIBNAME): .depend $(OBJS)
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
49 rm -f $(LIBNAME)
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
50 $(AR) rc $(LIBNAME) $(OBJS) $(MPLAYEROBJS)
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
51 $(RANLIB) $(LIBNAME)
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
52
17396
418f64d01554 Change LIB to LIBNAME to fix compilation.
diego
parents: 17381
diff changeset
53 all: $(LIBNAME)
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
54
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
55 clean:
17494
257c8575c5ab Also remove objects in subdirectories.
diego
parents: 17489
diff changeset
56 rm -f *.o *.a *~ \
257c8575c5ab Also remove objects in subdirectories.
diego
parents: 17489
diff changeset
57 mplayer/*.o mplayer/*~ \
257c8575c5ab Also remove objects in subdirectories.
diego
parents: 17489
diff changeset
58 mplayer/gtk/*.o mplayer/gtk/*~ \
257c8575c5ab Also remove objects in subdirectories.
diego
parents: 17489
diff changeset
59 skin/*.o skin/*~ \
257c8575c5ab Also remove objects in subdirectories.
diego
parents: 17489
diff changeset
60 wm/*.o wm/*~
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
61
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
62 #dep: depend
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
63 #
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
64 #depend:
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
65 # makedepend -- $(CFLAGS) -- $(SRCS) &>/dev/null
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
66 #
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
67
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
68 distclean: clean
17489
399f91dd4fbe Make clean/distclean behave uniformly in all directories.
diego
parents: 17396
diff changeset
69 rm -f .depend
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
70
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
71 dep: depend
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
72
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
73 depend: .depend
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
74
6625
54cfbaaf161b remove unneded config files
pontscho
parents: 6036
diff changeset
75 .depend: Makefile config.mak
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
76 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
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 # include dependency files if they exist
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
80 #
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
81 ifneq ($(wildcard .depend),)
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
82 include .depend
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
83 endif