annotate mpcommon.mak @ 21323:578fc5ca6a4f

Don't include freetype headers in other headers.
author eugeni
date Mon, 27 Nov 2006 17:56:49 +0000
parents 5fdf546b4e57
children c74dbfe68bb3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21307
5fdf546b4e57 Move common code to mpcommon.mak.
diego
parents: 21303
diff changeset
1 SRCS += $(SRCS-yes)
5fdf546b4e57 Move common code to mpcommon.mak.
diego
parents: 21303
diff changeset
2 SRCS2 += $(SRCS2-yes)
5fdf546b4e57 Move common code to mpcommon.mak.
diego
parents: 21303
diff changeset
3 LIBAV_INC += $(LIBAV_INC-yes)
5fdf546b4e57 Move common code to mpcommon.mak.
diego
parents: 21303
diff changeset
4
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
5 OBJS = $(SRCS:.c=.o)
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
6 OBJS := $(OBJS:.S=.o)
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
7 OBJS := $(OBJS:.cpp=.o)
21303
66605be4662b oops someone forgot obj-c source file
nplourde
parents: 21292
diff changeset
8 OBJS := $(OBJS:.m=.o)
21307
5fdf546b4e57 Move common code to mpcommon.mak.
diego
parents: 21303
diff changeset
9 OBJS2 = $(SRCS2:.c=.o)
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
10
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
11 CFLAGS += -I. -I.. $(OPTFLAGS)
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
12
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
13 .SUFFIXES: .c .o
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
14
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
15 .c.o:
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
16 $(CC) -c $(CFLAGS) -o $@ $<
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
17
21287
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
18 LIBS = $(LIBNAME) $(LIBNAME2)
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
19
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
20 all: $(LIBS)
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
21
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
22 $(LIBNAME): $(OBJS)
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
23 $(AR) r $@ $^
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
24 $(RANLIB) $@
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
25
21287
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
26 $(LIBNAME2): $(OBJS2)
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
27 $(AR) r $@ $^
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
28 $(RANLIB) $@
f423ce0a1c36 Move common code for generating multiple libraries to mpcommon.mak.
diego
parents: 21259
diff changeset
29
21259
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
30 clean::
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
31 rm -f *.o *.a *~
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
32
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
33 distclean:: clean
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
34 rm -f .depend
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
35
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
36 dep depend:
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
37 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
38
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
39 ifneq ($(wildcard .depend),)
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
40 include .depend
92b122592776 Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff changeset
41 endif