File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,21 +4,21 @@ TARGET ?= ddraw.dll
44
55LDFLAGS ?= -Wl,--enable-stdcall-fixup -s -static -shared
66CFLAGS ?= -Iinc -O2 -Wall -std=c99
7- LIBS = -lgdi32 -lwinmm -lole32 -lMsimg32
7+ LIBS = -lgdi32 -lwinmm -lole32 -lmsimg32
88
99COMMIT := $(shell git describe --match=NeVeRmAtCh --always --dirty || echo UNKNOWN)
1010BRANCH := $(shell git rev-parse --abbrev-ref HEAD || echo UNKNOWN)
1111
12+ HASH := \#
1213ECHOTEST := $(shell echo \"\")
1314ifeq ($(ECHOTEST ) ,\"\")
1415 # Windows
15- HASH := \#
1616 ECOMMIT := $(shell echo $(HASH)define GIT_COMMIT "$(COMMIT)" > inc/git.h)
1717 EBRANCH := $(shell echo $(HASH)define GIT_BRANCH "$(BRANCH)" >> inc/git.h)
1818else
1919 # Either *nix or Windows with BusyBox (e.g. w64devkit)
20- ECOMMIT := $(shell echo "# define GIT_COMMIT" \"$(COMMIT)\" > inc/git.h)
21- EBRANCH := $(shell echo "# define GIT_BRANCH" \"$(BRANCH)\" >> inc/git.h)
20+ ECOMMIT := $(shell echo "$(HASH) define GIT_COMMIT" \"$(COMMIT)\" > inc/git.h)
21+ EBRANCH := $(shell echo "$(HASH) define GIT_BRANCH" \"$(BRANCH)\" >> inc/git.h)
2222endif
2323
2424ifdef DEBUG
You can’t perform that action at this time.
0 commit comments