librnr  1.14.5
RoadNarrows Robotics Common Library 1
Makefile
Go to the documentation of this file.
1 ################################################################################
2 #
3 # ./examples/Makefile
4 #
5 ifdef RNMAKE_DOXY
6 /*!
7 \file
8 
9 \brief Make librnr example applications.
10 
11 An rnmake system package specific makefile.
12 
13 \pkgsynopsis
14 RoadNarrows Robotics Common Library 1
15 
16 \pkgfile{examples/Makefile}
17 
18 \pkgauthor{Robin Knight,robin.knight@roadnarrows.com}
19 
20 \pkgcopyright{2005-2018,RoadNarrows LLC,http://www.roadnarrows.com}
21 
22 \license{MIT}
23 
24 \EulaBegin
25 \EulaEnd
26 
27  * \cond RNMAKE_DOXY
28  */
29 endif
30 #
31 ################################################################################
32 
33 #------------------------------------------------------------------------------
34 # Required
35 
36 # Package Root Directory
37 RNMAKE_PKG_ROOT = ..
38 
39 # Bootstrap package within RN Make System
40 include $(RNMAKE_PKG_ROOT)/make/Bootstrap.mk
41 
42 
43 #------------------------------------------------------------------------------
44 # Programs
45 
46 RNMAKE_LOC_PGMS = example_assoc \
47  example_checksum \
48  example_config \
49  example_dlist \
50  example_hash \
51  example_log \
52  example_cpp \
53  example_uri \
54  example_shm
55 
56 # Libraries to Link With
57 example_assoc.LIBS = rnr
58 example_assoc.LIBDEPS = rnr
59 example_checksum.LIBS = rnr rt
60 example_checksum.LIBDEPS = rnr
61 example_config.LIBS = rnr
62 example_config.LIBDEPS = rnr
63 example_dlist.LIBS = rnr
64 example_dlist.LIBDEPS = rnr
65 example_hash.LIBS = rnr
66 example_hash.LIBDEPS = rnr
67 example_log.LIBS = rnr
68 example_log.LIBDEPS = rnr
69 example_cpp.LIBS = rnr stdc++
70 example_cpp.LIBDEPS = rnr
71 example_uri.LIBS = rnr
72 example_uri.LIBDEPS = rnr
73 example_shm.LIBS = rnr pthread rt
74 example_shm.LIBDEPS = rnr
75 
76 #------------------------------------------------------------------------------
77 # Sources
78 
79 #
80 # C Source Files
81 #
82 example_assoc.SRC.C = example_assoc.c
83 
84 example_checksum.SRC.C = example_checksum.c
85 
86 example_config.SRC.C = example_config.c
87 
88 example_dlist.SRC.C = example_dlist.c
89 
90 example_hash.SRC.C = example_hash.c
91 
92 example_log.SRC.C = example_log.c
93 
94 example_cpp.SRC.CXX = example_cpp.cxx
95 
96 example_uri.SRC.C = example_uri.c
97 
98 example_shm.SRC.C = example_shm.c
99 
100 #------------------------------------------------------------------------------
101 # Extras
102 #
103 
104 # Subpackage C PreProcessor Flags
105 EXTRA_CPPFLAGS = -DLOG -DLOGMOD="\"logexample\"" -DLOGMOD_COLOR=LOG_COLOR_BLUE
106 
107 #------------------------------------------------------------------------------
108 # Include rnmake top-level rules makefile
109 
110 include $(RNMAKE_ROOT)/Rules.mk
111 
112 
113 ifdef RNMAKE_DOXY
114 /*! \endcond RNMAKE_DOXY */
115 endif
#define LOG_COLOR_BLUE
normal blue
Definition: log.h:235