summaryrefslogtreecommitdiff
path: root/usbredirserver/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usbredirserver/Makefile')
-rw-r--r--usbredirserver/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/usbredirserver/Makefile b/usbredirserver/Makefile
new file mode 100644
index 0000000..26639d4
--- /dev/null
+++ b/usbredirserver/Makefile
@@ -0,0 +1,18 @@
+override CPPFLAGS += $(shell pkg-config --cflags libusb-1.0)
+LIBS = $(shell pkg-config --libs libusb-1.0)
+
+USBREDIRSERVER_OBJS = usbredirserver.o
+TARGETS = usbredirserver
+
+all: $(TARGETS)
+
+-include *.d
+
+usbredirserver: $(USBREDIRSERVER_OBJS)
+ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) -lusbredirhost
+
+install: all
+ mkdir -p $(DESTDIR)$(SBINDIR)
+ install -m 755 usbredirserver $(DESTDIR)$(SBINDIR)
+
+include ../Make.rules