浏览代码

* updates

peter 27 年之前
父节点
当前提交
6f386a02a7
共有 5 个文件被更改,包括 101 次插入131 次删除
  1. 91 0
      rtl/template/Makefile
  2. 3 2
      rtl/template/header
  3. 0 73
      rtl/template/makefile
  4. 3 27
      rtl/template/math.inc
  5. 4 29
      rtl/template/strings.pp

+ 91 - 0
rtl/template/Makefile

@@ -0,0 +1,91 @@
+#
+#   $Id$
+#   This file is part of the Free Pascal run time library.
+#   Copyright (c) 1998 by the Free Pascal Development Team
+#
+#   Makefile for the Free Pascal <Template>
+#
+#   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.
+#
+
+#####################################################################
+# Include configuration makefile
+#####################################################################
+
+# Where are the include files ?
+CFG=../cfg
+#INC=../inc
+#PROCINC=../$(CPU)
+#OBJPAS=../objpas
+
+# Get some defaults for Programs and OSes.
+# This will set the following variables :
+# inlinux COPY REPLACE DEL INSTALL INSTALLEXE MKDIR
+# It will also set OPT for cross-compilation, and add required options.
+# also checks for config file.
+# it expects CFG INC PROCINC to be set !!
+include $(CFG)/makefile.cfg
+
+#####################################################################
+# Objects
+#####################################################################
+
+EXEOBJECTS=
+UNITOBJECTS=
+
+#####################################################################
+# Main targets
+#####################################################################
+
+# Create Filenames
+EXEFILES=$(addsuffix $(EXEEXT),$(EXEOBJECTS))
+UNITFILES=$(addsuffix $(PPUEXT),$(UNITOBJECTS))
+UNITOFILES=$(addsuffix $(OEXT),$(UNITOBJECTS))
+
+.PHONY : all clean diffs install diffclean
+
+all : $(EXEFILES) $(UNITFILES)
+
+$(EXEFILES): %$(EXEEXT): %$(PASEXT)
+	$(PP) $(OPT) $* 
+
+$(UNITFILES): %$(PPUEXT): %$(PASEXT)
+	$(PP) $(OPT) $* 
+
+install : all
+ifdef EXEOBJECTS
+	$(MKDIR) $(BININSTALLDIR)
+	$(INSTALLEXE) $(EXEFILES) $(BININSTALLDIR)
+endif
+ifdef UNITOBJECTS
+	$(MKDIR) $(UNITINSTALLDIR)
+	$(INSTALL) $(UNITFILES) $(UNITOFILES) $(UNITINSTALLDIR)
+endif
+
+clean:
+	-$(DEL) *$(OEXT) *$(ASMEXT) *$(PPUEXT) $(PPAS) link.res log
+ifdef EXEOBJECTS
+	-$(DEL) $(EXEFILES)
+endif
+
+#####################################################################
+# Files
+#####################################################################
+
+#####################################################################
+# Default makefile targets
+#####################################################################
+
+include $(CFG)/makefile.def
+
+#
+# $Log$
+# Revision 1.1  1998-09-10 13:55:07  peter
+#   * updates
+#
+#

+ 3 - 2
rtl/template/header

