Explorar o código

+ FPC_VERSION (with shell $(PP) -iV)

pierre %!s(int64=26) %!d(string=hai) anos
pai
achega
0b186f043a
Modificáronse 1 ficheiros con 10 adicións e 3 borrados
  1. 10 3
      base/makefile.fpc

+ 10 - 3
base/makefile.fpc

@@ -39,7 +39,7 @@ nopwd:
 	@echo Get ftp://tflily.fys.kuleuven.ac.be/pub/fpc/dist/go32v2/utilgo32.zip
 	@exit
 else
-inlinux=1	
+inlinux=1
 endif
 else
 PWD:=$(firstword $(PWD))
@@ -97,6 +97,9 @@ ifndef CPU
 CPU=$(shell $(PP) -iTP)
 endif
 
+# FPC version
+FPC_VERSION=$(shell $(PP) -iV)
+
 # Options
 ifndef OPT
 OPT=
@@ -648,7 +651,7 @@ endif
 # Export commandline values, so nesting use the same values
 #####################################################################
 
-export FPCDIR FPCMAKE
+export FPCDIR FPCMAKE FPC_VERSION
 export RELEASEVER OS_SOURCE OS_TARGET OPT OPTDEF CPU PP RELEASE VERBOSE
 export SMARTLINK LIBTYPE LIBNAME
 export BASEINSTALLDIR PACKAGESUFFIX
@@ -892,6 +895,7 @@ fpc_cfginfo:
 	@$(ECHO)  Source.... $(OS_SOURCE)
 	@$(ECHO)  Target.... $(OS_TARGET)
 	@$(ECHO)  Basedir... $(BASEDIR)
+	@$(ECHO)  Version... $(FPC_VERSION)
 	@$(ECHO)
 
 fpc_dirinfo:
@@ -990,7 +994,10 @@ endif
 
 #
 # $Log$
-# Revision 1.21  1999-05-03 22:38:10  peter
+# Revision 1.22  1999-05-04 23:20:42  pierre
+#  + FPC_VERSION (with shell $(PP) -iV)
+#
+# Revision 1.21  1999/05/03 22:38:10  peter
 #   * typo with -TP which should be -iTP
 #
 # Revision 1.20  1999/05/03 22:29:04  peter