Mercurial > mplayer.hg
annotate Gui/Makefile @ 17381:7af5fe0860a1
This patch cleans up OPTFLAGS in Gui, removes hardcoded -Wall from
libaf's and libmenu's Makefiles and -g from main Makefile.
author | rathann |
---|---|
date | Fri, 13 Jan 2006 23:38:16 +0000 |
parents | e047e70a9767 |
children | 418f64d01554 |
rev | line source |
---|---|
1693 | 1 |
2 LIB = libgui.a | |
3 | |
4 include ../config.mak | |
5 include config.mak | |
6 | |
13787
e047e70a9767
Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.
diego
parents:
12707
diff
changeset
|
7 INCDIR = -I. -I.. -I../loader -I./wm -I./skin $(FREETYPE_INC) $(GTKINC) $(EXTRA_INC) |
1693 | 8 |
17381
7af5fe0860a1
This patch cleans up OPTFLAGS in Gui, removes hardcoded -Wall from
rathann
parents:
13787
diff
changeset
|
9 OPTIMIZE = $(OPTFLAGS) |
1693 | 10 |
11 CFLAGS = $(OPTIMIZE) $(INCDIR) $(DEBUG) | |
12 | |
8058 | 13 SRCS = wm/ws.c wm/wsxdnd.c app.c interface.c cfg.c bitmap.c \ |
6625 | 14 skin/skin.c skin/font.c skin/cut.c \ |
8973 | 15 mplayer/widgets.c mplayer/play.c mplayer/mw.c mplayer/sw.c mplayer/menu.c mplayer/pb.c mplayer/common.c \ |
8181 | 16 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 | 17 OBJS = $(SRCS:.c=.o) |
18 | |
1693 | 19 .SUFFIXES: .c .o |
20 | |
21 .c.o: | |
22 $(CC) -c $(CFLAGS) -o $@ $< | |
23 | |
24 ### TARGETS ### | |
25 | |
26 $(LIB): .depend $(OBJS) | |
27 rm -f $(LIB) | |
6036 | 28 $(AR) rc $(LIB) $(OBJS) $(MPLAYEROBJS) |
12632 | 29 $(RANLIB) $(LIB) |
1693 | 30 |
31 all: $(LIB) | |
32 | |
33 clean: | |
12707 | 34 rm -rf $(OBJS) *.o *~ *.bak main $(LIB) .depend |
1693 | 35 |
36 #dep: depend | |
37 # | |
38 #depend: | |
39 # makedepend -- $(CFLAGS) -- $(SRCS) &>/dev/null | |
40 # | |
41 | |
42 distclean: clean | |
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 |