aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWenZheng Li <wzli@rapyuta-robotics.com>2018-06-12 23:33:01 +0900
committerWenZheng Li <wzli@rapyuta-robotics.com>2018-06-12 23:33:01 +0900
commitc1603243eeba3f7f9ff8f9f70098105c634166e5 (patch)
tree1770c66b5c1c1c05e96b09f630894e1ae5fe87cd /Makefile
parentfcf3528bfeba5e4646dbb0626a87c297d940a787 (diff)
downloadlibsurvive-c1603243eeba3f7f9ff8f9f70098105c634166e5.tar.gz
libsurvive-c1603243eeba3f7f9ff8f9f70098105c634166e5.tar.bz2
fixed Makefile for LINUX_USE_HIDAPI, updated tracker usb pid, fixed wired tracker lightcap data callback
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index eb2177a..0d80dd0 100644
--- a/Makefile
+++ b/Makefile
@@ -57,18 +57,18 @@ else # Linux / FreeBSD
GRAPHICS_LOFI:=redist/CNFGFunctions.c redist/CNFGXDriver.c
endif
+ifdef LINUX_USE_HIDAPI
+ CFLAGS:=$(CFLAGS) -DHIDAPI
+ REDISTS:=$(REDISTS) redist/hid-linux.c
+ LDFLAGS:=$(LDFLAGS) -ludev
+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)