Stay compatible with old gmake that did not support undefine

This commit is contained in:
Martin Kroeker 2020-11-08 00:12:55 +01:00 committed by GitHub
parent f6a57d8f63
commit 1c4cfdc139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 25 deletions

View File

@ -6,7 +6,7 @@
INCLUDED = 1 INCLUDED = 1
ifndef TOPDIR ifndef TOPDIR
TOPDIR = . TOPDIR = .
endif endif
# If ARCH is not set, we use the host system's architecture for getarch compile options. # If ARCH is not set, we use the host system's architecture for getarch compile options.
@ -252,30 +252,22 @@ DUMMY := $(shell $(MAKE) -C $(TOPDIR) -f Makefile.prebuild CC="$(CC)" FC="$(FC)"
ifndef TARGET_CORE ifndef TARGET_CORE
include $(TOPDIR)/Makefile.conf include $(TOPDIR)/Makefile.conf
else else
ifdef HAVE_NEON HAVE_NEON=
undefine HAVE_NEON HAVE_VFP=
endif HAVE_VFPV3=
ifdef HAVE_VFP HAVE_VFPV4=
undefine HAVE_VFP HAVE_MMX=
endif HAVE_SSE=
ifdef HAVE_VFPV3 HAVE_SSE2=
undefine HAVE_VFPV3 HAVE_SSE3=
endif HAVE_SSSE3=
ifdef HAVE_VFPV4 HAVE_SSE4_1=
undefine HAVE_VFPV4 HAVE_SSE4_2=
endif HAVE_SSE4A=
undefine HAVE_MMX HAVE_SSE5=
undefine HAVE_SSE HAVE_AVX=
undefine HAVE_SSE2 HAVE_AVX2=
undefine HAVE_SSE3 HAVE_FMA3=
undefine HAVE_SSSE3
undefine HAVE_SSE4_1
undefine HAVE_SSE4_2
undefine HAVE_SSE4A
undefine HAVE_SSE5
undefine HAVE_AVX
undefine HAVE_AVX2
undefine HAVE_FMA3
include $(TOPDIR)/Makefile_kernel.conf include $(TOPDIR)/Makefile_kernel.conf
endif endif