aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormwturvey <michael.w.turvey@intel.com>2017-03-16 10:52:13 -0700
committermwturvey <michael.w.turvey@intel.com>2017-03-16 10:52:13 -0700
commitccaa625c6161e14f5c2281cc43134d1928094620 (patch)
treec339acbb982d1f2d67977be98a4ae7cac85f8057 /Makefile
parentd9c9ebe6de1e6f255d645dd6e641f2c288238bc2 (diff)
parent6daf2506fcfbfcd26d63a8bddba319d67ecc33e5 (diff)
downloadlibsurvive-ccaa625c6161e14f5c2281cc43134d1928094620.tar.gz
libsurvive-ccaa625c6161e14f5c2281cc43134d1928094620.tar.bz2
Merge branch 'master' into WinSupport2
# Conflicts: # src/survive_vive.c
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 19f7c40..525f7c5 100644
--- a/Makefile
+++ b/Makefile
@@ -2,15 +2,25 @@ all : lib data_recorder test calibrate calibrate_client
CC:=gcc
-CFLAGS:=-Iinclude/libsurvive -I. -fPIC -g -O0 -Iredist -flto -DUSE_DOUBLE -std=gnu99 -rdynamic
+CFLAGS:=-Iinclude/libsurvive -I. -fPIC -g -O3 -Iredist -flto -DUSE_DOUBLE -std=gnu99 -rdynamic
LDFLAGS:=-lpthread -lusb-1.0 -lz -lX11 -lm -flto -g
POSERS:=src/poser_dummy.o src/poser_daveortho.o src/poser_charlesslow.o
REDISTS:=redist/json_helpers.o redist/linmath.o redist/jsmn.o
LIBSURVIVE_CORE:=src/survive.o src/survive_usb.o src/survive_data.o src/survive_process.o src/ootx_decoder.o src/survive_driverman.o src/survive_vive.o src/survive_config.o src/survive_cal.o
+LIBSURVIVE_CORE:=$(LIBSURVIVE_CORE)
LIBSURVIVE_O:=$(POSERS) $(REDISTS) $(LIBSURVIVE_CORE)
LIBSURVIVE_C:=$(LIBSURVIVE_O:.o=.c)
+#Useful Preprocessor Directives:
+# -DUSE_DOUBLE = use double instead of float for most operations.
+# -DNOZLIB = use puff.c
+# -DTCC = various things needed for TCC.
+# -DWINDOWS -DWIN32 = Building for Windows
+# -DHIDAPI = Build vive driver to use USBHID instead of interrupt/control messages.
+# -DRUNTIME_SYMNUM = Don't assume __attribute__((constructor)) works. Instead comb for anything starting with REGISTER.
+
+
GRAPHICS_LOFI:=redist/DrawFunctions.o redist/XDriver.o
# unused: redist/crc32.c