Mercurial > mplayer.hg
annotate mpcommon.mak @ 21283:4b312876b682
sync w/ 21298
author | gpoirier |
---|---|
date | Sun, 26 Nov 2006 23:25:42 +0000 |
parents | 92b122592776 |
children | f423ce0a1c36 |
rev | line source |
---|---|
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
1 OBJS = $(SRCS:.c=.o) |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
2 OBJS := $(OBJS:.S=.o) |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
3 OBJS := $(OBJS:.s=.o) |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
4 OBJS := $(OBJS:.cpp=.o) |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
5 |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
6 CFLAGS += -I. -I.. $(OPTFLAGS) |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
7 |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
8 .SUFFIXES: .c .o |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
9 |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
10 .c.o: |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
11 $(CC) -c $(CFLAGS) -o $@ $< |
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 all: $(LIBNAME) |
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 $(LIBNAME): $(OBJS) |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
16 $(AR) r $@ $^ |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
17 $(RANLIB) $@ |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
18 |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
19 clean:: |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
20 rm -f *.o *.a *~ |
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 distclean:: clean |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
23 rm -f .depend |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
24 |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
25 dep depend: |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
26 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
27 |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
28 ifneq ($(wildcard .depend),) |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
29 include .depend |
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
diff
changeset
|
30 endif |