summaryrefslogtreecommitdiff
path: root/v4l2-apps/libv4l/libv4l1
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-apps/libv4l/libv4l1')
-rw-r--r--v4l2-apps/libv4l/libv4l1/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/v4l2-apps/libv4l/libv4l1/Makefile b/v4l2-apps/libv4l/libv4l1/Makefile
index d228cc916..bd6687e1a 100644
--- a/v4l2-apps/libv4l/libv4l1/Makefile
+++ b/v4l2-apps/libv4l/libv4l1/Makefile
@@ -35,7 +35,7 @@ endif
all: $(TARGETS)
-include $(V4L1_OBJS:.o=.d)
+-include $(V4L1_OBJS:.o=.d)
$(V4L1_LIB): $(V4L1_DEPS)
@@ -73,12 +73,8 @@ endif
clean::
rm -f *.a *.so* *.o *.d libv4l1.pc log *~ *.orig *.rej
-%.d: %.c
- @set -e; rm -f $@; \
- gcc -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_$*)