Mercurial > mplayer.hg
annotate libmenu/Makefile @ 18771:a1807995e2ab
Move #ifdefs around complete files into the build system.
author | diego |
---|---|
date | Wed, 21 Jun 2006 14:49:09 +0000 |
parents | c127ce678083 |
children | 7a9a9748e045 |
rev | line source |
---|---|
8197 | 1 |
2 include ../config.mak | |
3 | |
4 LIBNAME = libmenu.a | |
5 | |
17943
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
6 SRCS= menu.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
7 vf_menu.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
8 menu_cmdlist.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
9 menu_pt.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
10 menu_list.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
11 menu_filesel.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
12 menu_txt.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
13 menu_console.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
14 menu_param.c \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17488
diff
changeset
|
15 |
10626
fd97f3727f15
Finnaly commit Nico's dvb menu. Sorry for committing this
albeu
parents:
8623
diff
changeset
|
16 ifeq ($(DVBIN),yes) |
fd97f3727f15
Finnaly commit Nico's dvb menu. Sorry for committing this
albeu
parents:
8623
diff
changeset
|
17 SRCS += menu_dvbin.c |
10791
fdf41cac41ac
libmenu is missing the dvb headers, patch by Gotz Waschk <waschk@informatik.uni-rostock.de>
alex
parents:
10626
diff
changeset
|
18 EXTRA_INC += $(DVB_INC) |
10626
fd97f3727f15
Finnaly commit Nico's dvb menu. Sorry for committing this
albeu
parents:
8623
diff
changeset
|
19 endif |
8197 | 20 OBJS=$(SRCS:.c=.o) |
21 | |
17381
7af5fe0860a1
This patch cleans up OPTFLAGS in Gui, removes hardcoded -Wall from
rathann
parents:
12632
diff
changeset
|
22 CFLAGS = $(OPTFLAGS) -I. -I.. -I../libmpcodecs $(EXTRA_INC) |
8197 | 23 |
24 .SUFFIXES: .c .o | |
25 | |
26 | |
27 .c.o: | |
8224
fefc56153615
Fix freetype. Freetype is highly recommended for a nice output ;)
albeu
parents:
8197
diff
changeset
|
28 $(CC) -c $(CFLAGS) $(FREETYPE_INC) -o $@ $< |
8197 | 29 |
30 $(LIBNAME): $(OBJS) | |
31 $(AR) r $(LIBNAME) $(OBJS) | |
12632 | 32 $(RANLIB) $(LIBNAME) |
8197 | 33 |
34 all: $(LIBNAME) | |
35 | |
36 clean: | |
37 rm -f *.o *.a *~ | |
38 | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17381
diff
changeset
|
39 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17381
diff
changeset
|
40 rm -f .depend |
8197 | 41 |
42 dep: depend | |
43 | |
44 depend: | |
8623
440301fef3fe
Added/reordered #includes to silence warnings about "implicit declaration".
rathann
parents:
8224
diff
changeset
|
45 $(CC) -MM $(CFLAGS) $(FREETYPE_INC) $(SRCS) 1>.depend |
8197 | 46 |
47 # | |
48 # include dependency files if they exist | |
49 # | |
50 ifneq ($(wildcard .depend),) | |
51 include .depend | |
52 endif |