Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
# These ones should not be overriden from the cmdline
# Note the -I../.. this assumes all sources live in a 2 level dir hierarchy!
-override CPPFLAGS += -I../../include -D_GNU_SOURCE
+override CPPFLAGS += -I../../include -I../../lib/include -D_GNU_SOURCE
+override LDFLAGS += -L../../lib/libv4l1 -L../../lib/libv4l2 -L../../lib/libv4lconvert
# This is the soname version
LIB_RELEASE = 0
v4l2-compliance: v4l2-compliance.o v4l2-test-debug.o v4l2-test-input-output.o \
v4l2-test-controls.o v4l2-test-io-config.o
- $(CXX) $(LDFLAGS) -lv4l2 -o $@ $^
+ $(CXX) $(LDFLAGS) -lv4l2 -lv4lconvert -o $@ $^
install: $(TARGETS)
mkdir -p $(DESTDIR)$(PREFIX)/bin
$(CC) $(LDFLAGS) -o $@ $^ -lm
v4l2-ctl: v4l2-ctl.o
- $(CXX) $(LDFLAGS) -lv4l2 -o $@ $^
+ $(CXX) $(LDFLAGS) -lv4l2 -lv4lconvert -o $@ $^
install: $(TARGETS)
mkdir -p $(DESTDIR)$(PREFIX)/bin