botsense  3.2.0
RoadNarrows Client-Server Proxied Services Framework
Makefile
Go to the documentation of this file.
1 ################################################################################
2 #
3 # ./bsModules/bsSerial/Makefile
4 #
5 ifdef RNMAKE_DOXY
6 /*!
7 \file
8 
9 \brief \h_botsense serial modules makefile.
10 
11 \h_botsense bsProxy server dll and bs client library for raw RS-232 serial
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/bsSerial/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_serial
51 
52 # Distribution Shared Libraries
53 RNMAKE_DIST_SHLIBS = bsclient_serial
54 
55 # Dynamically Linked Libraries
56 RNMAKE_DIST_DLLIBS = bsserver_serial
57 
58 # Target library subdirectory
59 bsclient_serial.SUBDIR = botsense/plugins
60 bsserver_serial.SUBDIR = botsense/plugins
61 
62 # Source Files
63 bsclient_serial.SRC.C = bsSerialClient.c bsSerialMsgs.c
64 bsserver_serial.SRC.C = bsSerialServer.c bsSerialMsgs.c
65 
66 bsclient_serial.LIBS = rnr_netmsgs rnr
67 bsserver_serial.LIBS = rnr_serial rnr_netmsgs rnr
68 
69 
70 #------------------------------------------------------------------------------
71 # Interface Headers
72 
73 #
74 # Distribution Header List Tags
75 #
76 # List of tags to lists of header files slated to be distributed and installed.
77 #
78 RNMAKE_DIST_HDRS = bsModSerial
79 
80 #
81 # Distribution Headers
82 #
83 # Format: <tag>.HDRS.H = [<subdirs>/]<hdr>.h ...
84 #
85 # Note: Any header file that requires distribution is expected to be in
86 # $(topdir)/include. Otherwise, is it really a deliverable header?
87 #
88 bsModSerial.HDRS.H = botsense/bsSerial.h \ botsense/bsSerialMsgs.h
89 
90 
91 #------------------------------------------------------------------------------
92 # Extras
93 #
94 
95 # Subpackage C PreProcessor Flags
96 EXTRA_CPPFLAGS = -DLOG -DLOGMOD="\"bsSerial\""
97 
98 EXTRA_TGT_ALL = extra-make
99 EXTRA_TGT_ALL_POST = extra-make-post
100 EXTRA_TGT_DEPS = extra-deps
101 EXTRA_TGT_CLEAN = extra-clean
102 
103 # NetMsgs Variables
104 NETMSGS_XML_FILES = bsSerialMsgs.xml
105 NETMSGS_H_DIR = $(RNMAKE_PKG_ROOT)/include/botsense
106 NETMSGS_CFLAGS = --incprefix=botsense
107 NETMSGS_PY_DIR = $(RNMAKE_PKG_ROOT)/bsPython/modules/BotSense
108 NETMSGS_SHARE_DIR = $(RNMAKE_PKG_ROOT)/share/msgs
109 
110 SWIG_FILES = bsSerial.i
111 SWIG_EXTMOD_DIR = $(RNMAKE_PKG_ROOT)/bsPython/modules/BotSense
112 SWIG_EXTMOD_LIBS = -lbsclient_serial -lbotsense -lrnr_netmsgs -lrnr
113 
114 .PHONY: extra-make
115 extra-make: netmsgs-all
116 
117 .PHONY: extra-make-post
118 extra-make-post: swig-all
119 
120 .PHONY: extra-deps
121 extra-deps: netmsgs-all
122 
123 .PHONY: extra-clean
124 extra-clean: netmsgs-clean swig-clean
125 
126 
127 #------------------------------------------------------------------------------
128 # Include RNMAKE rules makefile(s)
129 
130 # include top-level rules
131 include $(RNMAKE_ROOT)/Rules.mk
132 
133 # include netmsgs rules
134 include $(RNMAKE_ROOT)/Rules.netmsgs.mk
135 
136 # include swig rules
137 include $(RNMAKE_ROOT)/Rules.swig.mk
138 
139 
140 ifdef RNMAKE_DOXY
141 /*! \endcond RNMAKE_DOXY */
142 endif
143 
BotSense Client Core.
Definition: __init__.py:1