Browse Source

- renamed makefile to Makefile

peter 27 years ago
parent
commit
dccc910509
6 changed files with 93 additions and 111 deletions
  1. 7 0
      rtl/amiga/Makefile
  2. 6 0
      rtl/dos/go32v1/Makefile
  3. 4 1
      rtl/linux/Makefile
  4. 65 109
      rtl/objpas/Makefile
  5. 7 0
      rtl/palmos/Makefile
  6. 4 1
      rtl/win32/Makefile

+ 7 - 0
rtl/amiga/makefile → rtl/amiga/Makefile

@@ -241,3 +241,10 @@ libsclean : clean
 #####################################################################
 #####################################################################
 
 
 include $(CFG)/makefile.def
 include $(CFG)/makefile.def
+
+#
+# $Log$
+# Revision 1.1  1998-09-10 14:15:47  peter
+#   - renamed makefile to Makefile
+#
+#

+ 6 - 0
rtl/dos/go32v1/makefile → rtl/dos/go32v1/Makefile

@@ -293,3 +293,9 @@ diffs: system.dif os.dif makefile.dif prt0.dif
 
 
 distclean : clean libsclean diffclean
 distclean : clean libsclean diffclean
 
 
+#
+# $Log$
+# Revision 1.1  1998-09-10 14:15:48  peter
+#   - renamed makefile to Makefile
+#
+#

+ 4 - 1
rtl/linux/makefile → rtl/linux/Makefile

@@ -332,7 +332,10 @@ include $(CFG)/makefile.def
 
 
 #
 #
 # $Log$
 # $Log$
-# Revision 1.24  1998-09-10 09:10:05  michael
+# Revision 1.1  1998-09-10 14:15:49  peter
+#   - renamed makefile to Makefile
+#
+# Revision 1.24  1998/09/10 09:10:05  michael
 # errors when making libs
 # errors when making libs
 #
 #
 # Revision 1.23  1998/09/07 18:31:53  peter
 # Revision 1.23  1998/09/07 18:31:53  peter

+ 65 - 109
rtl/objpas/Makefile

@@ -1,134 +1,90 @@
-# makes the utilities for FPC
 #
 #
-# Copyright (c) 1996 by Michael Van Canneyt
+#   $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 Objpas RTL
+#
+#   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.
+#
 
 
 #####################################################################
 #####################################################################
-# Start of configurable section.
-# Please note that all these must be set in the main makefile, and
-# should be set there.
-# Don't remove the indef statements. They serve to avoid conflicts
-# with the main makefile.
+# Include configuration makefile
 #####################################################################
 #####################################################################
 
 
-# where are the units ?
-ifndef UNITDIR
-UNITDIR=../linux
-endif
-
-# set the directory where to install the units.
-ifndef UNITINSTALLDIR
-UNITINSTALLDIR=/usr/lib/ppc/0.99.0/objpas
-endif
-
-# What is the Operating System ?
-ifndef OS_SRC
-OS_SRC=linux
-endif
-
-# What is the target processor :
-ifndef CPU
-CPU=i386
-#CPU=m68k
-endif
-
-# What compiler to use ?
-ifndef PP
-PP=ppc386
-endif
+# Where are the include files ?
+CFG=../cfg
+INC=../inc
+PROCINC=../$(CPU)
 
 
-# What options to pass to the compiler ?
-# You may want to specify a config file or error definitions file here.
-ifndef OPT
-OPT=
-endif
+# 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
 
 
 #####################################################################
 #####################################################################
-# End of configurable section.
-# Do not edit after this line.
+# Objects
 #####################################################################
 #####################################################################
 
 
