summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-19 01:52:52 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-19 01:52:52 +0100
commite2549dfcb295b5c68ad540c71442d1524adb3d0f (patch)
tree570d21d9eb630119e628f7b2558922656d894c07 /lib
parentcompiling sqlite (diff)
downloadcuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar.gz
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar.bz2
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar.lz
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar.xz
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar.zst
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.zip
Diffstat (limited to 'lib')
-rw-r--r--lib/expat/CMakeLists.txt11
-rw-r--r--lib/luaexpat/CMakeLists.txt14
-rw-r--r--lib/tolua++/CMakeLists.txt12
-rw-r--r--lib/tolua++/Makefile45
4 files changed, 63 insertions, 19 deletions
diff --git a/lib/expat/CMakeLists.txt b/lib/expat/CMakeLists.txt
new file mode 100644
index 000000000..df9e8d57c
--- /dev/null
+++ b/lib/expat/CMakeLists.txt
@@ -0,0 +1,11 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (expat)
+
+include_directories ("${PROJECT_SOURCE_DIR}/../../src/")
+
+file(GLOB SOURCE
+ "*.c"
+)
+
+add_library(expat ${SOURCE})
diff --git a/lib/luaexpat/CMakeLists.txt b/lib/luaexpat/CMakeLists.txt
new file mode 100644
index 000000000..7eef5c8ce
--- /dev/null
+++ b/lib/luaexpat/CMakeLists.txt
@@ -0,0 +1,14 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (luaexpat)
+
+include_directories ("${PROJECT_SOURCE_DIR}/../../src/")
+include_directories ("${PROJECT_SOURCE_DIR}/../")
+
+file(GLOB SOURCE
+ "*.c"
+)
+
+add_library(luaexpat ${SOURCE})
+
+target_link_libraries(luaexpat expat)
diff --git a/lib/tolua++/CMakeLists.txt b/lib/tolua++/CMakeLists.txt
index 2b071108c..877b89076 100644
--- a/lib/tolua++/CMakeLists.txt
+++ b/lib/tolua++/CMakeLists.txt
@@ -6,12 +6,16 @@ include_directories ("${PROJECT_SOURCE_DIR}/../../src/")
include_directories ("${PROJECT_SOURCE_DIR}/include/")
include_directories ("${PROJECT_SOURCE_DIR}/../")
-file(GLOB SOURCE
+file(GLOB LIB_SOURCE
+ "src/lib/*.c"
+)
+
+file(GLOB BIN_SOURCE
"src/bin/*.c"
- "src/lib/*.c"
)
-add_executable(tolua ${SOURCE})
+add_executable(tolua ${BIN_SOURCE})
+add_library(tolualib ${LIB_SOURCE})
#m is the standard math librarys
-target_link_libraries(tolua lua m)
+target_link_libraries(tolua lua m tolualib)
diff --git a/lib/tolua++/Makefile b/lib/tolua++/Makefile
index e5a4b2d85..c15b4fc80 100644
--- a/lib/tolua++/Makefile
+++ b/lib/tolua++/Makefile
@@ -109,6 +109,20 @@ tolua/fast:
cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/build
.PHONY : tolua/fast
+# Convenience name for target.
+lib/tolua++/CMakeFiles/tolualib.dir/rule:
+ cd /home/tycho/MCServer && $(MAKE) -f CMakeFiles/Makefile2 lib/tolua++/CMakeFiles/tolualib.dir/rule
+.PHONY : lib/tolua++/CMakeFiles/tolualib.dir/rule
+
+# Convenience name for target.
+tolualib: lib/tolua++/CMakeFiles/tolualib.dir/rule
+.PHONY : tolualib
+
+# fast build rule for target.
+tolualib/fast:
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/build
+.PHONY : tolualib/fast
+
src/bin/tolua.o: src/bin/tolua.c.o
.PHONY : src/bin/tolua.o
@@ -162,7 +176,7 @@ src/lib/tolua_event.o: src/lib/tolua_event.c.o
# target to build an object file
src/lib/tolua_event.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/src/lib/tolua_event.c.o
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/src/lib/tolua_event.c.o
.PHONY : src/lib/tolua_event.c.o
src/lib/tolua_event.i: src/lib/tolua_event.c.i
@@ -170,7 +184,7 @@ src/lib/tolua_event.i: src/lib/tolua_event.c.i
# target to preprocess a source file
src/lib/tolua_event.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/src/lib/tolua_event.c.i
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/src/lib/tolua_event.c.i
.PHONY : src/lib/tolua_event.c.i
src/lib/tolua_event.s: src/lib/tolua_event.c.s
@@ -178,7 +192,7 @@ src/lib/tolua_event.s: src/lib/tolua_event.c.s
# target to generate assembly for a file
src/lib/tolua_event.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/src/lib/tolua_event.c.s
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/src/lib/tolua_event.c.s
.PHONY : src/lib/tolua_event.c.s
src/lib/tolua_is.o: src/lib/tolua_is.c.o
@@ -186,7 +200,7 @@ src/lib/tolua_is.o: src/lib/tolua_is.c.o
# target to build an object file
src/lib/tolua_is.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/src/lib/tolua_is.c.o
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/src/lib/tolua_is.c.o
.PHONY : src/lib/tolua_is.c.o
src/lib/tolua_is.i: src/lib/tolua_is.c.i
@@ -194,7 +208,7 @@ src/lib/tolua_is.i: src/lib/tolua_is.c.i
# target to preprocess a source file
src/lib/tolua_is.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/src/lib/tolua_is.c.i
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/src/lib/tolua_is.c.i
.PHONY : src/lib/tolua_is.c.i
src/lib/tolua_is.s: src/lib/tolua_is.c.s
@@ -202,7 +216,7 @@ src/lib/tolua_is.s: src/lib/tolua_is.c.s
# target to generate assembly for a file
src/lib/tolua_is.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/src/lib/tolua_is.c.s
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/src/lib/tolua_is.c.s
.PHONY : src/lib/tolua_is.c.s
src/lib/tolua_map.o: src/lib/tolua_map.c.o
@@ -210,7 +224,7 @@ src/lib/tolua_map.o: src/lib/tolua_map.c.o
# target to build an object file
src/lib/tolua_map.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/src/lib/tolua_map.c.o
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/src/lib/tolua_map.c.o
.PHONY : src/lib/tolua_map.c.o
src/lib/tolua_map.i: src/lib/tolua_map.c.i
@@ -218,7 +232,7 @@ src/lib/tolua_map.i: src/lib/tolua_map.c.i
# target to preprocess a source file
src/lib/tolua_map.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/src/lib/tolua_map.c.i
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/src/lib/tolua_map.c.i
.PHONY : src/lib/tolua_map.c.i
src/lib/tolua_map.s: src/lib/tolua_map.c.s
@@ -226,7 +240,7 @@ src/lib/tolua_map.s: src/lib/tolua_map.c.s
# target to generate assembly for a file
src/lib/tolua_map.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/src/lib/tolua_map.c.s
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/src/lib/tolua_map.c.s
.PHONY : src/lib/tolua_map.c.s
src/lib/tolua_push.o: src/lib/tolua_push.c.o
@@ -234,7 +248,7 @@ src/lib/tolua_push.o: src/lib/tolua_push.c.o
# target to build an object file
src/lib/tolua_push.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/src/lib/tolua_push.c.o
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/src/lib/tolua_push.c.o
.PHONY : src/lib/tolua_push.c.o
src/lib/tolua_push.i: src/lib/tolua_push.c.i
@@ -242,7 +256,7 @@ src/lib/tolua_push.i: src/lib/tolua_push.c.i
# target to preprocess a source file
src/lib/tolua_push.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/src/lib/tolua_push.c.i
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/src/lib/tolua_push.c.i
.PHONY : src/lib/tolua_push.c.i
src/lib/tolua_push.s: src/lib/tolua_push.c.s
@@ -250,7 +264,7 @@ src/lib/tolua_push.s: src/lib/tolua_push.c.s
# target to generate assembly for a file
src/lib/tolua_push.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/src/lib/tolua_push.c.s
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/src/lib/tolua_push.c.s
.PHONY : src/lib/tolua_push.c.s
src/lib/tolua_to.o: src/lib/tolua_to.c.o
@@ -258,7 +272,7 @@ src/lib/tolua_to.o: src/lib/tolua_to.c.o
# target to build an object file
src/lib/tolua_to.c.o:
- cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/src/lib/tolua_to.c.o
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/src/lib/tolua_to.c.o
.PHONY : src/lib/tolua_to.c.o
src/lib/tolua_to.i: src/lib/tolua_to.c.i
@@ -266,7 +280,7 @@ src/lib/tolua_to.i: src/lib/tolua_to.c.i
# target to preprocess a source file
src/lib/tolua_to.c.i:
- cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/src/lib/tolua_to.c.i
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/src/lib/tolua_to.c.i
.PHONY : src/lib/tolua_to.c.i
src/lib/tolua_to.s: src/lib/tolua_to.c.s
@@ -274,7 +288,7 @@ src/lib/tolua_to.s: src/lib/tolua_to.c.s
# target to generate assembly for a file
src/lib/tolua_to.c.s:
- cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolua.dir/build.make lib/tolua++/CMakeFiles/tolua.dir/src/lib/tolua_to.c.s
+ cd /home/tycho/MCServer && $(MAKE) -f lib/tolua++/CMakeFiles/tolualib.dir/build.make lib/tolua++/CMakeFiles/tolualib.dir/src/lib/tolua_to.c.s
.PHONY : src/lib/tolua_to.c.s
# Help Target
@@ -286,6 +300,7 @@ help:
@echo "... edit_cache"
@echo "... rebuild_cache"
@echo "... tolua"
+ @echo "... tolualib"
@echo "... src/bin/tolua.o"
@echo "... src/bin/tolua.i"
@echo "... src/bin/tolua.s"