From 2a9a5727d6b2ab63e1714b9a4721e771581eec8f Mon Sep 17 00:00:00 2001 From: Charadon Date: Thu, 16 Jun 2022 22:32:08 -0400 Subject: Changed build settings, and decided to include the makefile premake generates --- Makefile | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5a0147d --- /dev/null +++ b/Makefile @@ -0,0 +1,44 @@ +# Alternative GNU Make workspace makefile autogenerated by Premake + +ifndef config + config=release +endif + +ifndef verbose + SILENT = @ +endif + +ifeq ($(config),release) + Pong_config = release + +else + $(error "invalid configuration $(config)") +endif + +PROJECTS := Pong + +.PHONY: all clean help $(PROJECTS) + +all: $(PROJECTS) + +Pong: +ifneq (,$(Pong_config)) + @echo "==== Building Pong ($(Pong_config)) ====" + @${MAKE} --no-print-directory -C . -f Pong.make config=$(Pong_config) +endif + +clean: + @${MAKE} --no-print-directory -C . -f Pong.make clean + +help: + @echo "Usage: make [config=name] [target]" + @echo "" + @echo "CONFIGURATIONS:" + @echo " release" + @echo "" + @echo "TARGETS:" + @echo " all (default)" + @echo " clean" + @echo " Pong" + @echo "" + @echo "For more information, see https://github.com/premake/premake-core/wiki" \ No newline at end of file -- cgit 1.4.1-2-gfad0