diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-26 21:52:30 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-26 21:52:30 +0200 |
commit | edfa25fcd8edad43998f50a2144d30a6f966c1c8 (patch) | |
tree | e820241e6983bf314ba312c7fb3ed8d6ae55cbbb /shared/makefile | |
parent | 266fd5ef0c45315fc0bf281a15630a9b4765e68c (diff) |
fix configuration on windows
Diffstat (limited to 'shared/makefile')
-rw-r--r-- | shared/makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/shared/makefile b/shared/makefile index cfdf8ac..7f0ceb9 100644 --- a/shared/makefile +++ b/shared/makefile @@ -1,5 +1,18 @@ SOURCES += $(wildcard ../shared/*.c) HEADERS += $(wildcard ../shared/*.h) +# debug build info string +BUILD_STR=$(shell git update-index -q --refresh; git describe --tags --dirty='*' --broken='x' | cut -c1-20) +CFLAGS += -DW2_BUILD_STR=\"$(BUILD_STR)\" + +# os info +OS=$(strip $(shell uname -o)) +ifeq ($(OS),GNU/Linux) +CFLAGS += -DW2_HOST_LINUX +endif +ifeq ($(OS),Msys) +CFLAGS += -DW2_HOST_WIN32 +endif + clean:: rm -f ../shared/*.o |