]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
- changed INCLUDE automake variable in makefiles to AM_CPPFLAGS since its deprecated...
authorAdrian Chiris <adrianc@mellanox.com>
Tue, 22 Mar 2016 09:32:37 +0000 (11:32 +0200)
committerAdrian Chiris <adrianc@mellanox.com>
Wed, 23 Mar 2016 15:45:40 +0000 (17:45 +0200)
- added Makefile to common folder
- changed the installation dir of mtcr_ul to be prefixed with the package name (added hook in spec file to link the old location)

20 files changed:
Makefile.am
cmdif/Makefile.am
cmdparser/Makefile.am
common/Makefile.am [new file with mode: 0644]
configure.ac
dev_mgt/Makefile.am
flint/Makefile.am
mflash/Makefile.am
mft_utils/Makefile.am
mlxconfig/Makefile.am
mlxfwops/lib/Makefile.am
mstdump/crd_lib/Makefile.am
mstdump/crd_main/Makefile.am
mstflint.spec.in
mtcr_ul/Makefile.am
reg_access/Makefile.am
small_utils/Makefile.am
tools_crypto/Makefile.am
tools_layouts/Makefile.am
tools_res_mgmt/Makefile.am

index c559d554767232c38f7aa4f58b03424564b9b985..2da1619dbcc41f0e4ab3a0786e88492b11a243da 100644 (file)
@@ -30,7 +30,7 @@
 # SOFTWARE.
 #--
 
-SUBDIRS = mft_utils $(TOOLS_CRYPTO) tools_layouts mtcr_ul reg_access cmdif dev_mgt tools_res_mgmt mflash mlxconfig mlxfwops cmdparser flint small_utils mstdump
+SUBDIRS = common mft_utils $(TOOLS_CRYPTO) tools_layouts mtcr_ul reg_access cmdif dev_mgt tools_res_mgmt mflash mlxconfig mlxfwops cmdparser flint small_utils mstdump
 
 man_MANS = man/mstflint.1 man/mstconfig.1 man/mstmcra.1 man/mstmread.1 man/mstmwrite.1 man/mstmtserver.1 man/mstregdump.1 man/mstvpd.1
 
index 45615f8d7a214929d70bcf7a63da6e5a2b219cc5..c6315d030f93ac0572de79ed5f58e668e5bfc2d2 100644 (file)
@@ -34,7 +34,7 @@
 USER_DIR = $(top_srcdir)
 MTCR_DIR = $(USER_DIR)/include/mtcr_ul
 TOOLS_LAYOUTS_DIR = $(USER_DIR)/tools_layouts
-INCLUDES = -I. -I../common -I../tools_layouts  -I$(MTCR_DIR) -I.. -I$(USER_DIR)/mtcr_ul
+AM_CPPFLAGS = -I. -I../common -I../tools_layouts  -I$(MTCR_DIR) -I.. -I$(USER_DIR)/mtcr_ul
 
 AM_CFLAGS = -W -Wall -Werror -g -MP -MD $(COMPILER_FPIC) -DCMDIF_EXPORTS
 CMDIF_VERSION = 1
index 9696f71051e24e157ccd9e3a113ab7acd0bffee3..952a074b9d1216a347651139da926f660d946ed0 100644 (file)
@@ -32,8 +32,6 @@
 
 # Makefile.am -- Process this file with automake to produce Makefile.in
 
-INCLUDES =
-
 AM_CPPFLAGS = -W  -g -MP -MD -fPIC
 
 noinst_LIBRARIES = libcmdparser.a
