X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_pmd_vmxnet3%2FMakefile;h=93e55801d9998b678365b9e250e5a5d093065223;hb=e3f0151fc6c56b58cefa3e5fd04209292ed6400c;hp=1f0f8e0a98318b58ace8e482d9d648864afd4a8e;hpb=1daf0aae7fd6b3bc38952e9817a1653c1258be66;p=dpdk.git diff --git a/lib/librte_pmd_vmxnet3/Makefile b/lib/librte_pmd_vmxnet3/Makefile index 1f0f8e0a98..93e55801d9 100644 --- a/lib/librte_pmd_vmxnet3/Makefile +++ b/lib/librte_pmd_vmxnet3/Makefile @@ -1,12 +1,12 @@ # BSD LICENSE -# +# # Copyright(c) 2010-2014 Intel Corporation. All rights reserved. # All rights reserved. -# +# # 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 @@ -16,7 +16,7 @@ # * Neither the name of Intel Corporation nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. -# +# # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -43,21 +43,33 @@ ifeq ($(CC), icc) # # CFLAGS for icc # -CFLAGS_LAD = -wd174 -wd593 -wd869 -wd981 -wd2259 -else +CFLAGS_BASE_DRIVER = -wd174 -wd593 -wd869 -wd981 -wd2259 + +else ifeq ($(CC), clang) +# +# CFLAGS for clang +# +CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value +CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args + +else # # CFLAGS for gcc # ifneq ($(shell test $(GCC_MAJOR_VERSION) -le 4 -a $(GCC_MINOR_VERSION) -le 3 && echo 1), 1) CFLAGS += -Wno-deprecated endif -CFLAGS_LAD = -Wno-unused-parameter -Wno-unused-value -CFLAGS_LAD += -Wno-strict-aliasing -Wno-format-extra-args +CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value +CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args endif VPATH += $(RTE_SDK)/lib/librte_pmd_vmxnet3/vmxnet3 +EXPORT_MAP := rte_pmd_vmxnet3_version.map + +LIBABIVER := 1 + # # all source are stored in SRCS-y #