From 2c687e77cd9ae3fd01010d7b36c8d0082bb76315 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sat, 20 Feb 2016 20:37:06 -0500 Subject: implements aliases and other assorted features/enhancements --- Makefile | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'Makefile') 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" -- cgit v1.1