-CXXFLAGS := -std=gnu++14 -O2 -Wall -g $(shell pkg-config libusb-1.0 --cflags) -pthread
+CXXFLAGS := -std=gnu++14 -O2 -Wall -I. -g $(shell pkg-config libusb-1.0 --cflags) -pthread
LDFLAGS := $(shell pkg-config libusb-1.0 --libs) -pthread
AR := ar
RANLIB := ranlib
$(DESTDIR)$(PREFIX)/lib/pkgconfig \
$(DESTDIR)$(PREFIX)/include/bmusb
$(INSTALL) -m 755 -o root -g root $(LIB) $(DESTDIR)$(PREFIX)/lib
- $(INSTALL) -m 755 -o root -g root bmusb.h fake_capture.h $(DESTDIR)$(PREFIX)/include/bmusb
+ $(INSTALL) -m 755 -o root -g root bmusb/bmusb.h bmusb/fake_capture.h $(DESTDIR)$(PREFIX)/include/bmusb
$(INSTALL) -m 644 -o root -g root bmusb.pc $(DESTDIR)$(PREFIX)/lib/pkgconfig
// A fake capture device that sends single-color frames at a given rate.
// Mostly useful for testing themes without actually hooking up capture devices.
-#include "fake_capture.h"
+#include "bmusb/fake_capture.h"
#include <assert.h>
#include <stdint.h>
#endif
#include <cstddef>
-#include "bmusb.h"
+#include "bmusb/bmusb.h"
#define FRAME_SIZE (8 << 20) // 8 MB.