|
@@ -484,6 +484,7 @@ endif
|
|
|
NOCPUDEF=1
|
|
|
MSGFILE=msg/error$(FPCLANG).msg
|
|
|
SVNVERSION:=$(firstword $(wildcard $(addsuffix /svnversion$(SRCEXEEXT),$(SEARCHPATH))))
|
|
|
+GIT:=$(firstword $(wildcard $(addsuffix /git$(SRCEXEEXT),$(SEARCHPATH))))
|
|
|
PPUDUMPPROG:=$(firstword $(strip $(wildcard $(addsuffix /ppudump$(SRCEXEEXT),$(SEARCHPATH)))))
|
|
|
ifndef PPUDUMP
|
|
|
ifdef PPUDUMPPROG
|
|
@@ -496,6 +497,15 @@ REVINC:=$(wildcard revision.inc)
|
|
|
ifneq ($(REVINC),)
|
|
|
override LOCALOPT+=-dREVINC
|
|
|
ifeq ($(REVSTR),)
|
|
|
+ifneq ($(wildcard ../.git),)
|
|
|
+ifneq ($(GIT),)
|
|
|
+GITDESCRIBE=$(shell $(GIT) describe --dirty)
|
|
|
+REVSTR:=$(word 2,$(subst -, ,$(GITDESCRIBE)))-$(word 3,$(subst -, ,$(GITDESCRIBE)))
|
|
|
+ifneq ($(word 4,$(subst -, ,$(GITDESCRIBE))),)
|
|
|
+REVSTR:=$(REVSTR)-$(word 4,$(subst -, ,$(GITDESCRIBE)))
|
|
|
+endif
|
|
|
+export REVSTR
|
|
|
+else
|
|
|
ifneq ($(SVNVERSION),)
|
|
|
REVSTR:=$(subst r,,$(subst r1:,,r$(subst exported,,$(shell $(SVNVERSION) -c .))))
|
|
|
export REVSTR
|
|
@@ -507,6 +517,8 @@ endif
|
|
|
endif
|
|
|
endif
|
|
|
endif
|
|
|
+endif
|
|
|
+endif
|
|
|
override LOCALOPT+=-d$(CPC_TARGET) -dGDB -dBROWSERLOG
|
|
|
ifdef LLVM
|
|
|
ifeq ($(findstring $(PPC_TARGET),x86_64),)
|