Commit 840c346a authored by diego's avatar diego

Work around gcc stupidity: With -MM gcc outputs just the basename of files as

target name. This breaks when compiling targets in subdirectories, so prepend
the subdirectory name to the target name.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12398 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a5405890
...@@ -61,8 +61,9 @@ $(SLIBNAME_WITH_MAJOR): $(OBJS) ...@@ -61,8 +61,9 @@ $(SLIBNAME_WITH_MAJOR): $(OBJS)
ALLHEADERS = $(subst $(LIBSRC)/,,$(wildcard $(LIBSRC)/*.h)) ALLHEADERS = $(subst $(LIBSRC)/,,$(wildcard $(LIBSRC)/*.h))
checkheaders: $(filter-out %_template.ho,$(ALLHEADERS:.h=.ho)) checkheaders: $(filter-out %_template.ho,$(ALLHEADERS:.h=.ho))
# gcc stupidly only outputs the basename of targets with -MM
depend dep: $(SRCS) depend dep: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend $(CC) -MM $(CFLAGS) $^ | sed 's,[0-9a-z._-]*: \([a-z0-9]*/\).*,\1&,' 1>.depend
clean:: clean::
rm -f *.o *~ *.a *.lib *.so *.so.* *.dylib *.dll \ rm -f *.o *~ *.a *.lib *.so *.so.* *.dylib *.dll \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment