aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjdavidberger <j.david.berger@gmail.com>2018-06-26 23:28:56 -0600
committerGitHub <noreply@github.com>2018-06-26 23:28:56 -0600
commitdc24a0502b8336a59571a7b3ce33580998459f78 (patch)
treebae72f9ebe6937dbbabb7beec3115028a15743b0 /Makefile
parente68b69a9a14aeb70988c52666e60502fe6f049ab (diff)
parentcf36bd58b8c9d1c23ccfe1a52beafe376ba02e6b (diff)
downloadlibsurvive-dc24a0502b8336a59571a7b3ce33580998459f78.tar.gz
libsurvive-dc24a0502b8336a59571a7b3ce33580998459f78.tar.bz2
Merge pull request #135 from rapyuta-robotics/fix_wired_tracker
fixed Makefile for LINUX_USE_HIDAPI, updated tracker usb pid, fixed w…
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index eb2177a..0a16b32 100644
--- a/Makefile
+++ b/Makefile
@@ -57,18 +57,19 @@ else # Linux / FreeBSD
GRAPHICS_LOFI:=redist/CNFGFunctions.c redist/CNFGXDriver.c
endif
+ifdef LINUX_USE_HIDAPI
+ CFLAGS:=$(CFLAGS) -DHIDAPI
+ #TODO why doesn't the redist version work
+ #REDISTS:=$(REDISTS) redist/hid-linux.c
+ LDFLAGS:=$(LDFLAGS) -ludev -lhidapi-libusb
+endif
+
ifdef MINIMAL
LIBSURVIVE_C:=$(REDISTS) $(LIBSURVIVE_CORE) $(MINIMAL_NEEDED)
else
LIBSURVIVE_C:=$(POSERS) $(REDISTS) $(LIBSURVIVE_CORE) $(SBA) $(MINIMAL_NEEDED) $(AUX_NEEDED)
endif
-ifdef LINUX_USE_HIDAPI
- CFLAGS:=$(CFLAGS) -DHIDAPI
- REDISTS:=$(REDISTS) redist/hid-linux.o
- LDFLAGS:=$(LDFLAGS) -ludev
-endif
-
#Actually make object and dependency lists.
LIBSURVIVE_O:=$(LIBSURVIVE_C:%.c=$(OBJDIR)/%.o)