diff options
-rw-r--r-- | svl/Makefile | 10 | ||||
-rw-r--r-- | svl/prj/makefile.mk | 9 | ||||
-rw-r--r-- | svtools/Makefile | 10 | ||||
-rw-r--r-- | svtools/prj/makefile.mk | 9 | ||||
-rw-r--r-- | toolkit/Makefile | 10 | ||||
-rw-r--r-- | toolkit/prj/makefile.mk | 9 | ||||
-rw-r--r-- | tools/Makefile | 10 | ||||
-rw-r--r-- | tools/prj/makefile.mk | 9 |
8 files changed, 64 insertions, 12 deletions
diff --git a/svl/Makefile b/svl/Makefile index b198cc3d4c32..3225bc97e12c 100644 --- a/svl/Makefile +++ b/svl/Makefile @@ -25,7 +25,15 @@ # #************************************************************************* -include $(dir $(firstword $(MAKEFILE_LIST)))/../SourcePath.mk +ifneq ($(MAKE_VERSION),3.81) +$(error You need at least GNU Make 3.81!) +endif + +ifeq ($(strip $(SOLARENV)),) +$(error No environment set!) +endif + +include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/../SourcePath.mk GBUILDDIR := $(SOLARENV)/gbuild include $(GBUILDDIR)/gbuild.mk diff --git a/svl/prj/makefile.mk b/svl/prj/makefile.mk index 8b00cb5a5818..3b1b54d4357f 100644 --- a/svl/prj/makefile.mk +++ b/svl/prj/makefile.mk @@ -25,11 +25,16 @@ # #************************************************************************* -.IF $(VERBOSE) +PRJ=.. +TARGET=prj + +.INCLUDE : settings.mk + +.IF "$(VERBOSE)"!="" VERBOSEFLAG := .ELSE VERBOSEFLAG := -s .ENDIF all: - @cd .. && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) + cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) diff --git a/svtools/Makefile b/svtools/Makefile index b198cc3d4c32..3225bc97e12c 100644 --- a/svtools/Makefile +++ b/svtools/Makefile @@ -25,7 +25,15 @@ # #************************************************************************* -include $(dir $(firstword $(MAKEFILE_LIST)))/../SourcePath.mk +ifneq ($(MAKE_VERSION),3.81) +$(error You need at least GNU Make 3.81!) +endif + +ifeq ($(strip $(SOLARENV)),) +$(error No environment set!) +endif + +include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/../SourcePath.mk GBUILDDIR := $(SOLARENV)/gbuild include $(GBUILDDIR)/gbuild.mk diff --git a/svtools/prj/makefile.mk b/svtools/prj/makefile.mk index 8b00cb5a5818..3b1b54d4357f 100644 --- a/svtools/prj/makefile.mk +++ b/svtools/prj/makefile.mk @@ -25,11 +25,16 @@ # #************************************************************************* -.IF $(VERBOSE) +PRJ=.. +TARGET=prj + +.INCLUDE : settings.mk + +.IF "$(VERBOSE)"!="" VERBOSEFLAG := .ELSE VERBOSEFLAG := -s .ENDIF all: - @cd .. && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) + cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) diff --git a/toolkit/Makefile b/toolkit/Makefile index b198cc3d4c32..3225bc97e12c 100644 --- a/toolkit/Makefile +++ b/toolkit/Makefile @@ -25,7 +25,15 @@ # #************************************************************************* -include $(dir $(firstword $(MAKEFILE_LIST)))/../SourcePath.mk +ifneq ($(MAKE_VERSION),3.81) +$(error You need at least GNU Make 3.81!) +endif + +ifeq ($(strip $(SOLARENV)),) +$(error No environment set!) +endif + +include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/../SourcePath.mk GBUILDDIR := $(SOLARENV)/gbuild include $(GBUILDDIR)/gbuild.mk diff --git a/toolkit/prj/makefile.mk b/toolkit/prj/makefile.mk index 8b00cb5a5818..3b1b54d4357f 100644 --- a/toolkit/prj/makefile.mk +++ b/toolkit/prj/makefile.mk @@ -25,11 +25,16 @@ # #************************************************************************* -.IF $(VERBOSE) +PRJ=.. +TARGET=prj + +.INCLUDE : settings.mk + +.IF "$(VERBOSE)"!="" VERBOSEFLAG := .ELSE VERBOSEFLAG := -s .ENDIF all: - @cd .. && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) + cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) diff --git a/tools/Makefile b/tools/Makefile index b198cc3d4c32..3225bc97e12c 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -25,7 +25,15 @@ # #************************************************************************* -include $(dir $(firstword $(MAKEFILE_LIST)))/../SourcePath.mk +ifneq ($(MAKE_VERSION),3.81) +$(error You need at least GNU Make 3.81!) +endif + +ifeq ($(strip $(SOLARENV)),) +$(error No environment set!) +endif + +include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/../SourcePath.mk GBUILDDIR := $(SOLARENV)/gbuild include $(GBUILDDIR)/gbuild.mk diff --git a/tools/prj/makefile.mk b/tools/prj/makefile.mk index 8b00cb5a5818..3b1b54d4357f 100644 --- a/tools/prj/makefile.mk +++ b/tools/prj/makefile.mk @@ -25,11 +25,16 @@ # #************************************************************************* -.IF $(VERBOSE) +PRJ=.. +TARGET=prj + +.INCLUDE : settings.mk + +.IF "$(VERBOSE)"!="" VERBOSEFLAG := .ELSE VERBOSEFLAG := -s .ENDIF all: - @cd .. && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) + cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) |