Added support for HP/UX.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@179 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -235,6 +235,12 @@ ifndef host_os_family
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef host_os_family
|
||||
ifneq (,$(findstring hpux,$(OSTYPE)))
|
||||
host_os_family = hpux
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef host_os_family
|
||||
$(error Host operating system could not be determined. You may need to export HOSTTYPE from the environment.)
|
||||
endif
|
||||
@@ -452,6 +458,38 @@ ifndef target_os_family
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef target_os_family
|
||||
ifeq ($(host_os_family),hpux)
|
||||
unix_target = yes
|
||||
target_os_family = hpux
|
||||
|
||||
ifeq (,$(HOSTTYPE))
|
||||
$(error HOSTTYPE environment variable has not been set)
|
||||
endif
|
||||
|
||||
ifdef requested_target_word_size
|
||||
ifneq (,$(findstring hppa,$(HOSTTYPE)))
|
||||
ifeq ($(requested_target_word_size),64)
|
||||
target_processor = hppa
|
||||
target_word_size = 64
|
||||
else
|
||||
target_processor = hppa
|
||||
target_word_size = 32
|
||||
endif
|
||||
else
|
||||
$(error Platform not supported)
|
||||
endif
|
||||
else
|
||||
ifneq (,$(findstring hppa,$(HOSTTYPE)))
|
||||
target_processor = hppa
|
||||
target_word_size = 32
|
||||
else
|
||||
$(error Platform not supported)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef target_os_family
|
||||
ifeq ($(host_os_family),win)
|
||||
win_target = yes
|
||||
@@ -702,6 +740,13 @@ ifdef unix_target
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(usenativecc),yes)
|
||||
ifeq ($(target_os_family),hpux)
|
||||
compiler = aCC
|
||||
linker = aCC
|
||||
endif
|
||||
endif
|
||||
|
||||
# Compiler defines and flags
|
||||
|
||||
ifeq ($(compiler),g++)
|
||||
@@ -773,6 +818,14 @@ ifdef unix_target
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(target_os_family),hpux)
|
||||
ifeq ($(usenativecc),yes)
|
||||
# Must support 64 bit file sizes - even for 32 bit builds.
|
||||
|
||||
ccdefs += _LARGEFILE_SOURCE _FILE_OFFSET_BITS=64
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(target_os_family),osx)
|
||||
ccdefs += OSX
|
||||
endif
|
||||
@@ -839,6 +892,10 @@ ifdef unix_target
|
||||
lib_link_libs += -lm -lc
|
||||
endif
|
||||
|
||||
ifeq ($(target_os_family),hpux)
|
||||
lib_link_libs += -lm -lc -lrt
|
||||
endif
|
||||
|
||||
ifeq ($(target_os_family),osx)
|
||||
lib_link_libs += -lstdc++ -ldl
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user