mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 14:20:50 +00:00
Condition on kind of runtime
This commit is contained in:
parent
77f7aed44c
commit
29d6accada
1 changed files with 14 additions and 7 deletions
21
target.make
21
target.make
|
@ -156,16 +156,23 @@ endif
|
|||
# with XXXX, and prints the result. '-n' disables automatic printing
|
||||
# for portability, so we are sure we only print what we want on all
|
||||
# platforms.
|
||||
|
||||
USING_GNUSTEP_RUNTIME_VERSION_GTE_2_0 := false
|
||||
ifdef RUNTIME_VERSION
|
||||
RUNTIME_VERSION_NUMBER :=$(shell echo $(RUNTIME_VERSION) | cut -f2 -d"-")
|
||||
RUNTIME_VERSION_MAJOR := $(shell echo $(RUNTIME_VERSION_NUMBER) | cut -f1 -d.)
|
||||
RUNTIME_VERSION_MINOR := $(shell echo $(RUNTIME_VERSION_NUMBER) | cut -f2 -d.)
|
||||
RUNTIME_VERSION_GTE_2_0 := $(shell [ $(RUNTIME_VERSION_MAJOR) -gt 2 -o $(RUNTIME_VERSION_MAJOR) -eq 2 ] && echo true)
|
||||
else
|
||||
RUNTIME_VERSION_GTE_2_0 := false
|
||||
RUNTIME_VERSION_NUMBER :=$(shell echo $(RUNTIME_VERSION) | cut -f2 -d"-")
|
||||
RUNTIME_VERSION_MAJOR := $(shell echo $(RUNTIME_VERSION_NUMBER) | cut -f1 -d.)
|
||||
RUNTIME_VERSION_MINOR := $(shell echo $(RUNTIME_VERSION_NUMBER) | cut -f2 -d.)
|
||||
RUNTIME_VERSION_GTE_2_0 := $(shell [ $(RUNTIME_VERSION_MAJOR) -gt 2 -o $(RUNTIME_VERSION_MAJOR) -eq 2 ] && echo true)
|
||||
ifeq ($(findstring gnustep,$(RUNTIME_VERSION)), gnustep)
|
||||
ifeq ($(RUNTIME_VERSION_GTE_2_0), true)
|
||||
USING_GNUSTEP_RUNTIME_VERSION_GTE_2_0 := true
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(RUNTIME_VERSION_GTE_2_0),true)
|
||||
|
||||
|
||||
ifeq ($(USING_GNUSTEP_RUNTIME_VERSION_GTE_2_0),true)
|
||||
EXTRACT_CLASS_NAMES_COMMAND = $(NM) -Pg $$object_file | sed -n -e '/^._OBJC_CLASS_[A-Za-z0-9_.]* [^U]/ {s/^._OBJC_CLASS_\([A-Za-z0-9_.]*\) [^U].*/\1/p;}'
|
||||
else
|
||||
EXTRACT_CLASS_NAMES_COMMAND = $(NM) -Pg $$object_file | sed -n -e '/^__objc_class_name_[A-Za-z0-9_.]* [^U]/ {s/^__objc_class_name_\([A-Za-z0-9_.]*\) [^U].*/\1/p;}'
|
||||
|
|
Loading…
Reference in a new issue