summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Wundke <b.thax.dcg@gmail.com>2014-03-06 20:46:15 +0100
committerMoritz Wundke <b.thax.dcg@gmail.com>2014-03-06 20:46:15 +0100
commit76b1d421f6ddbe8856b40dcec8fc468e6dc043d6 (patch)
tree629129330881a14d7523276dec3eb48df8897846
parent98a970585a14b63731d98cf26641045800bf2dcc (diff)
Addinf basic makefile to support many C/C++ IDEs out there
Make file is configured by default to act identically as a default SCons build. Baseic actions such as all and clean will be supported by default by quite all IDE for building and rebuilding. Additionaly you can configure your targets for release, debug or profile mode.
-rw-r--r--makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000000..d24bd0cd32
--- /dev/null
+++ b/makefile
@@ -0,0 +1,30 @@
+#*************************************************************************/
+#* This file is part of: */
+#* GODOT ENGINE */
+#* http://www.godotengine.org */
+#*************************************************************************/
+# Simple makefile to give support for external C/C++ IDEs */
+#*************************************************************************/
+
+# Default build
+all: debug
+
+# Release Build
+release:
+ scons target="release" bin/godot
+
+# Profile Build
+profile:
+ scons target="profile" bin/godot
+
+# Debug Build
+debug:
+ # Debug information (code size gets severely affected):
+ # g: Default (same as g2)
+ # g0: no debug info
+ # g1: minimal info
+ # g3: maximal info
+ scons target="debug" CCFLAGS="-g" bin/godot
+
+clean:
+ scons -c bin/godot