diff --git a/flaim/Makefile b/flaim/Makefile index a53c2bb..32648c0 100644 --- a/flaim/Makefile +++ b/flaim/Makefile @@ -101,6 +101,7 @@ unix_target = netware_target = submake_targets = netware_ring_0_target = +sparc_generic = # -- Enable command echoing -- @@ -467,6 +468,12 @@ ifdef requested_word_size endif endif +# -- Other targets and options -- + +ifneq (,$(findstring sparcgeneric,$(MAKECMDGOALS))) + generic_sparc = yes +endif + # -- Helper functions -- define normpath @@ -980,7 +987,13 @@ ifdef unix_target # Must support 64 bit file sizes - even for 32 bit builds. ccdefs += _LARGEFILE_SOURCE _FILE_OFFSET_BITS=64 - ccflags += -xarch=v8plus + + ifdef sparc_generic + ccflags += -xarch=generic + ccdefs += FLM_SPARC_GENERIC + else + ccflags += -xarch=v8plus + endif endif endif endif @@ -2007,6 +2020,10 @@ linux: solaris: $(ec)$(gprintf) "" +.PHONY : sparcgeneric +sparcgeneric: + $(ec)$(gprintf) "" + .PHONY : osx osx: $(ec)$(gprintf) ""