@@ -1,9 +1,10 @@
 {
     $Id$
     This file is part of the Free Pascal run time library.
-    Copyright (c) 1993,97 by xxxx
-    member of the Free Pascal development team
+    Copyright (c) 1998 by the Free Pascal development team
 
+    <What does this file>
+    
     See the file COPYING.FPC, included in this distribution,
     for details about the copyright.
 

+ 0 - 73
rtl/template/makefile

@@ -1,73 +0,0 @@
-#****************************************************************************
-#
-#                   Copyright (c) 1993,96 by Florian Klaempfl
-#
-#****************************************************************************
-#
-# makefile for FPKPascal
-#
-#####################################################################
-# Start of configurable section
-#####################################################################
-
-# Set REFPATH if you want to generate diffs to a standard RTL
-ifndef REFPATH
-REFPATH=/usr/local/fpk/work/new/rtl
-endif
-ifndef DIFF
-DIFF=diff
-endif
-ifndef DIFFOPTS
-DIFFOPTS=-b -c
-endif
-
-
-#######################################################################
-# End of configurable section.
-# Do not edit after this line.
-#######################################################################
-
-# Check copy delete commands.
-# You need cp from GNU to handle / as directory separator
-ifeq ($(DOS),YES)
-COPY=cp -p -f
-DEL=del
-else
-COPY=cp -p -f
-DEL=rm
-endif
-
-
-PASFILES = 
-
-PPFILES = strings.pp
-
-INCFILES = 
-
-.PHONY: clean diffclean diffs
-
-clean:
-	-$(DEL) *.dif
-
-diffclean:
-	-$(DEL) *.dif
-
-
-%.dif : %.inc 
-	-$(DIFF) $(DIFFOPTS) $*.inc $(REFPATH)/template/$*.inc > $*.dif
-
-%.dif : %.pp 
-	-$(DIFF) $(DIFFOPTS) $*.pp $(REFPATH)/template/$*.pp > $*.dif
-
-%.dif : %.pas
-	-$(DIFF) $(DIFFOPTS) $*.pas $(REFPATH)/template/$*.pas > $*.dif
-
-makefile.dif : makefile
-	-$(DIFF) $(DIFFOPTS) makefile $(REFPATH)/template/makefile > makefile.dif
-	
-diffs : $(patsubst %.inc,%.dif,$(INCFILES)) \
-	$(patsubst %.pp,%.dif,$(PPFILES)) \
-	$(patsubst %.pas,%.dif,$(PASFILES)) \
-	makefile.dif
-
-

+ 3 - 27
rtl/template/math.inc

@@ -843,33 +843,9 @@ const sincof : TabCoef = (
      end;
 
 
-
-
-
-
 {
   $Log$
-  Revision 1.1  1998-03-25 11:18:46  root
-  Initial revision
-
-  Revision 1.4  1998/01/26 12:02:04  michael
-  + Added log at the end
-
-
-  
-  Working file: rtl/template/math.inc
-  description:
-  ----------------------------
-  revision 1.3
-  date: 1998/01/05 00:41:29;  author: carl;  state: Exp;  lines: +835 -836
-  * Licence problems fixed
-  ----------------------------
-  revision 1.2
-  date: 1997/12/01 12:45:48;  author: michael;  state: Exp;  lines: +14 -0
-  + added copyright reference in header.
-  ----------------------------
-  revision 1.1
-  date: 1997/11/28 16:48:02;  author: carl;  state: Exp;
-  math.inc template.
-  =============================================================================
+  Revision 1.2  1998-09-10 13:55:09  peter
+    * updates
+
 }

+ 4 - 29
rtl/template/strings.pp

@@ -610,34 +610,9 @@ Implementation
 end.
 {
   $Log$
-  Revision 1.2  1998-07-01 14:29:42  carl
-    * strpas bugfix
+  Revision 1.3  1998-09-10 13:55:10  peter
+    * updates
 
-  Revision 1.1.1.1  1998/03/25 11:18:46  root
-  * Restored version
-
-  Revision 1.4  1998/01/26 12:02:01  michael
-  + Added log at the end
-
-
-  
-  Working file: rtl/template/strings.pp
-  description:
-  ----------------------------
-  revision 1.3
-  date: 1998/01/05 00:41:57;  author: carl;  state: Exp;  lines: +4 -4
-  * Esthetic (spelling mistake) fix
-  ----------------------------
-  revision 1.2
-  date: 1997/12/01 12:45:49;  author: michael;  state: Exp;  lines: +14 -1
-  + added copyright reference in header.
-  ----------------------------
-  revision 1.1
-  date: 1997/11/27 08:33:49;  author: michael;  state: Exp;
-  Initial revision
-  ----------------------------
-  revision 1.1.1.1
-  date: 1997/11/27 08:33:49;  author: michael;  state: Exp;  lines: +0 -0
-  FPC RTL CVS start
-  =============================================================================
+  Revision 1.2  1998/07/01 14:29:42  carl
+    * strpas bugfix
 }