Mercurial > mplayer.hg
annotate Gui/Makefile @ 17489:399f91dd4fbe
Make clean/distclean behave uniformly in all directories.
author | diego |
---|---|
date | Fri, 27 Jan 2006 00:18:52 +0000 |
parents | 418f64d01554 |
children | 257c8575c5ab |
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: | |
17489
399f91dd4fbe
Make clean/distclean behave uniformly in all directories.
diego
parents:
17396
diff
changeset
|
33 rm -f *.o *.a *~ |
1693 | 34 |
35 #dep: depend | |
36 # | |
37 #depend: | |
38 # makedepend -- $(CFLAGS) -- $(SRCS) &>/dev/null | |
39 # | |
40 | |
41 distclean: clean | |
17489
399f91dd4fbe
Make clean/distclean behave uniformly in all directories.
diego
parents:
17396
diff
changeset
|
42 rm -f .depend |
1693 | 43 |
44 dep: depend | |
45 | |
46 depend: .depend | |
47 | |
6625 | 48 .depend: Makefile config.mak |
1693 | 49 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
50 | |
51 # | |
52 # include dependency files if they exist | |
53 # | |
54 ifneq ($(wildcard .depend),) | |
55 include .depend | |
56 endif |