From 5f9c3d2e26d74798b35585eaee7c852146facaf2 Mon Sep 17 00:00:00 2001 From: ahodgkinson Date: Wed, 23 Aug 2006 17:17:06 +0000 Subject: [PATCH] FLAIM change. Added support for the "sparcgeneric" target. This will build a library without any v8plus or newer instructions. git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@798 0109f412-320b-0410-ab79-c3e0c5ffbbe6 --- flaim/Makefile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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) ""