aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 23 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e2d30e5..692a0ce 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ INCLUDES = -I src/ -I export/include/
WARNFLAGS = -Wall -Wextra -Wshadow -fno-strict-aliasing
-OPTFLAGS = -O3
+OPTFLAGS = -Og
DEBUGFLAGS = -g
CFLAGS = $(OPTFLAGS) $(DEBUGFLAGS) $(WARNFLAGS) -std=c99 $(INCLUDES)
@@ -99,4 +99,25 @@ depend: $(DEPS)
.PHONY: install
install: $(OUT)
- @install build/unix.bin $(PREFIX)/bin/netcosm
+ @install $(OUT) $(PREFIX)/bin/netcosm
+
+.PHONY: copysrc
+copysrc:
+ @cp -R src $(BUILDDIR)
+ @cp -R worlds $(BUILDDIR)
+
+.PHONY: help
+help:
+ @echo "Build targets:"
+ @echo " all (default)"
+ @echo " depend"
+ @echo
+ @echo "Cleaning targets:"
+ @echo " clean"
+ @echo " veryclean"
+ @echo
+ @echo "Helper targets:"
+ @echo " setcap"
+ @echo " install"
+ @echo " copysrc"
+ @echo " help"