aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2018-04-15 17:55:32 -0400
committercnlohr <lohr85@gmail.com>2018-04-15 17:55:32 -0400
commit03a546adea9c221df3e3921ebff574a6ed26e358 (patch)
tree621ce9335b4a8fa7811dd5f06a90bad3af8f83cb
parent0ab91a6e9374f190c049a5d8ea1319b9b37529c1 (diff)
downloadlibsurvive-03a546adea9c221df3e3921ebff574a6ed26e358.tar.gz
libsurvive-03a546adea9c221df3e3921ebff574a6ed26e358.tar.bz2
Fix Makefile
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d224772..a847a20 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
-all : buildfolders data_recorder test calibrate calibrate_client simple_pose_test
+all : data_recorder test calibrate calibrate_client simple_pose_test
+ @echo "Built with defaults. Type 'make help' for more info."
+
.PHONY : help clean buildfolders
LIBRARY:=./lib/libsurvive.so
@@ -77,17 +79,22 @@ help :
@echo " EXTRA_WARNINGS=1 Provide many mor warnings for build system."
@echo " CFLAGS= Specify additional CFLAGS."
@echo " LDFLAGS= Specify additional LDFLAGS."
- @echo " CC= Specify
- @echo " Useful Preprocessor Directives:"
+ @echo " CC= Specify a different C compiler."
+ @echo " Useful Preprocessor Directives (For CFLAGS):"
@echo " -DUSE_DOUBLE Use double instead of float for most operations."
@echo " -DNOZLIB Use puff.c"
@echo " -DTCC Various things needed for TCC."
@echo " -DWINDOWS -DWIN32 Building for Windows."
@echo " -DRUNTIME_SYMNUM Don't assume __attribute__((constructor)) works. Instead comb for anything starting with REGISTER."
@echo " -flto Do link-time optimizations. This significantly increases period of time to link but improves performance.."
+ @echo " Useful build targets:"
+ @echo " all Build libsurvive.so and tools."
+ @echo " clean Erase build and incremental files."
+ @echo " buildfolders Produce build file structure."
+ @echo " $(LIBRARY) Produce libsurvive.so"
-
+
testCocoa : testCocoa.c $(LIBRARY)
$(CC) -o $@ $^ $(LDFLAGS_TOOLS) $(CFLAGS)