1 ################################################################################ 3 # ./bsModules/bsI2C/Makefile 34 ################################################################################ 36 #------------------------------------------------------------------------------ 39 # Package Root Directory 40 RNMAKE_PKG_ROOT = ../..
42 # Bootstrap package within RN Make System 43 include $(RNMAKE_PKG_ROOT)/make/Bootstrap.mk
46 #------------------------------------------------------------------------------
49 # Distribution Static Libraries
50 RNMAKE_DIST_STLIBS = bsclient_i2c
52 # Distribution Shared Libraries
53 RNMAKE_DIST_SHLIBS = bsclient_i2c
55 # Dynamically Linked Libraries
56 RNMAKE_DIST_DLLIBS = bsserver_i2c
58 # Target library subdirectory
59 bsclient_i2c.SUBDIR = botsense/plugins
60 bsserver_i2c.SUBDIR = botsense/plugins
63 bsclient_i2c.SRC.C = bsI2CClient.c bsI2CMsgs.c
64 bsserver_i2c.SRC.C = bsI2CServer.c bsI2CMsgs.c
67 bsclient_i2c.LIBS = rnr_netmsgs rnr
68 bsserver_i2c.LIBS = rnr_i2c rnr_netmsgs rnr
71 #------------------------------------------------------------------------------
75 # Distribution Header List Tags
77 # List of tags to lists of header files slated to be distributed and installed.
79 RNMAKE_DIST_HDRS = bsModI2C
82 # Distribution Headers
84 # Format: <tag>.HDRS.H = [<subdirs>/]<hdr>.h ...
86 # Note: Any header file that requires distribution is expected to be in
87 # $(topdir)/include. Otherwise, is it really a deliverable header?
89 bsModI2C.HDRS.H = botsense/bsI2C.h \
botsense/bsI2CMsgs.h
92 #------------------------------------------------------------------------------ 96 # Subpackage C PreProcessor Flags 97 EXTRA_CPPFLAGS = -DLOG -DLOGMOD=
"\"bsI2C\"" 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
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
112 SWIG_EXTMOD_DIR = $(RNMAKE_PKG_ROOT)/bsPython/modules/
BotSense 113 SWIG_EXTMOD_LIBS = -lbsclient_i2c -lbotsense -lrnr_netmsgs -lrnr
116 extra-make: netmsgs-all
118 .PHONY: extra-make-post
119 extra-make-post: swig-all
122 extra-deps: netmsgs-all
125 extra-clean: netmsgs-clean swig-clean
128 #------------------------------------------------------------------------------ 129 # Include RNMAKE rules makefile(s) 131 # include top-level rules 132 include $(RNMAKE_ROOT)/Rules.mk
134 # include netmsgs rules
135 include $(RNMAKE_ROOT)/Rules.netmsgs.mk
137 # Include Swig Rules Makefile 138 include $(RNMAKE_ROOT)/Rules.swig.mk