mirror of
https://github.com/AdaCore/aws.git
synced 2026-02-12 12:29:46 -08:00
This patch makes it possible to build AWS in native and cross environments from the same tree. That is the build happen now into .build/<target_name> AWS's root directory. The installation is also done in specific directories for the cross builds $prefix/$target. Moreover generating OS constants and type definitions (in AWS.OS_Lib) is done using xoscons and a template. This way it is possible to create AWS.OS_Lib for a cross-target. It is then now possible to remove the VxWorks specific AWS.OS_Lib (aws-os_lib__vxworks.ads) as this can now be generated. Generally this patch fix wrong uses of host kind where target is meant. Consequently, some clean-ups and simplifications have occured in makefiles. For LA06-001.
105 lines
2.1 KiB
Plaintext
105 lines
2.1 KiB
Plaintext
##############################################################################
|
|
# Consistency checks
|
|
|
|
ifneq ($(DEBUG), true)
|
|
ifneq ($(DEBUG), false)
|
|
$(error DEBUG variable must be set to true or false)
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(IPv6), true)
|
|
ifneq ($(IPv6), false)
|
|
$(error IPv6 variable must be set to true or false)
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(ENABLE_SHARED), )
|
|
ENABLE_SHARED=false
|
|
endif
|
|
|
|
ifeq ($(XMLADA), )
|
|
XMLADA=false
|
|
endif
|
|
|
|
ifeq ($(ASIS), )
|
|
ASIS=false
|
|
endif
|
|
|
|
ifneq ($(ZLIB), true)
|
|
ZLIB=false
|
|
endif
|
|
|
|
ifeq ($(PRJ_TARGET), vxworks)
|
|
ifeq ($(ENABLE_SHARED), true)
|
|
$(error shared libraries not supported on cross platforms)
|
|
endif
|
|
ifeq ($(ASIS), true)
|
|
$(error ASIS not supported on cross platforms)
|
|
endif
|
|
ifeq ($(LDAP), true)
|
|
$(error LDAP not supported on cross platforms)
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(ENABLE_SHARED), true)
|
|
ifneq ($(ENABLE_SHARED), false)
|
|
$(error ENABLE_SHARED variable must be set to true or false)
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(DEFAULT_LIBRARY_TYPE), static)
|
|
ifneq ($(DEFAULT_LIBRARY_TYPE), relocatable)
|
|
$(error DEFAULT_LIBRARY_TYPE variable must be set to static or relocatable)
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(ASIS), true)
|
|
ifneq ($(ASIS), false)
|
|
$(error ASIS variable must be set to true or false)
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(XMLADA), true)
|
|
ifneq ($(XMLADA), false)
|
|
$(error XMLADA variable must be set to true or false)
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(LDAP), true)
|
|
ifneq ($(LDAP), false)
|
|
$(error LDAP variable must be set to true or false)
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(ASIS), true)
|
|
ifeq ($(XMLADA), false)
|
|
$(error ASIS is set and requires XMLADA to be installed. \
|
|
You may be missing XMLADA=true)
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(SOCKET), std)
|
|
ifneq ($(SOCKET), openssl)
|
|
ifneq ($(SOCKET), gnutls)
|
|
$(error SOCKET variable must be set to std, openssl or gnutls)
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(INSTALL), )
|
|
$(error INSTALL variable is deprecated, please use prefix instead)
|
|
endif
|
|
|
|
ifneq ($(SHARED), )
|
|
$(error SHARED variable is deprecated, please use ENABLE_SHARED instead)
|
|
endif
|
|
|
|
ifeq ("$(prefix)", "..")
|
|
$(error "Wrong install path : prefix='$(prefix)', \
|
|
Check that GNAT is in the PATH")
|
|
else
|
|
ifeq ("$(prefix)", "")
|
|
$(error "Wrong install path : empty prefix variable")
|
|
endif
|
|
endif
|