aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2016-02-20 20:37:06 -0500
committerFranklin Wei <git@fwei.tk>2016-02-28 16:30:21 -0500
commit2c687e77cd9ae3fd01010d7b36c8d0082bb76315 (patch)
treeb8cd58cea075a3c94cb2f1417e6eaea27865b827 /Makefile
parent02de31c48c021742c6245b711790f6d853866c36 (diff)
downloadnetcosm-2c687e77cd9ae3fd01010d7b36c8d0082bb76315.zip
netcosm-2c687e77cd9ae3fd01010d7b36c8d0082bb76315.tar.gz
netcosm-2c687e77cd9ae3fd01010d7b36c8d0082bb76315.tar.bz2
netcosm-2c687e77cd9ae3fd01010d7b36c8d0082bb76315.tar.xz
implements aliases and other assorted features/enhancements
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"