Skip to content

Commit a5aaf8c

Browse files
committed
fix build on macOS
1 parent 14ff0a0 commit a5aaf8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ TARGET ?= ddraw.dll
44

55
LDFLAGS ?= -Wl,--enable-stdcall-fixup -s -static -shared
66
CFLAGS ?= -Iinc -O2 -Wall -std=c99
7-
LIBS = -lgdi32 -lwinmm -lole32 -lMsimg32
7+
LIBS = -lgdi32 -lwinmm -lole32 -lmsimg32
88

99
COMMIT := $(shell git describe --match=NeVeRmAtCh --always --dirty || echo UNKNOWN)
1010
BRANCH := $(shell git rev-parse --abbrev-ref HEAD || echo UNKNOWN)
1111

12+
HASH := \#
1213
ECHOTEST := $(shell echo \"\")
1314
ifeq ($(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)
1818
else
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)
2222
endif
2323

2424
ifdef DEBUG

0 commit comments

Comments
 (0)