Browse Source

* updates to generate the installer

peter 26 years ago
parent
commit
b3368229a9
2 changed files with 227 additions and 225 deletions
  1. 218 219
      install/Makefile
  2. 9 6
      install/fpinst/Makefile

+ 218 - 219
install/Makefile

@@ -1,220 +1,219 @@
-#
-#   $Id$
-#   This file is part of the Free Pascal run time library.
-#   Copyright (c) 1996-98 by Michael van Canneyt
-#
-#   Makefile for the Free Pascal Installation Helpers
-#
-#   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.
-#
-
-#####################################################################
-# Defaults
-#####################################################################
-
-# Default place of the makefile.fpc
-DEFAULTFPCDIR=..
-
-# Test dir if none specified
-ifndef BASEINSTALLDIR
-BASEINSTALLDIR=/pptest
-endif
-
-
-#####################################################################
-# Real targets
-#####################################################################
-
-UNITOBJECTS=
-EXEOBJECTS=
-
-
-#####################################################################
-# Common targets
-#####################################################################
-
-all:
-	@echo
-	@echo Possible targets are:
-	@echo
-	@echo basego32, basego32.zip
-	@echo basew32,	basew32.zip
-	@echo
-	@exit
-
-
-#####################################################################
-# Include default makefile
-#####################################################################
-
-# test if FPCMAKE is still valid
-ifdef FPCMAKE
-ifeq ($(strip $(wildcard $(FPCMAKE))),)
-FPCDIR=
-FPCMAKE=
-endif
-endif
-
-ifndef FPCDIR
-ifdef DEFAULTFPCDIR
-FPCDIR=$(DEFAULTFPCDIR)
-endif
-endif
-
-ifndef FPCMAKE
-ifdef FPCDIR
-FPCMAKE=$(FPCDIR)/makefile.fpc
-else
-FPCMAKE=makefile.fpc
-endif
-endif
-
-override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
-ifeq ($(FPCMAKE),)
-testfpcmake:
-	@echo makefile.fpc not found!
-	@echo Check the FPCMAKE and FPCDIR environment variables.
-	@exit
-else
-include $(FPCMAKE)
-testfpcmake:
-endif
-
-
-#####################################################################
-# Dependencies
-#####################################################################
-
-# Directory to the base of the CVS tree
-CVSBASE=..
-CFG=$(CVSBASE)/rtl/cfg
-
-# Temporary path to pack a file
-PACKDIR=$(subst \,/,$(TMP))/pp_tmp
-
-# Use new ppc386
-PPNEW=$(BASEDIR)/$(CVSBASE)/compiler/ppc386.exe
-
-# Test dir if none specified
-ifndef PACKAGEDIR
-PACKAGEDIR=$(BASEDIR)
-endif
-
-
-##########################################################################
-# Default target
-##########################################################################
-
-.PHONY: all clean basego32 basew32
-
-clean:
-	-$(DEL) *.tpu install.exe install.dat
-
-##########################################################################
-# Install
-##########################################################################
-
-install.exe: install.pas
-	$(TPC) install.pas
-ifdef UPX
-	-$(UPX) install.exe
-endif
-
-installgo32: install.exe
-	$(MKDIR) $(PACKAGEDIR)
-	$(COPY) install.dos install.dat
-	$(COPY) install.exe install.dat $(PACKAGEDIR)
-	$(COPY) readme.txt whatsnew.txt $(PACKAGEDIR)
-
-installw32: install.exe
-	$(MKDIR) $(PACKAGEDIR)
-	$(COPY) install.w32 install.dat
-	$(COPY) install.exe install.dat $(PACKAGEDIR)
-	$(COPY) readme.txt whatsnew.txt $(PACKAGEDIR)
-
-
-##########################################################################
-# Basego32.zip
-##########################################################################
-
-basego32:
-# create dirs
-	$(MKDIR) $(BASEINSTALLDIR)
-	$(MKDIR) $(DOCINSTALLDIR)
-	$(MKDIR) $(BININSTALLDIR)
-	$(MKDIR) $(SOURCEINSTALLDIR)
-# readme & whatsnew
-	$(COPY) readme.txt whatsnew.txt $(BASEINSTALLDIR)
-# docs
-	$(COPY) doc/* $(DOCINSTALLDIR)
-# bingo32 (cwsdpmi,wmemu387.dxe)
-	$(COPY) bingo32/* $(BININSTALLDIR)
-# source (base)
-	$(COPY) $(CVSBASE)/base/Makefile $(CVSBASE)/base/makefile.fpc $(SOURCEINSTALLDIR)
-# compiler
-	make -C $(CVSBASE)/compiler cycle OS_TARGET=go32v2 RELEASE=1
-	make -C $(CVSBASE)/compiler install OS_TARGET=go32v2
-# rtl go32v2
-	make -C $(CVSBASE)/rtl/go32v2 clean OS_TARGET=go32v2
-	make -C $(CVSBASE)/rtl/go32v2 install OS_TARGET=go32v2 RELEASE=1 PP=$(PPNEW)
-# rtl go32v2 libs
-	make -C $(CVSBASE)/rtl/go32v2 clean OS_TARGET=go32v2
-	make -C $(CVSBASE)/rtl/go32v2 libinstall OS_TARGET=go32v2 RELEASE=1 PP=$(PPNEW)
-# utils
-	make -C $(CVSBASE)/rtl/utils clean OS_TARGET=go32v2
-	make -C $(CVSBASE)/rtl/utils install OS_TARGET=go32v2 RELEASE=1 PP=$(PPNEW)
-
-basego32.zip:
-	make basego32 BASEINSTALLDIR=$(PACKDIR)
-	cd $(PACKDIR) ; $(ZIPPROG) $(PACKAGEDIR)/basego32.zip * ; cd $(BASEDIR)
-	$(DELTREE) $(PACKDIR)
-
-
-##########################################################################
-# basew32.zip
-##########################################################################
-
-basew32:
-# readme.txt & whatsnew.txt
-	$(MKDIR) $(BASEINSTALLDIR)
-	$(COPY) readme.txt whatsnew.txt $(BASEINSTALLDIR)
-# docs
-	$(MKDIR) $(DOCINSTALLDIR)
-	$(COPY) doc/* $(DOCINSTALLDIR)
-# compiler, the - is necessary because the files sometimes differ
-	-make -C $(CVSBASE)/compiler cycle OS_TARGET=win32 RELEASE=1
-	make -C $(CVSBASE)/compiler install OS_TARGET=win32
-# rtl
-	make -C $(CVSBASE)/rtl/win32 clean OS_TARGET=win32
-	make -C $(CVSBASE)/rtl/win32 install OS_TARGET=win32 RELEASE=1 PP=$(PPNEW)
-# rtl libs
-	make -C $(CVSBASE)/rtl/win32 clean OS_TARGET=win32
-	make -C $(CVSBASE)/rtl/win32 libinstall OS_TARGET=win32 RELEASE=1 PP=$(PPNEW)
-# utils
-	make -C $(CVSBASE)/rtl/utils clean OS_TARGET=win32
-	make -C $(CVSBASE)/rtl/utils install OS_TARGET=win32 RELEASE=1 PP=$(PPNEW)
-
-basew32.zip:
-	make basew32 BASEINSTALLDIR=$(PACKDIR)
-	$(MKDIR) $(PACKAGEDIR)
-# Maybe you need 4dos for it, becuase unix paths with / are used
-	cd $(PACKDIR)
-	$(ZIP) $(PACKAGEDIR)/basew32.zip *
-	cd $(BASEDIR)
-	$(DELTREE) $(PACKDIR)
-
-
-#
+#
+#   $Id$
+#   This file is part of the Free Pascal run time library.
+#   Copyright (c) 1996-98 by Michael van Canneyt
+#
+#   Makefile for the Free Pascal Installation Helpers
+#
+#   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.
+#
+
+#####################################################################
+# Defaults
+#####################################################################
+
+# Default place of the makefile.fpc
+DEFAULTFPCDIR=..
+
+# Test dir if none specified
+ifndef BASEINSTALLDIR
+BASEINSTALLDIR=/pptest
+endif
+
+
+#####################################################################
+# Real targets
+#####################################################################
+
+UNITOBJECTS=
+EXEOBJECTS=
+
+
+#####################################################################
+# Common targets
+#####################################################################
+
+all:
+	@echo
+	@echo Possible targets are:
+	@echo
+	@echo basego32, basego32.zip
+	@echo basew32,	basew32.zip
+	@echo
+	@exit
+
+
+#####################################################################
+# Include default makefile
+#####################################################################
+
+# test if FPCMAKE is still valid
+ifdef FPCMAKE
+ifeq ($(strip $(wildcard $(FPCMAKE))),)
+FPCDIR=
+FPCMAKE=
+endif
+endif
+
+ifndef FPCDIR
+ifdef DEFAULTFPCDIR
+FPCDIR=$(DEFAULTFPCDIR)
+endif
+endif
+
+ifndef FPCMAKE
+ifdef FPCDIR
+FPCMAKE=$(FPCDIR)/makefile.fpc
+else
+FPCMAKE=makefile.fpc
+endif
+endif
+
+override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
+ifeq ($(FPCMAKE),)
+testfpcmake:
+	@echo makefile.fpc not found!
+	@echo Check the FPCMAKE and FPCDIR environment variables.
+	@exit
+else
+include $(FPCMAKE)
+testfpcmake:
+endif
+
+
+#####################################################################
+# Dependencies
+#####################################################################
+
+# Directory to the base of the CVS tree
+CVSBASE=..
+CFG=$(CVSBASE)/rtl/cfg
+
+# Temporary path to pack a file
+PACKDIR=$(subst \,/,$(TMP))/pp_tmp
+
+# Use new ppc386
+PPNEW=$(BASEDIR)/$(CVSBASE)/compiler/ppc386.exe
+
+# Test dir if none specified
+ifndef PACKAGEDIR
+PACKAGEDIR=$(BASEDIR)
+endif
+
+
+##########################################################################
+# Default target
+##########################################################################
+
+.PHONY: all clean basego32 basew32
+
+clean:
+	-$(DEL) *.tpu install.exe install.dat
+
+##########################################################################
+# Install
+##########################################################################
+
+installer:
+	$(MAKE) -C $(CVSBASE)/rtl/go32v2 all RELEASE=1
+	$(MAKE) -C $(CVSBASE)/api all RELEASE=1
+	$(MAKE) -C $(CVSBASE)/fv all RELEASE=1
+	$(MAKE) -C fpinst all RELEASE=1
+
+
+##########################################################################
+# Basego32.zip
+##########################################################################
+
+basego32:
+# create dirs
+	$(MKDIR) $(BASEINSTALLDIR)
+	$(MKDIR) $(DOCINSTALLDIR)
+	$(MKDIR) $(BININSTALLDIR)
+	$(MKDIR) $(SOURCEINSTALLDIR)
+# readme & whatsnew
+	$(COPY) readme.txt whatsnew.txt $(BASEINSTALLDIR)
+# docs
+	$(COPY) doc/* $(DOCINSTALLDIR)
+# bingo32 (cwsdpmi,wmemu387.dxe)
+	$(COPY) bingo32/* $(BININSTALLDIR)
+# source (base)
+	$(COPY) $(CVSBASE)/base/Makefile $(CVSBASE)/base/makefile.fpc $(SOURCEINSTALLDIR)
+# compiler
+	make -C $(CVSBASE)/compiler cycle OS_TARGET=go32v2 RELEASE=1
+	make -C $(CVSBASE)/compiler install OS_TARGET=go32v2
+# rtl go32v2
+	make -C $(CVSBASE)/rtl/go32v2 clean OS_TARGET=go32v2
+	make -C $(CVSBASE)/rtl/go32v2 install OS_TARGET=go32v2 RELEASE=1 PP=$(PPNEW)
+# rtl go32v2 libs
+	make -C $(CVSBASE)/rtl/go32v2 clean OS_TARGET=go32v2
+	make -C $(CVSBASE)/rtl/go32v2 libinstall OS_TARGET=go32v2 RELEASE=1 PP=$(PPNEW)
+# utils
+	make -C $(CVSBASE)/utils clean OS_TARGET=go32v2
+	make -C $(CVSBASE)/utils install OS_TARGET=go32v2 RELEASE=1 PP=$(PPNEW)
+
+basego32.zip:
+	make basego32 BASEINSTALLDIR=$(PACKDIR)
+	cd $(PACKDIR) ; $(ZIPPROG) $(PACKAGEDIR)/basego32.zip * ; cd $(BASEDIR)
+	$(DELTREE) $(PACKDIR)
+
+
+##########################################################################
+# basew32.zip
+##########################################################################
+
+basew32:
+# create dirs
+	$(MKDIR) $(BASEINSTALLDIR)
+	$(MKDIR) $(DOCINSTALLDIR)
+	$(MKDIR) $(BININSTALLDIR)
+	$(MKDIR) $(SOURCEINSTALLDIR)
+# readme & whatsnew
+	$(COPY) readme.txt whatsnew.txt $(BASEINSTALLDIR)
+# docs
+	$(COPY) doc/* $(DOCINSTALLDIR)
+# source (base)
+	$(COPY) $(CVSBASE)/base/Makefile $(CVSBASE)/base/makefile.fpc $(SOURCEINSTALLDIR)
+# readme.txt & whatsnew.txt
+	$(MKDIR) $(BASEINSTALLDIR)
+	$(COPY) readme.txt whatsnew.txt $(BASEINSTALLDIR)
+# compiler, the - is necessary because the files sometimes differ
+	-make -C $(CVSBASE)/compiler cycle OS_TARGET=win32 RELEASE=1
+	make -C $(CVSBASE)/compiler install OS_TARGET=win32
+# rtl
+	make -C $(CVSBASE)/rtl/win32 clean OS_TARGET=win32
+	make -C $(CVSBASE)/rtl/win32 install OS_TARGET=win32 RELEASE=1 PP=$(PPNEW)
+# rtl libs
+	make -C $(CVSBASE)/rtl/win32 clean OS_TARGET=win32
+	make -C $(CVSBASE)/rtl/win32 libinstall OS_TARGET=win32 RELEASE=1 PP=$(PPNEW)
+# utils
+	make -C $(CVSBASE)/utils clean OS_TARGET=win32
+	make -C $(CVSBASE)/utils install OS_TARGET=win32 RELEASE=1 PP=$(PPNEW)
+
+basew32.zip:
+	make basew32 BASEINSTALLDIR=$(PACKDIR)
+	$(MKDIR) $(PACKAGEDIR)
+# Maybe you need 4dos for it, becuase unix paths with / are used
+	cd $(PACKDIR)
+	$(ZIPPROG) $(PACKAGEDIR)/basew32.zip *
+	cd $(BASEDIR)
+	$(DELTREE) $(PACKDIR)
+
+
+#
 # $Log$
-# Revision 1.2  1999-05-03 18:04:37  peter
-#   * updates
-#
-# Revision 1.1	1998/09/16 16:46:36  peter
-#   + updates
-#
-#
+# Revision 1.3  1999-05-30 11:34:33  peter
+#   * updates to generate the installer
+#
+# Revision 1.2	1999/05/03 18:04:37  peter
+#   * updates
+#
+# Revision 1.1	1998/09/16 16:46:36  peter
+#   + updates
+#
+#

+ 9 - 6
install/fpinst/Makefile

@@ -18,9 +18,9 @@
 #####################################################################
 
 # Default place of the makefile.fpc
-DEFAULTFPCDIR=..
+DEFAULTFPCDIR=../..
 
-NEEDUNITDIR=../api ../fv
+NEEDUNITDIR=../../api ../../fv
 
 
 #####################################################################
@@ -39,11 +39,11 @@ EXEOBJECTS=install
 	staticlib sharedlib libsclean \
 	staticinstall sharedinstall libinstall \
 
-all: testfpcmake fpc_all h2pas_all
+all: testfpcmake fpc_all
 
-clean: testfpcmake fpc_clean h2pas_clean
+clean: testfpcmake fpc_clean
 
-install: testfpcmake fpc_install h2pas_install
+install: testfpcmake fpc_install
 
 info: testfpcmake fpc_info
 
@@ -104,7 +104,10 @@ endif
 
 #
 # $Log$
-# Revision 1.3  1999-05-02 14:27:39  peter
+# Revision 1.4  1999-05-30 11:34:34  peter
+#   * updates to generate the installer
+#
+# Revision 1.3	1999/05/02 14:27:39  peter
 #   * update to new standards
 #
 # Revision 1.2	1999/03/09 01:35:53  peter