diff --git a/common/Makefile.am b/common/Makefile.am
new file mode 100644 (file)
index 0000000..982c5aa
--- /dev/null
@@ -0,0 +1,36 @@
+#--
+# Copyright (c) 2004-2010 Mellanox Technologies LTD. All rights reserved.
+#
+# This software is available to you under a choice of one of two
+# licenses.  You may choose to be licensed under the terms of the GNU
+# General Public License (GPL) Version 2, available from the file
+# COPYING in the main directory of this source tree, or the
+# OpenIB.org BSD license below:
+#
+#     Redistribution and use in source and binary forms, with or
+#     without modification, are permitted provided that the following
+#     conditions are met:
+#
+#      - Redistributions of source code must retain the above
+#        copyright notice, this list of conditions and the following
+#        disclaimer.
+#
+#      - Redistributions in binary form must reproduce the above
+#        copyright notice, this list of conditions and the following
+#        disclaimer in the documentation and/or other materials
+#        provided with the distribution.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+#--
+
+# Makefile.am -- Process this file with automake to produce Makefile.in
+
+noinst_HEADERS=compatibility.h bit_slice.h tools_utils.h tools_utils.h tools_version.h
+
index 94c19da74a316ec78387ea36c461b38605e23e97..b3b0c58bb3dc8f21c131b8b406d2397dce2335b6 100644 (file)
@@ -10,11 +10,12 @@ AC_SUBST([VERSION])
 
 AC_CONFIG_AUX_DIR(config)
 AC_CONFIG_SRCDIR([README])
-AM_INIT_AUTOMAKE(mstflint, 4.3.0)
+AM_INIT_AUTOMAKE
 
 dnl Checks for programs
 AC_PROG_CC
 AC_PROG_CXX
+AM_PROG_AR
 AC_PROG_LIBTOOL
 AC_CONFIG_HEADERS( config.h )
 
@@ -85,6 +86,6 @@ AS_IF([test "x$enable_cs" = "xyes"], [
         AC_CONFIG_FILES(tools_crypto/Makefile)
     ])
 
