From 35669794a747bcd4e11cc11cfc6e3c0504f6374b Mon Sep 17 00:00:00 2001 From: Nakidai Date: Mon, 30 Oct 2023 03:00:39 +0300 Subject: [PATCH] Move config to config/ --- .gitignore | 2 +- Makefile | 4 +++- configure | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 1c154dc..e17cc81 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ obj/ game -config.mk +config/ diff --git a/Makefile b/Makefile index 0fd3380..799d6bd 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +include config/config.mk + OUT = game CFLAGS = LDFLAGS = @@ -22,6 +24,6 @@ $(OUT): obj $(OBJ) $(CC) -o $@ $(OBJ) $(LDFLAGS) clean: - $(RM) $(OUT) config.mk $(OBJDIR)/* + $(RM) $(OUT) config/* $(OBJDIR)/* .PHONY: default clean diff --git a/configure b/configure index 071c032..3b726f4 100755 --- a/configure +++ b/configure @@ -5,6 +5,7 @@ RM=${RM:-rm -f} CFLAGS=${CFLAGS:-} LDFLAGS=${LDFLAGS:-} OUT=${OUT:-game} +SIZE=${SIZE:-10} echo "Compiler: $CC" echo "Remove: $RM" @@ -16,4 +17,4 @@ echo "CC = $CC RM = $RM CFLAGS = $CFLAGS LDFLAGS = $LDFLAGS -OUT = $OUT" > config.mk +OUT = $OUT" > config/config.mk