Mercurial > mplayer.hg
comparison mpcommon.mak @ 22528:8bcff5c7e387
Give more descriptive names to the source and library variables and split
between common, MPlayer-specific and MEncoder-specific parts.
author | diego |
---|---|
date | Tue, 13 Mar 2007 12:10:57 +0000 |
parents | cbf425ba6a96 |
children | 974f5ffb5097 |
comparison
equal
deleted
inserted
replaced
22527:5dc92a83d58a | 22528:8bcff5c7e387 |
---|---|
1 SRCS += $(SRCS-yes) | 1 SRCS_COMMON += $(SRCS_COMMON-yes) |
2 SRCS2 += $(SRCS2-yes) | 2 SRCS_MPLAYER += $(SRCS_MPLAYER-yes) |
3 SRCS_MENCODER += $(SRCS_MENCODER-yes) | |
3 CFLAGS += $(CFLAGS-yes) | 4 CFLAGS += $(CFLAGS-yes) |
4 | 5 |
5 OBJS = $(addsuffix .o, $(basename $(SRCS)) ) | 6 OBJS_COMMON = $(addsuffix .o, $(basename $(SRCS_COMMON)) ) |
6 OBJS2 = $(addsuffix .o, $(basename $(SRCS2)) ) | 7 OBJS_MPLAYER = $(addsuffix .o, $(basename $(SRCS_MPLAYER)) ) |
8 OBJS_MENCODER = $(addsuffix .o, $(basename $(SRCS_MENCODER)) ) | |
7 | 9 |
8 CFLAGS += -I. -I.. $(OPTFLAGS) | 10 CFLAGS += -I. -I.. $(OPTFLAGS) |
9 | 11 |
10 LIBS = $(LIBNAME) $(LIBNAME2) | 12 LIBS-$(MPLAYER) += $(LIBNAME_MPLAYER) |
13 LIBS-$(MENCODER) += $(LIBNAME_MENCODER) | |
14 LIBS = $(LIBNAME_COMMON) $(LIBS-yes) | |
11 | 15 |
12 libs: $(LIBS) | 16 libs: $(LIBS) |
13 | 17 |
14 $(LIBNAME): $(OBJS) | 18 $(LIBNAME_COMMON): $(OBJS_COMMON) |
15 $(LIBNAME2): $(OBJS2) | 19 $(LIBNAME_MPLAYER): $(OBJS_MPLAYER) |
16 $(LIBNAME) $(LIBNAME2): | 20 $(LIBNAME_MENCODER): $(OBJS_MENCODER) |
21 $(LIBNAME_COMMON) $(LIBNAME_MPLAYER) $(LIBNAME_MENCODER): | |
17 $(AR) r $@ $^ | 22 $(AR) r $@ $^ |
18 $(RANLIB) $@ | 23 $(RANLIB) $@ |
19 | 24 |
20 clean:: | 25 clean:: |
21 rm -f *.o *.a *~ | 26 rm -f *.o *.a *~ |
22 | 27 |
23 distclean:: clean | 28 distclean:: clean |
24 rm -f .depend | 29 rm -f .depend |
25 | 30 |
26 dep depend: | 31 dep depend: |
27 $(CC) -MM $(CFLAGS) $(SRCS) $(SRCS2) 1>.depend | 32 $(CC) -MM $(CFLAGS) $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend |
28 | 33 |
29 -include .depend | 34 -include .depend |
30 | 35 |
31 .PHONY: libs clean distclean dep depend | 36 .PHONY: libs clean distclean dep depend |