Revert "Rewrite Makefile"

This reverts commit 94b7c83fd4.
This commit is contained in:
Ultracoolguy 2020-12-11 14:57:25 -04:00 committed by Eyal Sawady
parent c3f2d9d552
commit 83d06b048e
No known key found for this signature in database
GPG Key ID: 604D3459E53A9952
1 changed files with 6 additions and 8 deletions

View File

@ -1,11 +1,9 @@
.POSIX:
CFLAGS = $$(git rev-parse HEAD &>/dev/null && echo -DVERSION="\"$$(git rev-parse --short HEAD)\"")
all: among-sus
among-sus: main.o
$(CC) $(LDFLAGS) -o $@ main.o
all:
$(CC) -o among-sus $(CFLAGS) \
$$(git rev-parse --short HEAD &>/dev/null && \
printf -- '-DVERSION="%s"' "$$(git rev-parse --short HEAD)" || \
printf -- '-DVERSION="unknown"') main.c $(LDFLAGS)
clean:
rm -f among-sus main.o
rm -f among-sus