"Fossies" - the Fresh Open Source Software Archive

Member "opensaf-5.21.09/src/base/Makefile.am" (14 Sep 2021, 8135 Bytes) of package /linux/misc/opensaf-5.21.09.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.am": 5.21.06_vs_5.21.09.

    1 #      -*- OpenSAF  -*-
    2 #
    3 # (C) Copyright 2016 The OpenSAF Foundation
    4 # Copyright Ericsson AB 2017 - All Rights Reserved.
    5 #
    6 # This program is distributed in the hope that it will be useful, but
    7 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
    8 # or FITNESS FOR A PARTICULAR PURPOSE. This file and program are licensed
    9 # under the GNU Lesser General Public License Version 2.1, February 1999.
   10 # The complete license can be accessed from the following location:
   11 # http://opensource.org/licenses/lgpl-license.php
   12 # See the Copying file included with the OpenSAF distribution for full
   13 # licensing terms.
   14 #
   15 # Author(s): Ericsson AB
   16 #
   17 
   18 lib_LTLIBRARIES += lib/libopensaf_core.la
   19 
   20 lib_libopensaf_core_la_CFLAGS = $(OSAF_LIB_FLAGS) -fno-strict-aliasing $(AM_CFLAGS)
   21 
   22 lib_libopensaf_core_la_CXXFLAGS = $(OSAF_LIB_FLAGS) $(AM_CXXFLAGS)
   23 
   24 lib_libopensaf_core_la_CPPFLAGS += \
   25 	-DUSE_LITTLE_ENDIAN=1 -DNCSL_ENV_INIT_HM=1 \
   26 	-DNCSL_ENV_INIT_MTM=1 -DNCSL_ENV_INIT_TMR=1 \
   27 	$(AM_CPPFLAGS)
   28 
   29 lib_libopensaf_core_la_LDFLAGS += \
   30 	$(AM_LDFLAGS) \
   31 	-version-number 0:2:0
   32 
   33 lib_libopensaf_core_la_SOURCES += \
   34 	src/base/condition_variable.cc \
   35 	src/base/conf.cc \
   36 	src/base/config_file_reader.cc \
   37 	src/base/daemon.c \
   38 	src/base/file_descriptor.cc \
   39 	src/base/file_notify.cc \
   40 	src/base/getenv.cc \
   41 	src/base/hash.cc \
   42 	src/base/handle/handle.cc \
   43 	src/base/handle/object_db.cc \
   44 	src/base/hj_dec.c \
   45 	src/base/hj_edp.c \
   46 	src/base/hj_edu.c \
   47 	src/base/hj_enc.c \
   48 	src/base/hj_hdl.c \
   49 	src/base/hj_queue.c \
   50 	src/base/hj_tmr.c \
   51 	src/base/hj_ubaid.c \
   52 	src/base/log_message.cc \
   53 	src/base/logtrace.cc \
   54         src/base/logtrace_buffer.cc \
   55 	src/base/logtrace_client.cc \
   56 	src/base/log_writer.cc \
   57 	src/base/mutex.cc \
   58 	src/base/ncs_main_pub.c \
   59 	src/base/ncs_sprr.c \
   60 	src/base/ncsdlib.c \
   61 	src/base/ncssysf_tmr.cc \
   62 	src/base/os_defs.c \
   63 	src/base/osaf_extended_name.c \
   64 	src/base/osaf_poll.c \
   65 	src/base/osaf_secutil.c \
   66 	src/base/osaf_socket.c \
   67 	src/base/osaf_time.c \
   68 	src/base/osaf_timerfd.c \
   69 	src/base/osaf_unicode.c \
   70 	src/base/osaf_utility.c \
   71 	src/base/patricia.c \
   72 	src/base/process.cc \
   73 	src/base/saf_edu.c \
   74 	src/base/saf_error.c \
   75 	src/base/string_parse.cc \
   76 	src/base/sysf_def.c \
   77 	src/base/sysf_exc_scr.c \
   78 	src/base/sysf_ipc.c \
   79 	src/base/sysf_mem.c \
   80 	src/base/sysf_tsk.c \
   81 	src/base/timer/saTmr.cc \
   82 	src/base/timer/timer_handle.cc \
   83 	src/base/unix_client_socket.cc \
   84 	src/base/unix_server_socket.cc \
   85 	src/base/unix_socket.cc
   86 
   87 if ENABLE_GCOV
   88 lib_libopensaf_core_la_SOURCES += \
   89 	src/base/osaf_gcov.c
   90 endif
   91 
   92 nodist_EXTRA_lib_libopensaf_core_la_SOURCES = dummy.cc
   93 
   94 noinst_HEADERS += \
   95 	src/base/buffer.h \
   96 	src/base/condition_variable.h \
   97 	src/base/conf.h \
   98 	src/base/config_file_reader.h \
   99 	src/base/daemon.h \
  100 	src/base/file_descriptor.h \
  101 	src/base/file_notify.h \
  102 	src/base/getenv.h \
  103 	src/base/handle/handle.h \
  104 	src/base/hash.h \
  105 	src/base/log_message.h \
  106 	src/base/logtrace.h \
  107 	src/base/logtrace_client.h \
  108 	src/base/logtrace_buffer.h \
  109 	src/base/log_writer.h \
  110 	src/base/macros.h \
  111 	src/base/mutex.h \
  112 	src/base/ncs_edu.h \
  113 	src/base/ncs_edu_pub.h \
  114 	src/base/ncs_hdl.h \
  115 	src/base/ncs_hdl_pub.h \
  116 	src/base/ncs_lib.h \
  117 	src/base/ncs_main_papi.h \
  118 	src/base/ncs_main_pub.h \
  119 	src/base/ncs_mda_papi.h \
  120 	src/base/ncs_mda_pvt.h \
  121 	src/base/ncs_osprm.h \
  122 	src/base/ncs_queue.h \
  123 	src/base/ncs_saf.h \
  124 	src/base/ncs_saf_edu.h \
  125 	src/base/ncs_sprr_papi.h \
  126 	src/base/ncs_svd.h \
  127 	src/base/ncs_tmr.h \
  128 	src/base/ncs_ubaid.h \
  129 	src/base/ncs_util.h \
  130 	src/base/ncsdlib.h \
  131 	src/base/ncsencdec_pub.h \
  132 	src/base/ncsgl_defs.h \
  133 	src/base/ncspatricia.h \
  134 	src/base/ncssysf_def.h \
  135 	src/base/ncssysf_ipc.h \
  136 	src/base/ncssysf_lck.h \
  137 	src/base/ncssysf_mem.h \
  138 	src/base/ncssysf_tmr.h \
  139 	src/base/ncssysf_tsk.h \
  140 	src/base/ncssysfpool.h \
  141 	src/base/ncsusrbuf.h \
  142 	src/base/handle/external_mutex.h \
  143 	src/base/handle/object.h \
  144 	src/base/handle/object_db.h \
  145 	src/base/os_defs.h \
  146 	src/base/osaf_extended_name.h \
  147 	src/base/osaf_gcov.h \
  148 	src/base/osaf_poll.h \
  149 	src/base/osaf_secutil.h \
  150 	src/base/osaf_socket.h \
  151 	src/base/osaf_time.h \
  152 	src/base/osaf_timerfd.h \
  153 	src/base/osaf_unicode.h \
  154 	src/base/osaf_utility.h \
  155 	src/base/process.h \
  156 	src/base/saf_def.h \
  157 	src/base/saf_error.h \
  158 	src/base/saf_mem.h \
  159 	src/base/sprr_dl_api.h \
  160 	src/base/statistics.h \
  161 	src/base/string_parse.h \
  162 	src/base/sysf_exc_scr.h \
  163 	src/base/sysf_ipc.h \
  164 	src/base/tests/mock_clock_gettime.h \
  165 	src/base/tests/mock_clock_nanosleep.h \
  166 	src/base/tests/mock_logtrace.h \
  167 	src/base/tests/mock_osaf_abort.h \
  168 	src/base/tests/mock_osafassert.h \
  169 	src/base/tests/mock_syslog.h \
  170 	src/base/time.h \
  171 	src/base/timer/timer.h \
  172 	src/base/timer/timer_handle.h \
  173 	src/base/unix_client_socket.h \
  174 	src/base/unix_server_socket.h \
  175 	src/base/unix_socket.h \
  176 	src/base/usrbuf.h \
  177 	src/base/sna.h
  178 
  179 TESTS += bin/testleap bin/libbase_test bin/core_common_test
  180 
  181 bin_testleap_CXXFLAGS =$(AM_CXXFLAGS)
  182 
  183 bin_testleap_CPPFLAGS = \
  184 	-DSA_CLM_B01=1 \
  185 	$(AM_CPPFLAGS) \
  186 	-I$(GTEST_DIR)/include \
  187 	-I$(GMOCK_DIR)/include
  188 
  189 bin_testleap_LDFLAGS = \
  190 	$(AM_LDFLAGS)
  191 
  192 bin_testleap_SOURCES = \
  193 	src/base/tests/sa_tmr_test.cc \
  194 	src/base/tests/sysf_tmr_test.cc
  195 
  196 bin_testleap_LDADD = \
  197 	$(GTEST_DIR)/lib/libgtest.la \
  198 	$(GTEST_DIR)/lib/libgtest_main.la \
  199 	$(GMOCK_DIR)/lib/libgmock.la \
  200 	$(GMOCK_DIR)/lib/libgmock_main.la \
  201 	lib/libosaf_common.la \
  202 	lib/libopensaf_core.la \
  203 	lib/libamf_common.la \
  204 	lib/libSaNtf.la \
  205 	lib/libSaImmOi.la \
  206 	lib/libSaImmOm.la \
  207 	lib/libSaClm.la \
  208 	lib/libSaLog.la
  209 
  210 bin_libbase_test_CXXFLAGS =$(AM_CXXFLAGS)
  211 
  212 bin_libbase_test_CPPFLAGS = \
  213 	$(AM_CPPFLAGS) \
  214 	-I$(GTEST_DIR)/include \
  215 	-I$(GMOCK_DIR)/include
  216 
  217 bin_libbase_test_LDFLAGS = \
  218 	$(AM_LDFLAGS) \
  219 	src/base/lib_libopensaf_core_la-file_descriptor.lo \
  220 	src/base/lib_libopensaf_core_la-file_notify.lo \
  221 	src/base/lib_libopensaf_core_la-getenv.lo \
  222 	src/base/lib_libopensaf_core_la-hash.lo \
  223 	src/base/lib_libopensaf_core_la-log_message.lo \
  224 	src/base/lib_libopensaf_core_la-process.lo \
  225 	src/base/lib_libopensaf_core_la-unix_server_socket.lo \
  226 	src/base/lib_libopensaf_core_la-unix_socket.lo
  227 
  228 bin_libbase_test_SOURCES = \
  229 	src/base/tests/getenv_test.cc \
  230 	src/base/tests/hash_test.cc \
  231 	src/base/tests/log_message_test.cc \
  232 	src/base/tests/mock_logtrace.cc \
  233 	src/base/tests/mock_osaf_abort.cc \
  234 	src/base/tests/mock_osafassert.cc \
  235 	src/base/tests/string_parse_test.cc \
  236 	src/base/tests/time_add_test.cc \
  237 	src/base/tests/time_compare_test.cc \
  238 	src/base/tests/time_convert_test.cc \
  239 	src/base/tests/time_subtract_test.cc \
  240 	src/base/tests/unix_socket_test.cc \
  241 	src/base/tests/sna_test.cc
  242 
  243 bin_libbase_test_LDADD = \
  244 	$(GTEST_DIR)/lib/libgtest.la \
  245 	$(GTEST_DIR)/lib/libgtest_main.la \
  246 	$(GMOCK_DIR)/lib/libgmock.la \
  247 	$(GMOCK_DIR)/lib/libgmock_main.la \
  248 	lib/libopensaf_core.la
  249 
  250 bin_core_common_test_CXXFLAGS =$(AM_CXXFLAGS)
  251 
  252 bin_core_common_test_CPPFLAGS = \
  253 	$(AM_CPPFLAGS) \
  254 	-I$(GTEST_DIR)/include \
  255 	-I$(GMOCK_DIR)/include
  256 
  257 
  258 bin_core_common_test_LDFLAGS = \
  259 	$(AM_LDFLAGS) \
  260 	src/base/lib_libopensaf_core_la-osaf_time.lo
  261 
  262 bin_core_common_test_SOURCES = \
  263 	src/base/tests/mock_clock_gettime.cc \
  264 	src/base/tests/mock_clock_nanosleep.cc \
  265 	src/base/tests/mock_syslog.cc \
  266 	src/base/tests/osaf_clock_gettime_test.cc \
  267 	src/base/tests/osaf_get_boot_time_test.cc \
  268 	src/base/tests/osaf_millis_timeout_test.cc \
  269 	src/base/tests/osaf_nanosleep_test.cc \
  270 	src/base/tests/osaf_normalize_timespec_test.cc \
  271 	src/base/tests/osaf_timespec_add_test.cc \
  272 	src/base/tests/osaf_timespec_average_test.cc \
  273 	src/base/tests/osaf_timespec_compare_test.cc \
  274 	src/base/tests/osaf_timespec_convert_test.cc \
  275 	src/base/tests/osaf_timespec_subtract_test.cc
  276 
  277 bin_core_common_test_LDADD = \
  278 	$(GTEST_DIR)/lib/libgtest.la \
  279 	$(GTEST_DIR)/lib/libgtest_main.la \
  280 	$(GMOCK_DIR)/lib/libgmock.la \
  281 	$(GMOCK_DIR)/lib/libgmock_main.la
  282 
  283 if ENABLE_TESTS
  284 
  285 bin_PROGRAMS += bin/basetest
  286 
  287 noinst_HEADERS += \
  288 	src/base/apitest/basetest.h
  289 
  290 bin_basetest_CFLAGS = $(AM_CFLAGS) -Wformat=1
  291 
  292 bin_basetest_CPPFLAGS = $(AM_CPPFLAGS)
  293 
  294 bin_basetest_SOURCES = \
  295 	src/base/apitest/basetest.c \
  296 	src/base/apitest/sysf_ipc_test.c
  297 
  298 bin_basetest_LDADD = \
  299 	lib/libapitest.la \
  300 	lib/libosaf_common.la \
  301 	lib/libopensaf_core.la
  302 
  303 endif