-AC_OUTPUT( Makefile mft_utils/Makefile mtcr_ul/Makefile dev_mgt/Makefile tools_layouts/Makefile reg_access/Makefile cmdif/Makefile tools_res_mgmt/Makefile \
-               mlxconfig/Makefile mflash/Makefile mlxfwops/Makefile mlxfwops/lib/Makefile cmdparser/Makefile flint/Makefile \
+AC_OUTPUT( Makefile common/Makefile mft_utils/Makefile mtcr_ul/Makefile dev_mgt/Makefile tools_layouts/Makefile reg_access/Makefile \
+        cmdif/Makefile tools_res_mgmt/Makefile mlxconfig/Makefile mflash/Makefile mlxfwops/Makefile mlxfwops/lib/Makefile cmdparser/Makefile flint/Makefile \
                small_utils/Makefile mstdump/Makefile mstdump/crd_lib/Makefile mstdump/crd_main/Makefile  mstdump/mstdump_dbs/Makefile )
index 703a27af673d6080bc171884a91d62279e7f6c96..147f7aa4035eb61e833d6ba3b25a2d26c12d527e 100644 (file)
@@ -32,7 +32,7 @@
 
 # Makefile.am -- Process this file with automake to produce Makefile.in
 
-INCLUDES = -I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/common  -I$(top_srcdir)/include/mtcr_ul
+AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/common  -I$(top_srcdir)/include/mtcr_ul
 
 AM_CFLAGS = -W -Wall -g -MP -MD -Wswitch-enum $(COMPILER_FPIC) -DMTCR_EXPORT
 noinst_LIBRARIES = libdev_mgt.a
index e4c032e5ca0991ec931b833f787bac24abf026e0..d2cb8c57bda7749e606c491ec06a8d40d5fa89e1 100755 (executable)
@@ -39,7 +39,7 @@ LAYOUTS_DIR = $(top_srcdir)/tools_layouts
 MFT_UTILS_DIR = $(top_srcdir)/mft_utils
 CMDIF_DIR   = $(top_srcdir)/cmdif
 
-INCLUDES = -I$(top_srcdir) -I$(srcdir) -I$(MTCR_DIR) -I$(MFLASH_DIR) -I$(COMMON_DIR) \
+AM_CPPFLAGS = -I$(top_srcdir) -I$(srcdir) -I$(MTCR_DIR) -I$(MFLASH_DIR) -I$(COMMON_DIR) \
            -I$(LAYOUTS_DIR) -I$(MFT_UTILS_DIR) -I$(MTCR_INC_DIR)
 
 mstflint_CXXFLAGS = -Wall -W -g -MP -MD -pipe -DEXTERNAL
index 950cabdeb2f7b31d1092bb3e758d475f1fc04a76..44ac7cc24fa38076787cbda637d28905993b0702 100644 (file)
 #--
 
 # Makefile.am -- Process this file with automake to produce Makefile.in
-INCLUDES= -I. -I$(top_srcdir)/include/mtcr_ul -I$(top_srcdir)/common -I$(top_srcdir)/tools_layouts -I$(top_srcdir)/reg_access \
+AM_CPPFLAGS = -I. -I$(top_srcdir)/include/mtcr_ul -I$(top_srcdir)/common -I$(top_srcdir)/tools_layouts -I$(top_srcdir)/reg_access \
           -I$(top_srcdir)/cmdif -I$(top_srcdir)/tools_res_mgmt
 
 AM_CFLAGS = -MD -pipe -Wall -W -DMST_UL -g ${MFLASH_INBAND_FLAG}
 
-noinst_LIBRARIES = libmflash.a
+noinst_LTLIBRARIES = libmflash.a
 
 libmflash_a_SOURCES =  mflash.c mflash.h\
                        mflash_pack_layer.c mflash_pack_layer.h mflash_access_layer.c mflash_access_layer.h\
                        mflash_types.h mlash_common_structs.h
+
+noinst_HEADERS = mflash.h mflash_types.h mflash_common_structs.h
index ad9ad8e3ce78c900439327a52f484075e957130e..ebb3bf31e6f96026009beb44491fa6ff4307aa63 100644 (file)
@@ -32,7 +32,7 @@
 
 # Makefile.am -- Process this file with automake to produce Makefile.in
 USER_DIR = $(top_srcdir)
-INCLUDES = -I. -I$(USER_DIR)/common
+AM_CPPFLAGS = -I. -I$(USER_DIR)/common
 
 AM_CFLAGS = -MD -pipe -Wall -W -Werror
 
index 798d4dd0246f29b2a8733f9985093d9288441225..c9189aa20fc4c179e806caa929146a6a7919a0c6 100755 (executable)
@@ -42,7 +42,7 @@ UTILS_LIB = $(USER_DIR)/mft_utils/libmftutils.a
 CMDIF_DIR = $(USER_DIR)/cmdif
 
 
-INCLUDES = -I. -I$(USER_DIR) -I$(top_srcdir)/include/mtcr_ul -I$(MTCR_DIR) -I$(COMMON_DIR) $(WIN64_INC)\
+AM_CPPFLAGS = -I. -I$(USER_DIR) -I$(top_srcdir)/include/mtcr_ul -I$(MTCR_DIR) -I$(COMMON_DIR) $(WIN64_INC)\
            -I $(LAYOUTS_DIR) -I $(UTILS_DIR) -I$(DEV_MGT_DIR) -I$(CMDIF_DIR)
 
 AM_CXXFLAGS = -Wall -W -g -MP -MD -pipe
index 8cf9e153e0dff74779ca8d26a73127676735bc5c..c309507f49c97a0d8cb0c316508467ca250fb7ed 100755 (executable)
@@ -40,7 +40,7 @@ LAYOUTS_DIR = $(top_srcdir)/tools_layouts
 UTILS_LIB = $(top_srcdir)/mft_utils
 UEFI_COMMON_DIR = $(top_srcdir)/mlxfwops/uefi_c
 
-INCLUDES = -I$(srcdir) -I$(MTCR_INC_DIR) -I$(MFLASH_DIR) -I$(top_srcdir)/ext_libs/json -I$(MINIXZ_DIR)\
+AM_CPPFLAGS = -I$(srcdir) -I$(MTCR_INC_DIR) -I$(MFLASH_DIR) -I$(top_srcdir)/ext_libs/json -I$(MINIXZ_DIR)\
            -I$(COMMON_DIR) -I $(LAYOUTS_DIR) -I$(top_srcdir)/common -I$(UTILS_LIB) -I$(UEFI_COMMON_DIR)
 
 MLXFWOPS_VERSION = 1
index f3e405b1de5fb142b952b62461489c826193f28d..c884184c45a189948160d1eca46fb83aaa7d391c 100755 (executable)
@@ -33,7 +33,7 @@
 # Makefile.am -- Process this file with automake to produce Makefile.in
 
 
-INCLUDES =     -I$(top_srcdir) -I$(top_srcdir)/include/mtcr_ul -I$(top_srcdir)/common
+AM_CPPFLAGS =  -I$(top_srcdir) -I$(top_srcdir)/include/mtcr_ul -I$(top_srcdir)/common
 AM_CFLAGS = -Wall -W -g -MP -MD -pipe -Wno-unused-function  $(COMPILER_FPIC) -DMTCR_EXPORT -DMST_UL -DDATA_PATH=\"$(pkgdatadir)\"
 
 noinst_LIBRARIES = libcrdump.a
index 0c096d43f3bc508b696de25e870264c3c25f6965..dd7b32ecd159a271d6873eae240b928b1f78d7e4 100755 (executable)
@@ -31,7 +31,7 @@
 #--
 
 # Makefile.am -- Process this file with automake to produce Makefile.in
-INCLUDES = -I$(top_srcdir) -I$(srcdir)/../crd_lib -I$(top_srcdir)/include/mtcr_ul
+AM_CPPFLAGS = -I$(top_srcdir) -I$(srcdir)/../crd_lib -I$(top_srcdir)/include/mtcr_ul
 AM_CFLAGS = -MD -pipe -g -Wall -W
 
 bin_PROGRAMS = mstregdump
index 866fa96642e18773322e565c806a3d34088615a6..12d622fc609783494840a4e2899f10032aa50bfd 100644 (file)
@@ -83,11 +83,20 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/mstmcra
 %{_bindir}/mstconfig
 %{_bindir}/hca_self_test.ofed
-%{_includedir}/mtcr_ul/mtcr.h
-%{_libdir}/libmtcr_ul.a
+
+%{_includedir}/mstfllint/mtcr.h
+%{_libdir}/mstflint/libmtcr_ul.a
+
 %{_datadir}/mstflint
 %{_mandir}/man1/*
 
+%post
+# link mtcr_ul to old include path
+mkdir -p %{_includedir}/mtcr_ul
+ln -s %{_includedir}/mstflint/mtcr.h            %{_includedir}/mtcr_ul/mtcr.h
+# link mtcr_ul to old lib path
+ln -s %{_libdir}/mstflint/libmtcr_ul.a            %{_libdir}/libmtcr_ul.a 
+
 %changelog
 * Mon Jan 11 2016 Adrian Chiris <adrianc@dev.mellanox.co.il>
    MFT 4.3.0 Updates
index f72a2e6bbaa3ccc8879b77127659d06a062fb099..3323c250b7394d1245a871f884b851deab8addb3 100644 (file)
@@ -31,9 +31,9 @@
 #--
 
 # Makefile.am -- Process this file with automake to produce Makefile.in
-INCLUDES = -I$(top_srcdir)/include/mtcr_ul -I$(top_srcdir)/common
+AM_CPPFLAGS = -I$(top_srcdir)/include/mtcr_ul -I$(top_srcdir)/common
 
-lib_LIBRARIES = libmtcr_ul.a
+pkglib_LIBRARIES = libmtcr_ul.a
 
 libmtcr_ul_a_SOURCES = mtcr_ul.c mtcr_ib.h  mtcr_int_defs.h\
                        mtcr_ib_res_mgt.h mtcr_ib_res_mgt.c\
@@ -49,6 +49,6 @@ else
 libmtcr_ul_a_CFLAGS += -DNO_INBAND
 endif
 
-libraryincludedir=$(includedir)/mtcr_ul
-libraryinclude_HEADERS = $(top_srcdir)/include/mtcr_ul/mtcr.h
+libraryincludedir=$(includedir)/mstflint
+libraryinclude_HEADERS = $(top_srcdir)/include/mtcr_ul/mtcr.h  $(top_srcdir)/include/mtcr_ul/mtcr_com_defs.h
 
index 7f780601aaed76195d3cb600e8fd3d5f88b6b7be..caa0993d6fded1ef3da9fb25b826133be5647a95 100644 (file)
@@ -36,11 +36,11 @@ COMMON_DIR = $(top_srcdir)/common
 LAYOUTS_DIR = $(top_srcdir)/tools_layouts
 USER_DIR = $(top_srcdir)
 
-INCLUDES = -I. -I$(USER_DIR) -I$(srcdir) -I$(LAYOUTS_DIR) -I$(USER_DIR)/include/mtcr_ul
+AM_CPPFLAGS = -I. -I$(USER_DIR) -I$(srcdir) -I$(LAYOUTS_DIR) -I$(USER_DIR)/include/mtcr_ul
 
 AM_CFLAGS = -W -Wall -Werror -g -MP -MD $(COMPILER_FPIC)
 
-noinst_LIBRARIES = libreg_access.a
+noinst_LTLIBRARIES = libreg_access.a
 
 libreg_access_a_SOURCES = reg_access.c reg_access.h
 libreg_access_a_DEPENDENCIES = $(USER_DIR)/tools_layouts/libtools_layouts.a
index 838a724848cd92ab47d3292af2568edd40e29f55..24c36f96a768745f440ed12ee23c2b964521135d 100644 (file)
@@ -30,7 +30,7 @@
 # SOFTWARE.
 #--
 
-INCLUDES= -I$(top_srcdir)/include/mtcr_ul -I$(top_srcdir)/common
+AM_CPPFLAGS= -I$(top_srcdir)/include/mtcr_ul -I$(top_srcdir)/common
 
 LDADD= ../mtcr_ul/libmtcr_ul.a -ldl
 
index 7dc60829a7f50ef0ee5facee749dddbaa560e31a..784d94fa53e41b230c1e72c3121946d4ed3ac293 100644 (file)
@@ -32,7 +32,7 @@
 
 # Makefile.am -- Process this file with automake to produce Makefile.in
 USER_DIR = $(top_srcdir)
-INCLUDES = -I$(USER_DIR) -I$(USER_DIR)/common
+AM_CPPFLAGS = -I$(USER_DIR) -I$(USER_DIR)/common
 AM_CFLAGS =  -MD -pipe -Wall -W -DMST_UL -g
 
 noinst_LIBRARIES = libtools_crypto.a
index bc18f9b6a31e4ee0418f217cf3a1f7d18049783e..7726c7fcfa047b6f80130c5e7092921c4319ed56 100644 (file)
 #--
 
 # Makefile.am -- Process this file with automake to produce Makefile.in
-INCLUDES = -I$(top_srcdir)/mtcr_ul -I$(top_srcdir)/common
+AM_CPPFLAGS = -I$(top_srcdir)/mtcr_ul -I$(top_srcdir)/common
 AM_CFLAGS = -Wall -W -g -MP -MD -pipe $(COMPILER_FPIC)
-noinst_LIBRARIES = libtools_layouts.a
+
+noinst_LTLIBRARIES = libtools_layouts.a
 
 libtools_layouts_a_SOURCES = adb_to_c_utils.c adb_to_c_utils.h \
                                cibfw_layouts.c cibfw_layouts.h \
index 8231a8705e5e556d43b59d39eda7133f376a62df..4b513f44d706ca88fbcc43dcfe85db242d94a8f9 100644 (file)
@@ -33,7 +33,7 @@
 
 USER_DIR = $(top_srcdir)
 MTCR_DIR = $(USER_DIR)/include/mtcr_ul
-INCLUDES = -I. -I../common -I$(MTCR_DIR) -I.. -I$(USER_DIR)/mtcr_ul
+AM_CPPFLAGS = -I. -I../common -I$(MTCR_DIR) -I.. -I$(USER_DIR)/mtcr_ul
 
 AM_CFLAGS = -W -Wall -Werror -g -MP -MD $(COMPILER_FPIC) 
 noinst_LIBRARIES = libtools_res_mgmt.a