Add configure for make

Nakidai 2023-10-30 02:33:30 +03:00
parent b402dc177c
commit d6eef4c404
Signed by untrusted user who does not match committer: nakidai
GPG Key ID: 914675D395210A97
3 changed files with 21 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
obj/
game
config.mk

View File

@ -22,6 +22,6 @@ $(OUT): obj $(OBJ)
$(CC) -o $@ $(OBJ) $(LDFLAGS)
clean:
$(RM) $(OUT) $(OBJDIR)/*
$(RM) $(OUT) config.mk $(OBJDIR)/*
.PHONY: default clean

19
configure vendored Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
CC=${CC:-cc}
RM=${RM:-rm -f}
CFLAGS=${CFLAGS:-}
LDFLAGS=${LDFLAGS:-}
OUT=${OUT:-game}
echo "Compiler: $CC"
echo "Remove: $RM"
echo "CFLAGS: $CFLAGS"
echo "LDFLAGS: $LDFLAGS"
echo "Out file: $OUT"
echo "CC = $CC
RM = $RM
CFLAGS = $CFLAGS
LDFLAGS = $LDFLAGS
OUT = $OUT" > config.mk