Browse Source

* better localopt usage

peter 25 years ago
parent
commit
a9c4c8d407
2 changed files with 30 additions and 30 deletions
  1. 16 16
      compiler/Makefile
  2. 14 14
      compiler/Makefile.fpc

+ 16 - 16
compiler/Makefile

@@ -1,5 +1,5 @@
 #
 #
-# Makefile generated by fpcmake v1.00 [2000/11/08]
+# Makefile generated by fpcmake v1.00 [2000/10/27]
 #
 #
 
 
 defaultrule: all
 defaultrule: all
@@ -103,25 +103,12 @@ ifndef FPC_VERSION
 FPC_VERSION:=$(shell $(FPC) -iV)
 FPC_VERSION:=$(shell $(FPC) -iV)
 endif
 endif
 
 
-export FPC OS_TARGET OS_SOURCE CPU_TARGET CPU_SOURCE FPC_VERSION FPCOPT
+export FPC OS_TARGET OS_SOURCE CPU_TARGET CPU_SOURCE FPC_VERSION
 
 
 #####################################################################
 #####################################################################
 # Pre Settings
 # Pre Settings
 #####################################################################
 #####################################################################
 
 
-# Define Unix also for Linux
-ifeq ($(OS_TARGET),linux)
-ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
-override FPCOPT+=-dUNIX
-endif
-endif
-
-ifeq ($(OS_TARGET),freebsd)
-ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
-override FPCOPT+=-dUNIX
-endif
-endif
-
 # Don't export OS_SOURCE because it can change after the first compile
 # Don't export OS_SOURCE because it can change after the first compile
 unexport OS_SOURCE FPC_VERSION
 unexport OS_SOURCE FPC_VERSION
 
 
@@ -167,6 +154,19 @@ endif
 
 
 # Message files
 # Message files
 MSGFILES=$(wildcard error*.msg)
 MSGFILES=$(wildcard error*.msg)
+
+# Define Unix also for Linux
+ifeq ($(OS_TARGET),linux)
+ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
+override LOCALDEF+=-dUNIX
+endif
+endif
+
+ifeq ($(OS_TARGET),freebsd)
+ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
+override LOCALDEF+=-dUNIX
+endif
+endif
 #####################################################################
 #####################################################################
 # FPCDIR Setting
 # FPCDIR Setting
 #####################################################################
 #####################################################################
@@ -288,7 +288,7 @@ endif
 
 
 override LOCALOPT+=$(LOCALDEF)
 override LOCALOPT+=$(LOCALDEF)
 
 
-override FPCOPT+=$(LOCALOPT)
+override FPCOPT:=$(LOCALOPT)
 
 
 #####################################################################
 #####################################################################
 # Shell tools
 # Shell tools

+ 14 - 14
compiler/Makefile.fpc

@@ -24,19 +24,6 @@ toolupx=1
 
 
 
 
 [presettings]
 [presettings]
-# Define Unix also for Linux
-ifeq ($(OS_TARGET),linux)
-ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
-override FPCOPT+=-dUNIX
-endif
-endif
-
-ifeq ($(OS_TARGET),freebsd)
-ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
-override FPCOPT+=-dUNIX
-endif
-endif
-
 # Don't export OS_SOURCE because it can change after the first compile
 # Don't export OS_SOURCE because it can change after the first compile
 unexport OS_SOURCE FPC_VERSION
 unexport OS_SOURCE FPC_VERSION
 
 
@@ -83,6 +70,19 @@ endif
 # Message files
 # Message files
 MSGFILES=$(wildcard error*.msg)
 MSGFILES=$(wildcard error*.msg)
 
 
+# Define Unix also for Linux
+ifeq ($(OS_TARGET),linux)
+ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
+override LOCALDEF+=-dUNIX
+endif
+endif
+
+ifeq ($(OS_TARGET),freebsd)
+ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
+override LOCALDEF+=-dUNIX
+endif
+endif
+
 
 
 [postsettings]
 [postsettings]
 # Default message file
 # Default message file
@@ -99,7 +99,7 @@ endif
 
 
 override LOCALOPT+=$(LOCALDEF)
 override LOCALOPT+=$(LOCALDEF)
 
 
-override FPCOPT+=$(LOCALOPT)
+override FPCOPT:=$(LOCALOPT)
 
 
 
 
 [rules]
 [rules]