From 9fdc384d90d5bfd705bd5d619d2a7fbdd93aeaf0 Mon Sep 17 00:00:00 2001 From: "hans@rhel5-devel.localdomain" Date: Thu, 16 Apr 2009 10:52:39 +0200 Subject: libv4l: Makefiles: better dependency generation From: Gregor Jasny libv4l: Makefiles: better dependency generation Priority: normal Signed-off-by: Gregor Jasny Signed-off-by: Hans de Goede --- v4l2-apps/libv4l/libv4lconvert/Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'v4l2-apps/libv4l/libv4lconvert') diff --git a/v4l2-apps/libv4l/libv4lconvert/Makefile b/v4l2-apps/libv4l/libv4lconvert/Makefile index 0e1d5e84e..1ffabcbb9 100644 --- a/v4l2-apps/libv4l/libv4lconvert/Makefile +++ b/v4l2-apps/libv4l/libv4lconvert/Makefile @@ -34,7 +34,7 @@ endif all: $(TARGETS) -include $(CONVERT_OBJS:.o=.d) +-include $(CONVERT_OBJS:.o=.d) $(CONVERT_LIB): $(CONVERT_OBJS) @@ -67,12 +67,8 @@ clean:: rm -f *.a *.so* *.o *.d */*.o */*.d libv4lconvert.pc log *~ */*~ rm -f *.orig *.rej */*.orig */*.rej -%.d:: %.c - @set -e; rm -f $@; \ - $(CC) -MM $(CPPFLAGS) $< | sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' > $@ - %.o: %.c - $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< + $(CC) -Wp,-MMD,"$*.d",-MQ,"$@",-MP -c $(CPPFLAGS) $(CFLAGS) -o $@ $< %.so: $(CC) -shared $(LDFLAGS) -Wl,-soname,$@.$(LIB_RELEASE) -o $@.$(LIB_RELEASE) $^ $(LIBS_$*) -- cgit v1.2.3