blob: 7f0ceb9eca5c5fabef286f020dc04eff19f4d6fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
|