peripherals  1.4.2
RoadNarrows Robotics Hardware Peripherals Package
Makefile
Go to the documentation of this file.
1 ################################################################################
2 #
3 # ./Makefile
4 #
5 ifdef RNMAKE_DOXY
6 /*!
7 \file
8 
9 \brief The peripherals package top-level makefile.
10 
11 RN Make System Specific Makefile
12 
13 \pkgsynopsis
14 RoadNarrows Robotics Peripherals C++ Package
15 
16 \pkgfile{Makefile}
17 
18 \pkgauthor{Robin Knight,robin.knight@roadnarrows.com}
19 \pkgauthor{Daniel Packard,daniel@roadnarrows.com}
20 \pkgauthor{Rob Shiely,rob@roadnarrows.com}
21 \pkgauthor{Jessica Trujillo,jessica@roadnarrows.com}
22 \pkgauthor{Maurice Woods III,maurice@roadnarrows.com}
23 
24 \pkgcopyright{2012-2018,RoadNarrows LLC,http://www.roadnarrows.com}
25 
26 \license{MIT}
27 
28 \EulaBegin
29 \EulaEnd
30 
31  * \cond RNMAKE_DOXY
32  */
33 endif
34 #
35 ################################################################################
36 
37 #------------------------------------------------------------------------------
38 # Required
39 
40 # Package Root Directory
41 RNMAKE_PKG_ROOT = .
42 
43 # Bootstrap package within RN Make System
44 include $(RNMAKE_PKG_ROOT)/make/Bootstrap.mk
45 
46 
47 #------------------------------------------------------------------------------
48 # Subdirectories
49 
50 RNMAKE_SUBDIRS = sw
51 
52 #------------------------------------------------------------------------------
53 # Distribution Header List Tags
54 
55 # List of tags to lists of header files slated to be distributed and installed.
56 #
57 RNMAKE_DIST_HDRS = peripherals
58 
59 #
60 # Distribution Headers
61 #
62 # Format: <tag>.HDRS.H = [<subdirs>/]<hdr>.h ...
63 #
64 # Note: Any header file that requires distribution is expected to be in
65 # $(topdir)/include. Otherwise, is it really a deliverable header?
66 #
67 peripherals.HDRS.H = \
68  rnr/usbext.h \
69  rnr/hid/HID.h \
70  rnr/hid/HIDXbox360.h \
71  rnr/imu/yost.h\
72  rnr/mot/Mot.h\
73  rnr/mot/MotRoboteq.h\
74  rnr/mot/MotRoboteqSmall.h
75 
76 # econ/econ32.h \
77  econ/econ50.h \
78  econ/econ_error.h \
79  econ/econ_fn_res_prototype.h \
80  econ/econ_typedef.h \
81 
82 
83 #------------------------------------------------------------------------------
84 # Documentation
85 
86 # Doxygen Configuration File
87 RNMAKE_DOXY_CONF_FILE = $(RNMAKE_PKG_ROOT)/make/doxy.conf
88 
89 
90 #------------------------------------------------------------------------------
91 # Extras
92 
93 EXTRA_TGT_ALL_POST = all-post
94 
95 ETC_FILES = share/etc/*.xml \
96  share/etc/ld.so.conf.d/*.conf \
97  etc/udev/rules.d/*
98 
99 # Post make all target
100 .PHONY: all-post
101 all-post: show-banner cp-etc-files
102 
103 .PHONY: show-banner
104 show-banner:
105  $(call printDirBanner,,all-post)
106  @printf "Pre-install Configuration\n"
107 
108 .PHONY: cp-etc-files
109 cp-etc-files:
110  $(call printGoalDesc,$(@),Copying etc files to $(DISTDIR_ETC))
111  $(call copySrcDirRel,$(ETC_FILES),$(DISTDIR_ETC))
112 
113 
114 #------------------------------------------------------------------------------
115 # Include RNMAKE rules makefile(s)
116 
117 # include top-level rules
118 include $(RNMAKE_ROOT)/Rules.mk
119 
120 # include extras
121 include $(RNMAKE_ROOT)/Extras.mk
122 
123 
124 ifdef RNMAKE_DOXY
125 /*! \endcond RNMAKE_DOXY */
126 endif