forked from kwxsp/libxively
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.wmsdk
39 lines (32 loc) · 1.04 KB
/
Makefile.wmsdk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ifeq ($(SDK_PATH), )
$(error You need to give SDK_PATH)
endif
ifeq ($(NOISY),1)
AT=
else
AT=@
endif
#XXX: may be we just need to export SDK_PATH above this?
INC_DIR := $(SDK_PATH)/src/incl
include $(SDK_PATH)/build/env/common.mak
XI_USER_AGENT ?= '"libxively-lwip-experimental/0.1.x-detached"'
XI_COMM_LAYER ?= posix
XI_DEBUG_OUTPUT ?= 1
XI_DEBUG_PRINTF := wmprintf
## When assertions enabled, we get a linker error:
## https://gist.github.com/errordeveloper/4c17921cb2e1a9625ebd
XI_DEBUG_ASSERT := 0
XI_WARN_CFLAGS := -Wall -Wextra -Wno-unused-parameter -Wno-unknown-pragmas
XI_OPTLEVEL ?= $(filter -O0 -O1 -O2 -O3 -O4 -O5 -Os,$(CFLAGS))
XI_EXTRA_CFLAGS := $(filter-out -O0 -O1 -O2 -O3 -O4 -O5 -Os,$(CFLAGS)) \
-DXI_ALLOCATOR=1 -DXI_COMM_LAYER_POSIX_COMPAT=1 \
-DXI_COMM_LAYER_POSIX_DISABLE_TIMEOUT
export XI_DEBUG_ASSERT XI_DEBUG_OUTPUT XI_DEBUG_PRINTF
export XI_USER_AGENT XI_COMM_LAYER
export XI_WARN_CFLAGS XI_OPTLEVEL XI_EXTRA_CFLAGS
export CC AR
all:
@echo " [sub] libxively"
$(AT)$(MAKE) -C src/ libxively
clean:
$(AT)$(MAKE) -C src/ $@