summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Make.rules4
-rw-r--r--usbredirserver/usbredirserver.c4
-rw-r--r--usbredirtestclient/usbredirtestclient.c4
3 files changed, 4 insertions, 8 deletions
diff --git a/Make.rules b/Make.rules
index d9d9f25..63fd66c 100644
--- a/Make.rules
+++ b/Make.rules
@@ -1,4 +1,4 @@
-USBREDIR_VERSION=0.0.1
+USBREDIR_VERSION=0.3.0
# These ones can be overriden from the cmdline
CFLAGS = -g -O2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
@@ -7,7 +7,7 @@ LIBDIR = $(PREFIX)/lib
SBINDIR = $(PREFIX)/sbin
# These ones should not be overriden from the cmdline
-override CPPFLAGS += -I../usbredirparser -I../usbredirhost
+override CPPFLAGS += -I../usbredirparser -I../usbredirhost -DUSBREDIR_VERSION='"$(USBREDIR_VERSION)"'
override LDFLAGS += -L../usbredirparser -L../usbredirhost
# This is the soname version for the various build libs
LIB_RELEASE = 0
diff --git a/usbredirserver/usbredirserver.c b/usbredirserver/usbredirserver.c
index 2733748..117151a 100644
--- a/usbredirserver/usbredirserver.c
+++ b/usbredirserver/usbredirserver.c
@@ -35,9 +35,7 @@
#include <netdb.h>
#include "usbredirhost.h"
-#ifndef VERSION
-#define VERSION "usbredirserver 0.0"
-#endif
+#define VERSION "usbredirserver " USBREDIR_VERSION
static int verbose = usbredirparser_info;
static int client_fd, running = 1;
diff --git a/usbredirtestclient/usbredirtestclient.c b/usbredirtestclient/usbredirtestclient.c
index a124a8a..507f5d2 100644
--- a/usbredirtestclient/usbredirtestclient.c
+++ b/usbredirtestclient/usbredirtestclient.c
@@ -39,9 +39,7 @@
#define EP2I(ep_address) (((ep_address & 0x80) >> 3) | (ep_address & 0x0f))
#define I2EP(i) (((i & 0x10) << 3) | (i & 0x0f))
-#ifndef VERSION
-#define VERSION "usbredirtestclient 0.0"
-#endif
+#define VERSION "usbredirtestclient " USBREDIR_VERSION
static void usbredirtestclient_device_connect(void *priv,
struct usb_redir_device_connect_header *device_connect);