-# Where are the include files ?
-INC=../inc
-PROCINC=../$(CPU)
+EXEOBJECTS=
+UNITOBJECTS=objpas sysutils math
 
 
-# add required options...
-override OPT:= $(OPT) -d$(CPU)
+#####################################################################
+# Main targets
+#####################################################################
 
 
-# Add unitdir
-ifdef UNITDIR
-override OPT:=$(OPT) -Up$(UNITDIR)
-endif
+# Create Filenames
+EXEFILES=$(addsuffix $(EXEEXT),$(EXEOBJECTS))
+UNITFILES=$(addsuffix $(PPUEXT),$(UNITOBJECTS))
+UNITOFILES=$(addsuffix $(OEXT),$(UNITOBJECTS))
 
 
-# To copy pograms
-ifndef COPY
-ifeq ($(DOS),YES)
-COPY=copy
-else
-COPY=cp -p
-endif
-endif
+.PHONY : all clean diffs install diffclean
 
 
-# Check delete program
-ifndef DEL
-ifeq ($(DOS),YES)
-DEL=del
-else
-DEL=rm -f
-endif
-endif
+all : $(EXEFILES) $(UNITFILES)
 
 
-# To install programs
-ifndef INSTALL
-ifeq ($(DOS),YES)
-INSTALL=copy
-else
-INSTALL=install
-endif
-endif
+$(EXEFILES): %$(EXEEXT): %$(PASEXT)
+	$(PP) $(OPT) $* 
 
 
-# To make a directory.
-ifndef MKDIR
-ifeq ($(DOS),YES)
-MKDIR=mkdir
-else
-MKDIR=install -m 755 -d
-endif
-endif
+$(UNITFILES): %$(PPUEXT): %$(PASEXT)
+	$(PP) $(OPT) $* 
 
 
-# diff program
-ifndef REFPATH
-REFPATH=/usr/local/fpk/work/new/rtl
-endif
-ifndef DIFF
-DIFF=diff
+install : all
+ifdef EXEOBJECTS
+	$(MKDIR) $(BININSTALLDIR)
+	$(INSTALLEXE) $(EXEFILES) $(BININSTALLDIR)
 endif
 endif
-ifndef DIFFOPTS
-DIFFOPTS=-b -c
+ifdef UNITOBJECTS
+	$(MKDIR) $(UNITINSTALLDIR)
+	$(INSTALL) $(UNITFILES) $(UNITOFILES) $(UNITINSTALLDIR)
 endif
 endif
 
 
-# Was a config file specified ?
-ifdef CFGFILE
-override OPT:=$(OPT) @$(CONFIG)
+clean:
+	-$(DEL) *$(OEXT) *$(ASMEXT) *$(PPUEXT) $(PPAS) link.res log
+ifdef EXEOBJECTS
+	-$(DEL) $(EXEFILES)
 endif
 endif
 
 
-# determine needed extensions.
-PPUEXT=.ppu
-OEXT=.o
-
-# Targets
-UNITOBJECTS=math.ppu sysutils.ppu
-
-.PHONY : all clean diffs install diffclean
-
-all : $(UNITOBJECTS)
-
-$(UNITOBJECTS): %.ppu: %.pp
-	$(PP) $(OPT) $* 
+#####################################################################
+# Files
+#####################################################################
 
 
-install : all
-	$(INSTALL) -m 755 $(UNITOBJECTS) $(UNITINSTALLDIR)
+#####################################################################
+# Default makefile targets
+#####################################################################
 
 
-clean:
-	-$(DEL) *.o *.s *.ppu
-	-$(DEL) $(UNITOBJECTS)
+include $(CFG)/makefile.def
 
 
+#
+# $Log$
+# Revision 1.2  1998-09-10 14:15:50  peter
+#   - renamed makefile to Makefile
+#
+#

+ 7 - 0
rtl/palmos/makefile → rtl/palmos/Makefile

@@ -242,3 +242,10 @@ libsclean : clean
 #####################################################################
 #####################################################################
 
 
 include $(CFG)/makefile.def
 include $(CFG)/makefile.def
+
+#
+# $Log$
+# Revision 1.1  1998-09-10 14:15:51  peter
+#   - renamed makefile to Makefile
+#
+#

+ 4 - 1
rtl/win32/makefile → rtl/win32/Makefile

@@ -375,7 +375,10 @@ include $(CFG)/makefile.def
 
 
 #
 #
 # $Log$
 # $Log$
-# Revision 1.13  1998-09-07 18:31:54  peter
+# Revision 1.1  1998-09-10 14:15:55  peter
+#   - renamed makefile to Makefile
+#
+# Revision 1.13  1998/09/07 18:31:54  peter
 #   * fixed $smartlibext -> $staticlibext to fix a 'rm *' :(
 #   * fixed $smartlibext -> $staticlibext to fix a 'rm *' :(
 #
 #
 # Revision 1.12  1998/09/04 17:17:36  pierre
 # Revision 1.12  1998/09/04 17:17:36  pierre