add git commit hash to mingw build as well

This commit is contained in:
FunkyFr3sh 2024-08-31 14:09:35 +02:00
parent 67e4c664f6
commit f3ba703444
4 changed files with 4 additions and 15 deletions

View file

@ -1,6 +1,8 @@
-include config.mk
TARGET = ddraw.dll
GIT_REV := $(shell git rev-parse --short @{0} || echo "UNKNOWN")
GIT_FILE := $(shell echo "#define GIT_COMMIT" $(GIT_REV) > inc/version_tmp.h)
LDFLAGS = -Wl,--enable-stdcall-fixup -s -static -shared
CFLAGS = -Iinc -O2 -march=i486 -Wall
LIBS = -lgdi32 -lwinmm -ldbghelp -lole32