diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-13 12:10:57 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-13 12:10:57 +0000 |
commit | 60b39e278621374569859f78170c1c170bf84c85 (patch) | |
tree | a534407525d96137730d8880e7dfe07d93f77f60 /mpcommon.mak | |
parent | 39414b500ab130de25730121b5a5bb4c03f4ad32 (diff) | |
download | mpv-60b39e278621374569859f78170c1c170bf84c85.tar.bz2 mpv-60b39e278621374569859f78170c1c170bf84c85.tar.xz |
Give more descriptive names to the source and library variables and split
between common, MPlayer-specific and MEncoder-specific parts.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22546 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mpcommon.mak')
-rw-r--r-- | mpcommon.mak | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/mpcommon.mak b/mpcommon.mak index 2375c6406d..1f3b33db07 100644 --- a/mpcommon.mak +++ b/mpcommon.mak @@ -1,19 +1,24 @@ -SRCS += $(SRCS-yes) -SRCS2 += $(SRCS2-yes) +SRCS_COMMON += $(SRCS_COMMON-yes) +SRCS_MPLAYER += $(SRCS_MPLAYER-yes) +SRCS_MENCODER += $(SRCS_MENCODER-yes) CFLAGS += $(CFLAGS-yes) -OBJS = $(addsuffix .o, $(basename $(SRCS)) ) -OBJS2 = $(addsuffix .o, $(basename $(SRCS2)) ) +OBJS_COMMON = $(addsuffix .o, $(basename $(SRCS_COMMON)) ) +OBJS_MPLAYER = $(addsuffix .o, $(basename $(SRCS_MPLAYER)) ) +OBJS_MENCODER = $(addsuffix .o, $(basename $(SRCS_MENCODER)) ) CFLAGS += -I. -I.. $(OPTFLAGS) -LIBS = $(LIBNAME) $(LIBNAME2) +LIBS-$(MPLAYER) += $(LIBNAME_MPLAYER) +LIBS-$(MENCODER) += $(LIBNAME_MENCODER) +LIBS = $(LIBNAME_COMMON) $(LIBS-yes) libs: $(LIBS) -$(LIBNAME): $(OBJS) -$(LIBNAME2): $(OBJS2) -$(LIBNAME) $(LIBNAME2): +$(LIBNAME_COMMON): $(OBJS_COMMON) +$(LIBNAME_MPLAYER): $(OBJS_MPLAYER) +$(LIBNAME_MENCODER): $(OBJS_MENCODER) +$(LIBNAME_COMMON) $(LIBNAME_MPLAYER) $(LIBNAME_MENCODER): $(AR) r $@ $^ $(RANLIB) $@ @@ -24,7 +29,7 @@ distclean:: clean rm -f .depend dep depend: - $(CC) -MM $(CFLAGS) $(SRCS) $(SRCS2) 1>.depend + $(CC) -MM $(CFLAGS) $(SRCS_COMMON) $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend -include .depend |