Mercurial > mplayer.hg
annotate Gui/Makefile @ 9095:b4289ed59c30
sync
author | nicolas |
---|---|
date | Sun, 26 Jan 2003 11:15:00 +0000 |
parents | e005b55c3a0a |
children | 6d6ba8e88e57 |
rev | line source |
---|---|
1693 | 1 |
2 LIB = libgui.a | |
3 | |
4 include ../config.mak | |
5 include config.mak | |
6 | |
8136 | 7 INCDIR = -I. -I../loader -I./wm -I./skin $(FREETYPE_INC) $(GTKINC) $(EXTRA_INC) |
1693 | 8 |
8976 | 9 OPTIMIZE = $(OPTFLAGS) \ |
8273
226e6866212d
reversing my patch to check for -Wall support & use it if available (requested by A'rpi)
rathann
parents:
8255
diff
changeset
|
10 -fexpensive-optimizations -fschedule-insns2 -Wall |
2025
0653e90b3118
some bug fix, and sub window render speed up.. 10l kola ? :)
pontscho
parents:
2024
diff
changeset
|
11 ifeq ($(TARGET_ARCH_X86),yes) |
0653e90b3118
some bug fix, and sub window render speed up.. 10l kola ? :)
pontscho
parents:
2024
diff
changeset
|
12 OPTIMIZE += -malign-double |
0653e90b3118
some bug fix, and sub window render speed up.. 10l kola ? :)
pontscho
parents:
2024
diff
changeset
|
13 endif |
1693 | 14 |
15 CFLAGS = $(OPTIMIZE) $(INCDIR) $(DEBUG) | |
16 | |
8058 | 17 SRCS = wm/ws.c wm/wsxdnd.c app.c interface.c cfg.c bitmap.c \ |
6625 | 18 skin/skin.c skin/font.c skin/cut.c \ |
8973 | 19 mplayer/widgets.c mplayer/play.c mplayer/mw.c mplayer/sw.c mplayer/menu.c mplayer/pb.c mplayer/common.c \ |
8181 | 20 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 | 21 OBJS = $(SRCS:.c=.o) |
22 | |
1693 | 23 .SUFFIXES: .c .o |
24 | |
25 .c.o: | |
26 $(CC) -c $(CFLAGS) -o $@ $< | |
27 | |
28 ### TARGETS ### | |
29 | |
30 $(LIB): .depend $(OBJS) | |
31 rm -f $(LIB) | |
6036 | 32 $(AR) rc $(LIB) $(OBJS) $(MPLAYEROBJS) |
1693 | 33 |
34 all: $(LIB) | |
35 | |
36 clean: | |
37 rm -rf $(OBJS) *.o *~ *.bak main $(PRG) $(LIB) .depend | |
38 | |
39 #dep: depend | |
40 # | |
41 #depend: | |
42 # makedepend -- $(CFLAGS) -- $(SRCS) &>/dev/null | |
43 # | |
44 | |
45 distclean: clean | |
46 | |
47 dep: depend | |
48 | |
49 depend: .depend | |
50 | |
6625 | 51 .depend: Makefile config.mak |
1693 | 52 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
53 | |
54 # | |
55 # include dependency files if they exist | |
56 # | |
57 ifneq ($(wildcard .depend),) | |
58 include .depend | |
59 endif |