Mercurial > mplayer.hg
annotate libmenu/Makefile @ 17020:dde990d47ce8
Unify include paths, -I.. is in CFLAGS.
author | diego |
---|---|
date | Sat, 19 Nov 2005 14:35:45 +0000 |
parents | 80973aa180a5 |
children | 7af5fe0860a1 |
rev | line source |
---|---|
8197 | 1 |
2 include ../config.mak | |
3 | |
4 LIBNAME = libmenu.a | |
5 | |
6 SRCS= menu.c vf_menu.c menu_cmdlist.c menu_pt.c menu_list.c menu_filesel.c menu_txt.c menu_console.c menu_param.c | |
10626
fd97f3727f15
Finnaly commit Nico's dvb menu. Sorry for committing this
albeu
parents:
8623
diff
changeset
|
7 ifeq ($(DVBIN),yes) |
fd97f3727f15
Finnaly commit Nico's dvb menu. Sorry for committing this
albeu
parents:
8623
diff
changeset
|
8 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
|
9 EXTRA_INC += $(DVB_INC) |
10626
fd97f3727f15
Finnaly commit Nico's dvb menu. Sorry for committing this
albeu
parents:
8623
diff
changeset
|
10 endif |
8197 | 11 OBJS=$(SRCS:.c=.o) |
12 | |
13 CFLAGS = $(OPTFLAGS) -I. -I.. -I../libmpcodecs $(EXTRA_INC) -Wall | |
14 | |
15 .SUFFIXES: .c .o | |
16 | |
17 | |
18 .c.o: | |
8224
fefc56153615
Fix freetype. Freetype is highly recommended for a nice output ;)
albeu
parents:
8197
diff
changeset
|
19 $(CC) -c $(CFLAGS) $(FREETYPE_INC) -o $@ $< |
8197 | 20 |
21 $(LIBNAME): $(OBJS) | |
22 $(AR) r $(LIBNAME) $(OBJS) | |
12632 | 23 $(RANLIB) $(LIBNAME) |
8197 | 24 |
25 all: $(LIBNAME) | |
26 | |
27 clean: | |
28 rm -f *.o *.a *~ | |
29 | |
30 distclean: | |
31 rm -f Makefile.bak *.o *.a *~ .depend | |
32 | |
33 dep: depend | |
34 | |
35 depend: | |
8623
440301fef3fe
Added/reordered #includes to silence warnings about "implicit declaration".
rathann
parents:
8224
diff
changeset
|
36 $(CC) -MM $(CFLAGS) $(FREETYPE_INC) $(SRCS) 1>.depend |
8197 | 37 |
38 # | |
39 # include dependency files if they exist | |
40 # | |
41 ifneq ($(wildcard .depend),) | |
42 include .depend | |
43 endif |