Mercurial > mplayer.hg
annotate mpcommon.mak @ 21335:54f621f7a37b
Unrecurse VIDIX drivers uninstall.
author | diego |
---|---|
date | Tue, 28 Nov 2006 09:36:39 +0000 |
parents | 5fdf546b4e57 |
children | c74dbfe68bb3 |
rev | line source |
---|---|
21307 | 1 SRCS += $(SRCS-yes) |
2 SRCS2 += $(SRCS2-yes) | |
3 LIBAV_INC += $(LIBAV_INC-yes) | |
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 | 8 OBJS := $(OBJS:.m=.o) |
21307 | 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 |