aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-08-08 15:33:40 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-08-08 15:33:40 +0200
commit8b98fff98e6447094fa54188c8bd1947ca684307 (patch)
tree6b13056ac7a4573d5ffb0f6e4bf3b13a4cdb3fd4 /Makefile
parent4b9ca39522baf31f41b2f5cf52671677f146161b (diff)
add debug build message and align more with build.bat
1. if ran without choosing a build type (just `make` or `build_odin.sh`), print out a message about it being a debug build 2. Add `make release-native` alongside `make release_native` to align with `build_odin.sh release-native` 3. Only run the demo if it is a debug build (just like `build.bat`)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 91010a620..ec848192a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-all: debug
+all: default
demo:
./odin run examples/demo/demo.odin -file
@@ -6,12 +6,18 @@ demo:
report:
./odin report
+default:
+ PROGRAM=make ./build_odin.sh # debug
+
debug:
./build_odin.sh debug
release:
./build_odin.sh release
+release-native:
+ ./build_odin.sh release-native
+
release_native:
./build_odin.sh release-native