+ Added varutils.pp

This commit is contained in:
michael 2000-08-30 08:56:54 +00:00
parent 5b9fdab764
commit bedfa85da5
3 changed files with 98 additions and 96 deletions

View File

@ -1,5 +1,5 @@
# #
# Makefile generated by fpcmake v1.00 [2000/08/14] # Makefile generated by fpcmake v0.99.13 [2000/03/28]
# #
defaultrule: all defaultrule: all
@ -193,7 +193,7 @@ endif
# Targets # Targets
override LOADEROBJECTS+=prt0 prt1 code2 code3 override LOADEROBJECTS+=prt0 prt1 code2 code3
override UNITOBJECTS+=$(SYSTEMUNIT) objpas strings ports os2def doscalls moncalls kbdcalls moucalls viocalls pmbitmap pmwin pmgpi dive pmerr dos crt objects printer sysutils math typinfo ucomplex cpu mmx getopts heaptrc lineinfo override UNITOBJECTS+=$(SYSTEMUNIT) objpas strings ports os2def doscalls moncalls kbdcalls moucalls viocalls pmbitmap pmwin pmgpi dive pmerr dos crt objects printer sysutils math typinfo ucomplex cpu mmx getopts heaptrc lineinfo varutils
override RSTOBJECTS+=math override RSTOBJECTS+=math
# Clean # Clean
@ -594,19 +594,6 @@ DOCINSTALLDIR=$(BASEINSTALLDIR)/doc
endif endif
endif endif
# Where to install the examples, under linux we use the doc dir
# because the copytree command will create a subdir itself
ifndef EXAMPLEINSTALLDIR
ifdef inlinux
EXAMPLEINSTALLDIR=$(DOCINSTALLDIR)/examples
else
EXAMPLEINSTALLDIR=$(BASEINSTALLDIR)/examples
endif
ifdef EXAMPLESUBDIR
EXAMPLEINSTALLDIR:=$(EXAMPLEINSTALLDIR)/$(EXAMPLESUBDIR)
endif
endif
# Where the some extra (data)files will be stored # Where the some extra (data)files will be stored
ifndef DATAINSTALLDIR ifndef DATAINSTALLDIR
DATAINSTALLDIR=$(BASEINSTALLDIR) DATAINSTALLDIR=$(BASEINSTALLDIR)
@ -642,28 +629,28 @@ ifneq ($(OS_TARGET),$(OS_SOURCE))
override FPCOPT+=-T$(OS_TARGET) override FPCOPT+=-T$(OS_TARGET)
endif endif
# User dirs should be first, so they are looked at first ifdef UNITSDIR
ifdef UNITDIR override FPCOPT+=-Fu$(UNITSDIR)
override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
endif endif
ifdef LIBDIR
override FPCOPT+=$(addprefix -Fl,$(LIBDIR)) ifdef NEEDINCDIR
override FPCOPT+=$(addprefix -Fi,$(NEEDINCDIR))
endif endif
ifdef OBJDIR
override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
endif # Target dirs
ifdef INCDIR ifdef TARGETDIR
override FPCOPT+=$(addprefix -Fi,$(INCDIR)) override FPCOPT+=-FE$(TARGETDIR)
endif endif
# Smartlinking # Smartlinking
ifdef LINKSMART ifdef LINKSMART
override FPCOPT+=-XX override FPCOPT+=-CX
endif endif
# Smartlinking creation # Smartlinking
ifdef CREATESMART ifdef CREATESMART
override FPCOPT+=-CX override FPCOPT+=-XX
endif endif
# Debug # Debug
@ -696,24 +683,22 @@ ifdef VERBOSE
override FPCOPT+=-vwni override FPCOPT+=-vwni
endif endif
ifdef UNITSDIR # Add commandline options
override FPCOPT+=-Fu$(UNITSDIR)
endif
ifdef NEEDINCDIR
override FPCOPT+=$(addprefix -Fi,$(NEEDINCDIR))
endif
# Target dirs
ifdef TARGETDIR
override FPCOPT+=-FE$(TARGETDIR)
endif
# Add commandline options last so they can override
ifdef OPT ifdef OPT
override FPCOPT+=$(OPT) override FPCOPT+=$(OPT)
endif endif
ifdef UNITDIR
override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
endif
ifdef LIBDIR
override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
endif
ifdef OBJDIR
override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
endif
ifdef INCDIR
override FPCOPT+=$(addprefix -Fi,$(INCDIR))
endif
# Add defines from FPCOPTDEF to FPCOPT # Add defines from FPCOPTDEF to FPCOPT
ifdef FPCOPTDEF ifdef FPCOPTDEF
@ -765,14 +750,10 @@ install: fpc_install
sourceinstall: fpc_sourceinstall sourceinstall: fpc_sourceinstall
exampleinstall: fpc_exampleinstall
zipinstall: fpc_zipinstall zipinstall: fpc_zipinstall
zipsourceinstall: fpc_zipsourceinstall zipsourceinstall: fpc_zipsourceinstall
zipexampleinstall: fpc_zipexampleinstall
clean: fpc_clean clean: fpc_clean
distclean: fpc_distclean distclean: fpc_distclean
@ -781,7 +762,7 @@ cleanall: fpc_cleanall
info: fpc_info info: fpc_info
.PHONY: all debug smart shared showinstall install sourceinstall exampleinstall zipinstall zipsourceinstall zipexampleinstall clean distclean cleanall info .PHONY: all debug smart shared showinstall install sourceinstall zipinstall zipsourceinstall clean distclean cleanall info
##################################################################### #####################################################################
# Loaders # Loaders
@ -829,11 +810,9 @@ fpc_units: $(UNITPPUFILES)
# Resource strings # Resource strings
##################################################################### #####################################################################
ifdef RSTOBJECTS
override RSTFILES=$(addsuffix $(RSTEXT),$(RSTOBJECTS)) override RSTFILES=$(addsuffix $(RSTEXT),$(RSTOBJECTS))
override CLEANRSTFILES+=$(RSTFILES) override CLEANRSTFILES+=$(RSTFILES)
endif
##################################################################### #####################################################################
# General compile rules # General compile rules
@ -877,12 +856,6 @@ fpc_debug:
.PHONY: fpc_smart fpc_shared .PHONY: fpc_smart fpc_shared
ifdef LIBVERSION
LIBFULLNAME=$(LIBNAME).$(LIBVERSION)
else
LIBFULLNAME=$(LIBNAME)
endif
# Default sharedlib units are all unit objects # Default sharedlib units are all unit objects
ifndef SHAREDLIBUNITOBJECTS ifndef SHAREDLIBUNITOBJECTS
SHAREDLIBUNITOBJECTS:=$(UNITOBJECTS) SHAREDLIBUNITOBJECTS:=$(UNITOBJECTS)
@ -896,7 +869,7 @@ ifdef inlinux
ifndef LIBNAME ifndef LIBNAME
@$(ECHO) "LIBNAME not set" @$(ECHO) "LIBNAME not set"
else else
$(PPUMOVE) $(SHAREDLIBUNITOBJECTS) -o$(LIBFULLNAME) $(PPUMOVE) $(SHAREDLIBUNITOBJECTS) -o$(LIBNAME)
endif endif
else else
@$(ECHO) "Shared Libraries not supported" @$(ECHO) "Shared Libraries not supported"
@ -914,9 +887,14 @@ endif
ifdef INSTALLPPUFILES ifdef INSTALLPPUFILES
ifdef PPUFILES ifdef PPUFILES
ifdef inlinux
INSTALLPPULINKFILES:=$(shell $(PPUFILES) -S -O $(INSTALLPPUFILES)) INSTALLPPULINKFILES:=$(shell $(PPUFILES) -S -O $(INSTALLPPUFILES))
INSTALLPPULIBFILES:=$(shell $(PPUFILES) -L $(INSTALLPPUFILES))
else else
INSTALLPPULINKFILES:=$(wildcard $(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(LIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))) INSTALLPPULINKFILES:=$(shell $(PPUFILES) $(INSTALLPPUFILES))
endif
else
INSTALLPPULINKFILES:=$(wildcard $(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)))
endif endif
endif endif
@ -929,11 +907,8 @@ ifdef INSTALLPPUFILES
ifneq ($(INSTALLPPULINKFILES),) ifneq ($(INSTALLPPULINKFILES),)
@$(ECHO) -e $(addprefix "\n"$(UNITINSTALLDIR)/,$(INSTALLPPULINKFILES)) @$(ECHO) -e $(addprefix "\n"$(UNITINSTALLDIR)/,$(INSTALLPPULINKFILES))
endif endif
ifneq ($(wildcard $(LIBFULLNAME)),) ifneq ($(INSTALLPPULIBFILES),)
@$(ECHO) $(LIBINSTALLDIR)/$(LIBFULLNAME) @$(ECHO) -e $(addprefix "\n"$(LIBINSTALLDIR)/,$(INSTALLPPULIBFILES))
ifdef inlinux
@$(ECHO) $(LIBINSTALLDIR)/$(LIBNAME)
endif
endif endif
endif endif
ifdef EXTRAINSTALLFILES ifdef EXTRAINSTALLFILES
@ -956,12 +931,9 @@ ifdef INSTALLPPUFILES
ifneq ($(INSTALLPPULINKFILES),) ifneq ($(INSTALLPPULINKFILES),)
$(INSTALL) $(INSTALLPPULINKFILES) $(UNITINSTALLDIR) $(INSTALL) $(INSTALLPPULINKFILES) $(UNITINSTALLDIR)
endif endif
ifneq ($(wildcard $(LIBFULLNAME)),) ifneq ($(INSTALLPPULIBFILES),)
$(MKDIR) $(LIBINSTALLDIR) $(MKDIR) $(LIBINSTALLDIR)
$(INSTALL) $(LIBFULLNAME) $(LIBINSTALLDIR) $(INSTALL) $(INSTALLPPULIBFILES) $(LIBINSTALLDIR)
ifdef inlinux
ln -sf $(LIBFULLNAME) $(LIBINSTALLDIR)/$(LIBNAME)
endif
endif endif
endif endif
ifdef EXTRAINSTALLFILES ifdef EXTRAINSTALLFILES
@ -983,24 +955,6 @@ fpc_sourceinstall: clean
$(MKDIR) $(SOURCEINSTALLDIR) $(MKDIR) $(SOURCEINSTALLDIR)
$(COPYTREE) $(SOURCETOPDIR) $(SOURCEINSTALLDIR) $(COPYTREE) $(SOURCETOPDIR) $(SOURCEINSTALLDIR)
#####################################################################
# exampleinstall rules
#####################################################################
.PHONY: fpc_exampleinstall
fpc_exampleinstall: $(addsuffix _clean,$(EXAMPLEDIROBJECTS))
ifdef EXAMPLESOURCEFILES
$(MKDIR) $(EXAMPLEINSTALLDIR)
$(COPY) $(EXAMPLESOURCEFILES) $(EXAMPLEINSTALLDIR)
endif
ifdef EXAMPLEDIROBJECTS
ifndef EXAMPLESOURCEFILES
$(MKDIR) $(EXAMPLEINSTALLDIR)
endif
$(COPYTREE) $(addsuffix /*,$(EXAMPLEDIROBJECTS)) $(EXAMPLEINSTALLDIR)
endif
##################################################################### #####################################################################
# Zip # Zip
##################################################################### #####################################################################
@ -1062,11 +1016,6 @@ endif
fpc_zipsourceinstall: fpc_zipsourceinstall:
$(MAKE) fpc_zipinstall ZIPTARGET=sourceinstall PACKAGESUFFIX=src $(MAKE) fpc_zipinstall ZIPTARGET=sourceinstall PACKAGESUFFIX=src
.PHONY: fpc_zipexampleinstall
fpc_zipexampleinstall:
$(MAKE) fpc_zipinstall ZIPTARGET=exampleinstall PACKAGESUFFIX=exm
##################################################################### #####################################################################
# Clean rules # Clean rules
##################################################################### #####################################################################
@ -1081,7 +1030,7 @@ ifdef CLEANPPUFILES
ifdef PPUFILES ifdef PPUFILES
CLEANPPULINKFILES:=$(shell $(PPUFILES) $(CLEANPPUFILES)) CLEANPPULINKFILES:=$(shell $(PPUFILES) $(CLEANPPUFILES))
else else
CLEANPPULINKFILES:=$(wildcard $(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(LIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))) CLEANPPULINKFILES:=$(wildcard $(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)))
endif endif
endif endif
@ -1100,9 +1049,6 @@ ifdef CLEANRSTFILES
endif endif
ifdef EXTRACLEANFILES ifdef EXTRACLEANFILES
-$(DEL) $(EXTRACLEANFILES) -$(DEL) $(EXTRACLEANFILES)
endif
ifdef LIBNAME
-$(DEL) $(LIBNAME) $(LIBFULLNAME)
endif endif
-$(DEL) $(FPCMADE) $(PPAS) link.res $(FPCEXTFILE) $(REDIRFILE) -$(DEL) $(FPCMADE) $(PPAS) link.res $(FPCEXTFILE) $(REDIRFILE)
@ -1270,6 +1216,10 @@ typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT) math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
$(COMPILER) $(OBJPASDIR)/math.pp $(REDIR) $(COMPILER) $(OBJPASDIR)/math.pp $(REDIR)
varutils$(PPUEXT) : $(OBJPASDIR)/cvarutil.inc $(OBJPASDIR)/varutils.inc \
$(OBJPASDIR)/varutilh.inc varutils.pp
$(COMPILER) -I$(OBJPASDIR) varutils.pp $(REDIR)
# #
# Other system-independent RTL Units # Other system-independent RTL Units
# #

View File

@ -9,7 +9,7 @@ units=$(SYSTEMUNIT) objpas strings \
pmbitmap pmwin pmgpi dive pmerr \ pmbitmap pmwin pmgpi dive pmerr \
dos crt objects printer \ dos crt objects printer \
sysutils math typinfo \ sysutils math typinfo \
ucomplex cpu mmx getopts heaptrc lineinfo ucomplex cpu mmx getopts heaptrc lineinfo varutils
rst=math rst=math
[require] [require]
@ -143,6 +143,10 @@ typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT) math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
$(COMPILER) $(OBJPASDIR)/math.pp $(REDIR) $(COMPILER) $(OBJPASDIR)/math.pp $(REDIR)
varutils$(PPUEXT) : $(OBJPASDIR)/cvarutil.inc $(OBJPASDIR)/varutils.inc \
$(OBJPASDIR)/varutilh.inc varutils.pp
$(COMPILER) -I$(OBJPASDIR) varutils.pp $(REDIR)
# #
# Other system-independent RTL Units # Other system-independent RTL Units
# #

48
rtl/os2/varutils.pp Normal file
View File

@ -0,0 +1,48 @@
{
$Id$
This file is part of the Free Pascal run time library.
Copyright (c) 1999-2000 by the Free Pascal development team
Interface and OS-dependent part of variant support
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
{$MODE ObjFPC}
Unit varutils;
Interface
Uses sysutils;
// Read definitions.
{$i varutilh.inc}
Implementation
// Code common to all platforms.
{$i cvarutil.inc}
// Code common to non-win32 platforms.
{$i varutils.inc}
end.
{
$Log$
Revision 1.1 2000-08-30 08:56:54 michael
+ Added varutils.pp
}