botsense  3.2.0
RoadNarrows Client-Server Proxied Services Framework
Makefile
Go to the documentation of this file.
1 ################################################################################
2 #
3 # ./bsModules/bsI2C/Makefile
4 #
5 ifdef RNMAKE_DOXY
6 /*!
7 \file
8 
9 \brief \h_botsense \h_i2c modules makefile.
10 
11 \h_botsense bsProxy server dll and bs client library for raw \h_i2c Bus
12 devices.
13 
14 RN Make System Specific Makefile
15 
16 \pkgsynopsis
17 RoadNarrows Robotics \h_botsense Client-Server Proxied Services Framework
18 
19 \pkgfile{bsModules/bsI2C/Makefile}
20 
21 \pkgauthor{Robin Knight,robin.knight@roadnarrows.com}
22 
23 \pkgcopyright{2010-2018,RoadNarrows LLC,http://www.roadnarrows.com}
24 
25 \license{MIT}
26 
27 \EulaBegin
28 \EulaEnd
29 
30  * \cond RNMAKE_DOXY
31  */
32 endif
33 #
34 ################################################################################
35 
36 #------------------------------------------------------------------------------
37 # Required
38 
39 # Package Root Directory
40 RNMAKE_PKG_ROOT = ../..
41 
42 # Bootstrap package within RN Make System
43 include $(RNMAKE_PKG_ROOT)/make/Bootstrap.mk
44 
45 
46 #------------------------------------------------------------------------------
47 # Libraries
48 
49 # Distribution Static Libraries
50 RNMAKE_DIST_STLIBS = bsclient_i2c
51 
52 # Distribution Shared Libraries
53 RNMAKE_DIST_SHLIBS = bsclient_i2c
54 
55 # Dynamically Linked Libraries
56 RNMAKE_DIST_DLLIBS = bsserver_i2c
57 
58 # Target library subdirectory
59 bsclient_i2c.SUBDIR = botsense/plugins
60 bsserver_i2c.SUBDIR = botsense/plugins
61 
62 # Source Files
63 bsclient_i2c.SRC.C = bsI2CClient.c bsI2CMsgs.c
64 bsserver_i2c.SRC.C = bsI2CServer.c bsI2CMsgs.c
65 
66 # Dependencies
67 bsclient_i2c.LIBS = rnr_netmsgs rnr
68 bsserver_i2c.LIBS = rnr_i2c rnr_netmsgs rnr
69 
70 
71 #------------------------------------------------------------------------------
72 # Interface Headers
73 
74 #
75 # Distribution Header List Tags
76 #
77 # List of tags to lists of header files slated to be distributed and installed.
78 #
79 RNMAKE_DIST_HDRS = bsModI2C
80 
81 #
82 # Distribution Headers
83 #
84 # Format: <tag>.HDRS.H = [<subdirs>/]<hdr>.h ...
85 #
86 # Note: Any header file that requires distribution is expected to be in
87 # $(topdir)/include. Otherwise, is it really a deliverable header?
88 #
89 bsModI2C.HDRS.H = botsense/bsI2C.h \ botsense/bsI2CMsgs.h
90 
91 
92 #------------------------------------------------------------------------------
93 # Extras
94 #
95 
96 # Subpackage C PreProcessor Flags
97 EXTRA_CPPFLAGS = -DLOG -DLOGMOD="\"bsI2C\""
98 
99 EXTRA_TGT_ALL = extra-make
100 EXTRA_TGT_ALL_POST = extra-make-post
101 EXTRA_TGT_DEPS = extra-deps
102 EXTRA_TGT_CLEAN = extra-clean
103 
104 # NetMsgs Variables
105 NETMSGS_XML_FILES = bsI2CMsgs.xml
106 NETMSGS_H_DIR = $(RNMAKE_PKG_ROOT)/include/botsense
107 NETMSGS_CFLAGS = --incprefix=botsense
108 NETMSGS_PY_DIR = $(RNMAKE_PKG_ROOT)/bsPython/modules/BotSense
109 NETMSGS_SHARE_DIR = $(RNMAKE_PKG_ROOT)/share/msgs
110 
111 SWIG_FILES = bsI2C.i
112 SWIG_EXTMOD_DIR = $(RNMAKE_PKG_ROOT)/bsPython/modules/BotSense
113 SWIG_EXTMOD_LIBS = -lbsclient_i2c -lbotsense -lrnr_netmsgs -lrnr
114 
115 .PHONY: extra-make
116 extra-make: netmsgs-all
117 
118 .PHONY: extra-make-post
119 extra-make-post: swig-all
120 
121 .PHONY: extra-deps
122 extra-deps: netmsgs-all
123 
124 .PHONY: extra-clean
125 extra-clean: netmsgs-clean swig-clean
126 
127 
128 #------------------------------------------------------------------------------
129 # Include RNMAKE rules makefile(s)
130 
131 # include top-level rules
132 include $(RNMAKE_ROOT)/Rules.mk
133 
134 # include netmsgs rules
135 include $(RNMAKE_ROOT)/Rules.netmsgs.mk
136 
137 # Include Swig Rules Makefile
138 include $(RNMAKE_ROOT)/Rules.swig.mk
139 
140 
141 ifdef RNMAKE_DOXY
142 /*! \endcond RNMAKE_DOXY */
143 endif
144 
BotSense Client Core.
Definition: __init__.py:1