-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.am
42 lines (31 loc) · 949 Bytes
/
Makefile.am
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
40
41
if ENABLE_TLS_SUPPORT
TLS_SUPPORT_DIR = tls
TLS_PKGCONFIG = myqtt-tls-1.0.pc
TLS_DEFS = update-tls-defs
endif
if ENABLE_WEBSOCKET_SUPPORT
WEBSOCKET_SUPPORT_DIR = web-socket
WEBSOCKET_PKGCONFIG = myqtt-web-socket-1.0.pc
WEBSOCKET_DEFS = update-web-socket-defs
endif
if ENABLE_MYQTT_CLIENT
MYQTT_CLIENT_DIR = client
endif
if ENABLE_PY_MYQTT_SUPPORT
PY_MYQTT_DIR = py-myqtt
endif
# build doc
if ENABLE_AF_ARCH_DOC
DOC_DIR = doc
endif
SUBDIRS = lib $(TLS_SUPPORT_DIR) $(WEBSOCKET_SUPPORT_DIR) server $(MYQTT_CLIENT_DIR) $(PY_MYQTT_DIR) test $(DOC_DIR)
EXTRA_DIST = myqtt-1.0.pc.in VERSION get-python-config check-python-dir.py
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = myqtt-1.0.pc $(TLS_PKGCONFIG) $(WEBSOCKET_PKGCONFIG)
all-local: update-defs
update-defs: $(WEBSOCKET_DEFS) $(TLS_DEFS)
cd lib; make update-def; cd ..
update-web-socket-defs:
cd web-socket; make update-def; cd ..
update-tls-defs:
cd tls; make update-def; cd ..