summaryrefslogtreecommitdiff
path: root/common.mak
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-03-12 23:30:35 +0000
committerDiego Biurrun <diego@biurrun.de>2008-03-12 23:30:35 +0000
commit315c741d3d215f2861fb356dd0ba8637b6019127 (patch)
tree396278028c8c29f4d6e5d2d76f9da4a4d64540ac /common.mak
parent8b83d568930506600c65c14aaa76089d1c618d69 (diff)
Move dependency generation commands into configure.
This will allow specifying gcc-independent commands in the future. Originally committed as revision 12426 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'common.mak')
-rw-r--r--common.mak3
1 files changed, 1 insertions, 2 deletions
diff --git a/common.mak b/common.mak
index b73861944a..359aa119c8 100644
--- a/common.mak
+++ b/common.mak
@@ -61,9 +61,8 @@ $(SLIBNAME_WITH_MAJOR): $(OBJS)
ALLHEADERS = $(subst $(LIBSRC)/,,$(wildcard $(LIBSRC)/*.h))
checkheaders: $(filter-out %_template.ho,$(ALLHEADERS:.h=.ho))
-# gcc stupidly only outputs the basename of targets with -MM
depend dep: $(SRCS)
- $(CC) -MM $(CFLAGS) $^ | sed 's,[0-9a-z._-]*: \([a-z0-9]*/\).*,\1&,' > .depend
+ $(DEPEND_CMD) > .depend
clean::
rm -f *.o *~ *.a *.lib *.so *.so.* *.dylib *.dll \