X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fmlx4%2FMakefile;h=e873fb48053046363f020fd1dd816e5d42b0d987;hb=d6af1a13d7a14d062d11b37f6e31caa0f3823fe0;hp=4d163433b573bab8c1fc2318bdf5d4f8c8107b7b;hpb=d06c608c013c36711e7a693b3fece68a93ae4369;p=dpdk.git diff --git a/drivers/net/mlx4/Makefile b/drivers/net/mlx4/Makefile index 4d163433b5..e873fb4805 100644 --- a/drivers/net/mlx4/Makefile +++ b/drivers/net/mlx4/Makefile @@ -36,12 +36,7 @@ LIB = librte_pmd_mlx4.a # Sources. SRCS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += mlx4.c - -# Dependencies. -DEPDIRS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += lib/librte_ether -DEPDIRS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += lib/librte_mbuf -DEPDIRS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += lib/librte_eal -DEPDIRS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += lib/librte_mempool +SRCS-$(CONFIG_RTE_LIBRTE_MLX4_PMD) += mlx4_flow.c # Basic CFLAGS. CFLAGS += -O3 @@ -100,7 +95,9 @@ ifndef V AUTOCONF_OUTPUT := >/dev/null endif -mlx4_autoconf.h: $(RTE_SDK)/scripts/auto-config-h.sh +mlx4_autoconf.h.new: FORCE + +mlx4_autoconf.h.new: $(RTE_SDK)/buildtools/auto-config-h.sh $Q $(RM) -f -- '$@' $Q sh -- '$<' '$@' \ RSS_SUPPORT \ @@ -120,9 +117,16 @@ mlx4_autoconf.h: $(RTE_SDK)/scripts/auto-config-h.sh enum IBV_EXP_QP_BURST_CREATE_DISABLE_ETH_LOOPBACK \ $(AUTOCONF_OUTPUT) -mlx4.o: mlx4_autoconf.h +# Create mlx4_autoconf.h or update it in case it differs from the new one. + +mlx4_autoconf.h: mlx4_autoconf.h.new + $Q [ -f '$@' ] && \ + cmp '$<' '$@' $(AUTOCONF_OUTPUT) || \ + mv '$<' '$@' + +$(SRCS-$(CONFIG_RTE_LIBRTE_MLX4_PMD):.c=.o): mlx4_autoconf.h clean_mlx4: FORCE - $Q rm -f -- mlx4_autoconf.h + $Q rm -f -- mlx4_autoconf.h mlx4_autoconf.h.new clean: clean_mlx4