Browse Source

* makefile.fpc targets start with fpc_
* small updates for install scripts

peter 26 years ago
parent
commit
f1b0c333cb

+ 70 - 41
base/Makefile

@@ -43,13 +43,65 @@ endif
 #####################################################################
 #####################################################################
 
 
 RELEASE=1
 RELEASE=1
-NODEFAULTRULES=1
+
+
+#####################################################################
+# Main targets
+#####################################################################
+
+.PHONY: all clean install staticinstall sharedinstall \
+	$(addsuffix _all,$(MODULES)) \
+	$(addsuffix _clean,$(MODULES)) \
+	$(addsuffix _install,$(MODULES)) \
+	$(addsuffix _staticinstall,$(MODULES)) \
+	$(addsuffix _sharedinstall,$(MODULES))
+
+info:
+	@echo
+	@echo Please use one of the following targets:
+	@echo
+	@echo $(MODULES)
+	@echo
+	@echo All targets can follow after a _ with:
+	@echo all,clean,install,staticinstall,sharedinstall
+	@echo
+	@echo example: make api_staticinstall
+	@exit
+
+all: $(addsuffix _all,$(MODULES))
+
+clean: $(addsuffix _clean,$(MODULES))
+
+install: $(addsuffix _install,$(MODULES))
+
+staticinstall: $(addsuffix _staticinstall,$(MODULES))
+
+sharedinstall: $(addsuffix _sharedinstall,$(MODULES))
 
 
 
 
 #####################################################################
 #####################################################################
 # Include default makefile
 # Include default makefile
 #####################################################################
 #####################################################################
 
 
+# test if FPCMAKE is still valid
+ifndef FPCMAKE
+ifdef FPCDIR
+FPCMAKE=$(FPCDIR)/makefile.fpc
+endif
+endif
+ifdef FPCMAKE
+ifeq ($(strip $(wildcard $(FPCMAKE))),)
+FPCDIR=
+FPCMAKE=
+endif
+endif
+
+ifndef FPCDIR
+ifdef DEFAULTFPCDIR
+FPCDIR=$(DEFAULTFPCDIR)
+endif
+endif
+
 ifndef FPCMAKE
 ifndef FPCMAKE
 ifdef FPCDIR
 ifdef FPCDIR
 FPCMAKE=$(FPCDIR)/makefile.fpc
 FPCMAKE=$(FPCDIR)/makefile.fpc
@@ -59,15 +111,19 @@ endif
 endif
 endif
 
 
 override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
 override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
-ifeq ($(FPCMAKE),)
-nofpcmake:
-	@echo
+ifndef FPCMAKE
+testfpcmake:
 	@echo makefile.fpc not found!
 	@echo makefile.fpc not found!
 	@echo Check the FPCMAKE and FPCDIR environment variables.
 	@echo Check the FPCMAKE and FPCDIR environment variables.
-	@echo
-	@exit
+	@stopnow
+ifndef NODEFAULTALL
+all: testfpcmake
+endif
+install: testfpcmake
+clean: testfpcmake
 else
 else
 include $(FPCMAKE)
 include $(FPCMAKE)
+testfpcmake:
 endif
 endif
 
 
 
 
@@ -75,25 +131,6 @@ endif
 # Dependencies
 # Dependencies
 #####################################################################
 #####################################################################
 
 
-.PHONY: all clean install staticinstall sharedinstall \
-	$(addsuffix _all,$(MODULES)) \
-	$(addsuffix _clean,$(MODULES)) \
-	$(addsuffix _install,$(MODULES)) \
-	$(addsuffix _staticinstall,$(MODULES)) \
-	$(addsuffix _sharedinstall,$(MODULES))
-
-info:
-	@echo
-	@echo Please use one of the following targets:
-	@echo
-	@echo $(MODULES)
-	@echo
-	@echo All targets can follow after a _ with:
-	@echo all,clean,install,staticinstall,sharedinstall
-	@echo
-	@echo example: make api_staticinstall
-	@exit
-
 #######################################
 #######################################
 # Compiler
 # Compiler
 #######################################
 #######################################
@@ -107,6 +144,9 @@ compiler_clean:
 compiler_install:
 compiler_install:
 	$(MAKE) -C compiler install
 	$(MAKE) -C compiler install
 
 
+compiler_installlib:
+	$(MAKE) -C compiler installlib
+
 compiler_staticinstall:
 compiler_staticinstall:
 
 
 compiler_sharedinstall:
 compiler_sharedinstall:
@@ -243,21 +283,6 @@ ide_sharedinstall:
 	$(MAKE) -C $(IDEDIR) sharedlibinstall
 	$(MAKE) -C $(IDEDIR) sharedlibinstall
 
 
 
 
-#######################################
-# Common targets all,install,clean
-#######################################
-
-all: $(addsuffix _all,$(MODULES))
-
-clean: $(addsuffix _clean,$(MODULES))
-
-install: $(addsuffix _install,$(MODULES))
-
-staticinstall: $(addsuffix _staticinstall,$(MODULES))
-
-sharedinstall: $(addsuffix _sharedinstall,$(MODULES))
-
-
 #######################################
 #######################################
 # Packaging targets
 # Packaging targets
 #######################################
 #######################################
@@ -295,7 +320,11 @@ compilerzip: #compiler_clean rtl_clean
 
 
 #
 #
 # $Log$
 # $Log$
-# Revision 1.7  1999-03-09 01:35:46  peter
+# Revision 1.8  1999-03-16 00:46:54  peter
+#   * makefile.fpc targets start with fpc_
+#   * small updates for install scripts
+#
+# Revision 1.7  1999/03/09 01:35:46  peter
 #   * makefile.fpc updates and defaultfpcdir var
 #   * makefile.fpc updates and defaultfpcdir var
 #
 #
 #
 #

+ 39 - 40
base/makefile.fpc

@@ -661,8 +661,6 @@ export BASEINSTALLDIR PACKAGESUFFIX
 # General compile rules
 # General compile rules
 #####################################################################
 #####################################################################
 
 
-ifndef NODEFAULTRULES
-
 # Create Filenames
 # Create Filenames
 LOADEROFILES=$(addsuffix $(OEXT),$(LOADEROBJECTS))
 LOADEROFILES=$(addsuffix $(OEXT),$(LOADEROBJECTS))
 EXEFILES=$(addsuffix $(EXEEXT),$(EXEOBJECTS))
 EXEFILES=$(addsuffix $(EXEEXT),$(EXEOBJECTS))
@@ -670,9 +668,11 @@ EXEOFILES=$(addsuffix $(OEXT),$(EXEOBJECTS))
 UNITFILES=$(addsuffix $(PPUEXT),$(UNITOBJECTS))
 UNITFILES=$(addsuffix $(PPUEXT),$(UNITOBJECTS))
 UNITOFILES=$(addsuffix $(OEXT),$(UNITOBJECTS))
 UNITOFILES=$(addsuffix $(OEXT),$(UNITOBJECTS))
 
 
-.PHONY : all fpc_clean install \
-	 fpc_libsclean staticlibinstall sharedlibinstall libinstall \
-	 info cfginfo objectinfo installinfo filesinfo
+.PHONY : fpc_all fpc_units fpc_loaders fpc_exes \
+         fpc_staticlib fpc_sharedlib \
+         fpc_clean fpc_libsclean fpc_cleanall \
+         fpc_install fpc_staticlibinstall fpc_sharedlibinstall fpc_libinstall \
+         fpc_info fpc_cfginfo fpc_objectinfo fpc_installinfo fpc_filesinfo
 
 
 .SUFFIXES : $(EXEEXT) $(PPUEXT) $(PASEXT) $(OEXT)
 .SUFFIXES : $(EXEEXT) $(PPUEXT) $(PASEXT) $(OEXT)
 
 
@@ -681,19 +681,17 @@ UNITOFILES=$(addsuffix $(OEXT),$(UNITOBJECTS))
 # Default
 # Default
 #####################################################################
 #####################################################################
 
 
-ifndef NODEFAULTALL
 ifdef DEFAULTUNITS
 ifdef DEFAULTUNITS
-all: loaders units
+fpc_all: fpc_loaders fpc_units
 else
 else
-all: loaders units exes
-endif
+fpc_all: fpc_loaders fpc_units fpc_exes
 endif
 endif
 
 
-loaders: $(LOADEROFILES)
+fpc_loaders: $(LOADEROFILES)
 
 
-units: $(UNITFILES)
+fpc_units: $(UNITFILES)
 
 
-exes: $(EXEFILES)
+fpc_exes: $(EXEFILES)
 
 
 # General compile rules
 # General compile rules
 %$(PPUEXT): %$(PASEXT)
 %$(PPUEXT): %$(PASEXT)
@@ -712,12 +710,12 @@ exes: $(EXEFILES)
 # Library
 # Library
 #####################################################################
 #####################################################################
 
 
-staticlib:
+fpc_staticlib:
 	$(MAKE) libsclean
 	$(MAKE) libsclean
 	$(MAKE) all SMARTLINK=YES LIBTYPE=static
 	$(MAKE) all SMARTLINK=YES LIBTYPE=static
 
 
 
 
-sharedlib:
+fpc_sharedlib:
 ifdef inlinux
 ifdef inlinux
 	$(MAKE) libsclean
 	$(MAKE) libsclean
 	$(MAKE) all LIBTYPE=shared
 	$(MAKE) all LIBTYPE=shared
@@ -730,7 +728,7 @@ endif
 # Install rules
 # Install rules
 #####################################################################
 #####################################################################
 
 
-standardinstall : all
+fpc_install : all
 ifndef DEFAULTUNITS
 ifndef DEFAULTUNITS
 ifdef EXEOBJECTS
 ifdef EXEOBJECTS
 	$(MKDIR) $(BININSTALLDIR)
 	$(MKDIR) $(BININSTALLDIR)
@@ -755,10 +753,6 @@ else
 endif
 endif
 endif
 endif
 
 
-ifndef NODEFAULTINSTALL
-install: standardinstall $(EXTRAINSTALL)
-endif
-
 # Target for the sharedlib install which is not avail for all targets
 # Target for the sharedlib install which is not avail for all targets
 SHAREDINSTALL=sharedlibinstall
 SHAREDINSTALL=sharedlibinstall
 ifeq ($(OS_TARGET),go32v1)
 ifeq ($(OS_TARGET),go32v1)
@@ -768,21 +762,20 @@ ifeq ($(OS_TARGET),go32v2)
 SHAREDINSTALL=
 SHAREDINSTALL=
 endif
 endif
 
 
-staticlibinstall: staticlib
+fpc_staticlibinstall: staticlib
 	$(MKDIR) $(STATIC_UNITINSTALLDIR)
 	$(MKDIR) $(STATIC_UNITINSTALLDIR)
 	$(INSTALL) $(UNITFILES) $(STATIC_UNITINSTALLDIR)
 	$(INSTALL) $(UNITFILES) $(STATIC_UNITINSTALLDIR)
 	$(MKDIR) $(STATIC_LIBINSTALLDIR)
 	$(MKDIR) $(STATIC_LIBINSTALLDIR)
 	$(INSTALLEXE) *$(STATICLIBEXT) $(STATIC_LIBINSTALLDIR)
 	$(INSTALLEXE) *$(STATICLIBEXT) $(STATIC_LIBINSTALLDIR)
 
 
-
-sharedlibinstall: sharedlib
+fpc_sharedlibinstall: sharedlib
 	$(MKDIR) $(SHARED_UNITINSTALLDIR)
 	$(MKDIR) $(SHARED_UNITINSTALLDIR)
 	$(INSTALL) $(UNITFILES) $(SHARED_UNITINSTALLDIR)
 	$(INSTALL) $(UNITFILES) $(SHARED_UNITINSTALLDIR)
 	$(MKDIR) $(SHARED_LIBINSTALLDIR)
 	$(MKDIR) $(SHARED_LIBINSTALLDIR)
 	$(INSTALLEXE) *$(SHAREDLIBEXT) $(SHARED_LIBINSTALLDIR)
 	$(INSTALLEXE) *$(SHAREDLIBEXT) $(SHARED_LIBINSTALLDIR)
 
 
 
 
-libinstall: staticlibinstall $(SHAREDINSTALL)
+fpc_libinstall: staticlibinstall $(SHAREDINSTALL)
 
 
 
 
 #####################################################################
 #####################################################################
@@ -810,7 +803,7 @@ ZIPTARGET=install
 endif
 endif
 
 
 # Note: This will not remove the zipfile first
 # Note: This will not remove the zipfile first
-zipinstalladd:
+fpc_zipinstalladd:
 ifndef ZIPNAME
 ifndef ZIPNAME
 	@$(ECHO) Please specify ZIPNAME!
 	@$(ECHO) Please specify ZIPNAME!
 	@exit
 	@exit
@@ -823,13 +816,13 @@ else
 endif
 endif
 
 
 # This will remove the zipfile
 # This will remove the zipfile
-zipinstalldel:
+fpc_zipinstalldel:
 ifdef ZIPNAME
 ifdef ZIPNAME
 	$(DEL) $(PACKAGEDIR)/$(ZIPNAME)
 	$(DEL) $(PACKAGEDIR)/$(ZIPNAME)
 endif
 endif
 
 
 # First remove the zip and then install
 # First remove the zip and then install
-zipinstall: zipinstalldel zipinstalladd
+fpc_zipinstall: fpc_zipinstalldel fpc_zipinstalladd
 
 
 
 
 #####################################################################
 #####################################################################
@@ -847,19 +840,23 @@ endif
 ifdef LOADEROBJECTS
 ifdef LOADEROBJECTS
 	-$(DEL) $(LOADEROFILES)
 	-$(DEL) $(LOADEROFILES)
 endif
 endif
-ifdef EXTRACLEAN
-	-$(DEL) $(EXTRACLEAN)
-endif
 
 
-fpc_libsclean : clean
+fpc_libsclean: clean
 	-$(DEL) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
 	-$(DEL) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
 
 
+fpc_cleanall:
+ifdef EXEOBJECTS
+	-$(DEL) $(EXEFILES)
+endif
+	-$(DEL) *$(OEXT) *$(PPUEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
+	-$(DELTREE) *$(SMARTEXT)
+
 
 
 #####################################################################
 #####################################################################
 # Depend rules
 # Depend rules
 #####################################################################
 #####################################################################
 
 
-depend:
+fpc_depend:
 	makedep $(UNITOBJECTS)
 	makedep $(UNITOBJECTS)
 
 
 
 
@@ -867,9 +864,9 @@ depend:
 # Info rules
 # Info rules
 #####################################################################
 #####################################################################
 
 
-info: cfginfo objectinfo toolsinfo installinfo
+fpc_info: fpc_cfginfo fpc_objectinfo fpc_toolsinfo fpc_installinfo
 
 
-cfginfo:
+fpc_cfginfo:
 	@$(ECHO)
 	@$(ECHO)
 	@$(ECHO)  == Configuration info ==
 	@$(ECHO)  == Configuration info ==
 	@$(ECHO)
 	@$(ECHO)
@@ -881,7 +878,7 @@ cfginfo:
 	@$(ECHO)  Basedir... $(BASEDIR)
 	@$(ECHO)  Basedir... $(BASEDIR)
 	@$(ECHO)
 	@$(ECHO)
 
 
-toolsinfo:
+fpc_toolsinfo:
 	@$(ECHO)
 	@$(ECHO)
 	@$(ECHO)  == Tools info ==
 	@$(ECHO)  == Tools info ==
 	@$(ECHO)
 	@$(ECHO)
@@ -907,7 +904,7 @@ ifdef UPX
 endif
 endif
 	@$(ECHO)
 	@$(ECHO)
 
 
-objectinfo:
+fpc_objectinfo:
 	@$(ECHO)
 	@$(ECHO)
 	@$(ECHO)  == Object info ==
 	@$(ECHO)  == Object info ==
 	@$(ECHO)
 	@$(ECHO)
@@ -916,7 +913,7 @@ objectinfo:
 	@$(ECHO)  ExeObjects.... $(EXEOBJECTS)
 	@$(ECHO)  ExeObjects.... $(EXEOBJECTS)
 	@$(ECHO)
 	@$(ECHO)
 
 
-installinfo:
+fpc_installinfo:
 	@$(ECHO)
 	@$(ECHO)
 	@$(ECHO)  == Install info ==
 	@$(ECHO)  == Install info ==
 	@$(ECHO)
 	@$(ECHO)
@@ -942,7 +939,7 @@ INCFILES:=$(wildcard *.inc)
 MSGFILES:=$(wildcard *.msg)
 MSGFILES:=$(wildcard *.msg)
 ASFILES:=$(wildcard *.as)
 ASFILES:=$(wildcard *.as)
 
 
-filesinfo:
+fpc_filesinfo:
 	@$(ECHO)
 	@$(ECHO)
 	@$(ECHO)  == Files info ==
 	@$(ECHO)  == Files info ==
 	@$(ECHO)
 	@$(ECHO)
@@ -962,11 +959,13 @@ ifdef ASFILES
 	@$(ECHO)  As  files are $(ASFILES)
 	@$(ECHO)  As  files are $(ASFILES)
 endif
 endif
 
 
-endif #NODEFAULTRULES
-
 #
 #
 # $Log$
 # $Log$
-# Revision 1.10  1999-03-12 21:01:30  michael
+# Revision 1.11  1999-03-16 00:46:55  peter
+#   * makefile.fpc targets start with fpc_
+#   * small updates for install scripts
+#
+# Revision 1.10  1999/03/12 21:01:30  michael
 # + Changed clean and libsclean to fpc_target
 # + Changed clean and libsclean to fpc_target
 #
 #
 # Revision 1.9  1999/03/11 17:54:00  peter
 # Revision 1.9  1999/03/11 17:54:00  peter

+ 26 - 26
compiler/Makefile

@@ -57,16 +57,24 @@ override LOCALOPT+=$(LOCALDEF)
 
 
 
 
 #####################################################################
 #####################################################################
-# Override default makefile settings
+# Common targets
 #####################################################################
 #####################################################################
 
 
-NODEFAULTALL=1
-NODEFAULTCLEAN=1
+.PHONY: all clean install info \
+        staticlib sharedlib \
+        staticinstall sharedinstall libinstall \
 
 
-# Change the default target to our local all target
-first: all
+info: testfpcmake fpc_info
 
 
-EXTRAINSTALL=myinstall
+staticlib: testfpcmake fpc_staticlib
+
+sharedlib: testfpcmake fpc_sharedlib
+
+staticinstall: testfpcmake fpc_staticinstall
+
+sharedinstall: testfpcmake fpc_sharedinstall
+
+libinstall: testfpcmake fpc_libinstall
 
 
 
 
 #####################################################################
 #####################################################################
@@ -74,11 +82,6 @@ EXTRAINSTALL=myinstall
 #####################################################################
 #####################################################################
 
 
 # test if FPCMAKE is still valid
 # test if FPCMAKE is still valid
-ifndef FPCMAKE
-ifdef FPCDIR
-FPCMAKE=$(FPCDIR)/makefile.fpc
-endif
-endif
 ifdef FPCMAKE
 ifdef FPCMAKE
 ifeq ($(strip $(wildcard $(FPCMAKE))),)
 ifeq ($(strip $(wildcard $(FPCMAKE))),)
 FPCDIR=
 FPCDIR=
@@ -101,16 +104,11 @@ endif
 endif
 endif
 
 
 override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
 override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
-ifndef FPCMAKE
+ifeq ($(FPCMAKE),)
 testfpcmake:
 testfpcmake:
 	@echo makefile.fpc not found!
 	@echo makefile.fpc not found!
 	@echo Check the FPCMAKE and FPCDIR environment variables.
 	@echo Check the FPCMAKE and FPCDIR environment variables.
-	@stopnow
-ifndef NODEFAULTALL
-all: testfpcmake
-endif
-install: testfpcmake
-clean: testfpcmake
+	@exit
 else
 else
 include $(FPCMAKE)
 include $(FPCMAKE)
 testfpcmake:
 testfpcmake:
@@ -217,9 +215,7 @@ next :
 	$(MAKE) all
 	$(MAKE) all
 endif
 endif
 
 
-clean : testfpcmake fpc_clean
-	-$(DEL) *$(OEXT) *$(PPUEXT) *$(ASMEXT) *$(STATICLIBEXT) $(EXENAME)
-	-$(DELTREE) $(SMARTEXT)
+clean : testfpcmake execlean fpc_cleanall
 
 
 execlean :
 execlean :
 	-$(DEL) $(EXENAME)
 	-$(DEL) $(EXENAME)
@@ -297,10 +293,10 @@ cycle: testfpcmake
 	$(MAKE) remake3
 	$(MAKE) remake3
 	$(MAKE) echotime
 	$(MAKE) echotime
 
 
-cycledep:
+cycledep: testfpcmake 
 	$(MAKE) cycle USEDEPEND=1
 	$(MAKE) cycle USEDEPEND=1
 
 
-cvstest:
+cvstest: testfpcmake 
 	$(MAKE) cycle 'LOCALOPT=-n -Se' 'RTLOPTS=-n -Se'
 	$(MAKE) cycle 'LOCALOPT=-n -Se' 'RTLOPTS=-n -Se'
 
 
 
 
@@ -309,7 +305,7 @@ cvstest:
 #####################################################################
 #####################################################################
 
 
 # This will only install the ppc386.exe, not the message files etc.
 # This will only install the ppc386.exe, not the message files etc.
-quickinstall:
+quickinstall: testfpcmake 
 ifdef inlinux
 ifdef inlinux
 	$(MKDIR) $(LIBINSTALLDIR)
 	$(MKDIR) $(LIBINSTALLDIR)
 	$(INSTALLEXE) $(EXENAME) $(LIBINSTALLDIR)
 	$(INSTALLEXE) $(EXENAME) $(LIBINSTALLDIR)
@@ -330,7 +326,7 @@ endif
 	$(INSTALL) errore.msg errorn.msg $(MSGINSTALLDIR)
 	$(INSTALL) errore.msg errorn.msg $(MSGINSTALLDIR)
 
 
 # this also installs the link /usr/bin/ppc386. The .deb does that later
 # this also installs the link /usr/bin/ppc386. The .deb does that later
-myinstall: installlib
+install: testfpcmake installlib
 ifdef inlinux
 ifdef inlinux
 	$(MKDIR) $(BININSTALLDIR)
 	$(MKDIR) $(BININSTALLDIR)
 	ln -sf $(LIBINSTALLDIR)/ppc386 $(BININSTALLDIR)/ppc386
 	ln -sf $(LIBINSTALLDIR)/ppc386 $(BININSTALLDIR)/ppc386
@@ -374,7 +370,11 @@ $(M68KEXENAME): $(PASFILES) $(INCFILES)
 
 
 #
 #
 # $Log$
 # $Log$
-# Revision 1.21  1999-03-12 17:24:43  michael
+# Revision 1.22  1999-03-16 00:46:56  peter
+#   * makefile.fpc targets start with fpc_
+#   * small updates for install scripts
+#
+# Revision 1.21  1999/03/12 17:24:43  michael
 # + Fixed clean target
 # + Fixed clean target
 #
 #
 # Revision 1.20  1999/03/11 17:54:01  peter
 # Revision 1.20  1999/03/11 17:54:01  peter

+ 37 - 5
ide/text/Makefile

@@ -43,8 +43,6 @@ else
 override NEEDUNITDIR+=../fake/gdb
 override NEEDUNITDIR+=../fake/gdb
 endif
 endif
 
 
-EXTRAINSTALL=myinstall
-
 
 
 #####################################################################
 #####################################################################
 # Real targets
 # Real targets
@@ -54,6 +52,31 @@ UNITOBJECTS=
 EXEOBJECTS=fp
 EXEOBJECTS=fp
 
 
 
 
+#####################################################################
+# Common targets
+#####################################################################
+
+.PHONY: all clean install info \
+        staticlib sharedlib libsclean \
+        staticinstall sharedinstall libinstall \
+        
+all: testfpcmake fpc_all
+
+info: testfpcmake fpc_info
+
+staticlib: testfpcmake fpc_staticlib
+
+sharedlib: testfpcmake fpc_sharedlib
+
+libsclean: testfpcmake fpc_libsclean
+
+staticinstall: testfpcmake fpc_staticinstall
+
+sharedinstall: testfpcmake fpc_sharedinstall
+
+libinstall: testfpcmake fpc_libinstall
+
+
 #####################################################################
 #####################################################################
 # Include default makefile
 # Include default makefile
 #####################################################################
 #####################################################################
@@ -82,12 +105,13 @@ endif
 
 
 override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
 override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
 ifeq ($(FPCMAKE),)
 ifeq ($(FPCMAKE),)
-nofpcmake:
+testfpcmake:
 	@echo makefile.fpc not found!
 	@echo makefile.fpc not found!
 	@echo Check the FPCMAKE and FPCDIR environment variables.
 	@echo Check the FPCMAKE and FPCDIR environment variables.
 	@exit
 	@exit
 else
 else
 include $(FPCMAKE)
 include $(FPCMAKE)
+testfpcmake:
 endif
 endif
 
 
 
 
@@ -110,10 +134,14 @@ full:
 fullgdb:
 fullgdb:
 	make all FULL=1 GDB=1
 	make all FULL=1 GDB=1
 
 
+# This is necessary because we don't have all units separate in the
+# units targets
+clean : testfpcmake fpc_cleanall
+
 #
 #
 # Installation
 # Installation
 #
 #
-myinstall:
+install: fpc_install
 	$(INSTALL) $(wildcard *.pt) $(wildcard *.tdf) $(BININSTALLDIR)
 	$(INSTALL) $(wildcard *.pt) $(wildcard *.tdf) $(BININSTALLDIR)
 
 
 #
 #
@@ -124,7 +152,11 @@ clean_compiler:
 
 
 #
 #
 # $Log$
 # $Log$
-# Revision 1.13  1999-03-09 01:35:52  peter
+# Revision 1.14  1999-03-16 00:47:00  peter
+#   * makefile.fpc targets start with fpc_
+#   * small updates for install scripts
+#
+# Revision 1.13  1999/03/09 01:35:52  peter
 #   * makefile.fpc updates and defaultfpcdir var
 #   * makefile.fpc updates and defaultfpcdir var
 #
 #
 #
 #

+ 11 - 2
install/debian/README.debian

@@ -1,6 +1,15 @@
 Free Pascal for DEBIAN
 Free Pascal for DEBIAN
 ----------------------
 ----------------------
 
 
-The home page is http://tfdec1.fys.kuleuven.ac.be/~michael/fpc/
+The Original site is
+  http://www.freepascal.org/
+  
+Mirrored at  
+  http://freepascal.zeuswpi.org/
+  http://gd.tuwien.ac.at/languages/pascal/fpc/www/
+  http://www.brain.uni-freiburg.de/~klaus/fpc/
+  http://www.atlasz.com/freepascal/
+  http://deadlock.et.tudelft.nl/~fpc/
+  http://www.freepascal.sk/
 
 
-Peter Vreman <[email protected]>, Tue, 20 Nov 1998 12:00:00 +0200
+Peter Vreman <[email protected]>, Tue, 20 Mar 1999 12:00:00 +0200

+ 1 - 1
install/debian/copyright

@@ -2,7 +2,7 @@ The package was originally put together by:
   Peter Vreman <[email protected]>
   Peter Vreman <[email protected]>
 
 
 From sources obtained from:
 From sources obtained from:
-  tflily.fys.kuleuven.ac.be/pub/fpc/dist/linux/fpc-0.99.10.tar.gz
+  ftp://tflily.fys.kuleuven.ac.be/pub/fpc/dist/linux/fpc-0.99.10.tar.gz
 
 
 
 
    This program is free software; you can redistribute it and/or modify
    This program is free software; you can redistribute it and/or modify

+ 2 - 2
install/debian/postinst

@@ -1,10 +1,10 @@
 #! /bin/sh
 #! /bin/sh
 
 
 # create link
 # create link
-ln -sf /usr/lib/fpc/0.99.10/ppc386 /usr/bin/ppc386
+ln -sf /usr/lib/fpc/0.99.11/ppc386 /usr/bin/ppc386
 
 
 # create /etc/ppc386.cfg
 # create /etc/ppc386.cfg
-/usr/lib/fpc/0.99.10/samplecfg /usr/lib/fpc/0.99.10 `dirname \`find /usr/lib/gcc-lib/ -name libgcc.a -print | grep -v egcs \``
+/usr/lib/fpc/0.99.11/samplecfg /usr/lib/fpc/0.99.11 `dirname \`find /usr/lib/gcc-lib/ -name libgcc.a -print | grep -v egcs \``
 
 
 # update ld.so cache
 # update ld.so cache
 ldconfig
 ldconfig

+ 7 - 4
install/debian/rules

@@ -9,8 +9,9 @@ build-stamp:
 	dh_testdir
 	dh_testdir
 
 
 #       Add here commands to compile the package.
 #       Add here commands to compile the package.
-	$(MAKE)
-	
+	$(MAKE) compiler_all
+	$(MAKE) rtl_all
+
 	touch build-stamp
 	touch build-stamp
 
 
 clean:
 clean:
@@ -19,7 +20,8 @@ clean:
 	rm -f build-stamp
 	rm -f build-stamp
 
 
 #       Add here commands to clean up after the build process.
 #       Add here commands to clean up after the build process.
-	-$(MAKE) clean
+	$(MAKE) compiler_clean
+	$(MAKE) rtl_clean
 
 
 	dh_clean
 	dh_clean
 
 
@@ -36,7 +38,8 @@ binary-arch: build
 	dh_installdirs
 	dh_installdirs
 
 
         # Add here commands to install the files into debian/tmp
         # Add here commands to install the files into debian/tmp
-	$(MAKE) PREFIXINSTALLDIR=`pwd`/debian/tmp/usr install
+	$(MAKE) compiler_installlib PREFIXINSTALLDIR=`pwd`/debian/tmp/usr
+	$(MAKE) rtl_install PREFIXINSTALLDIR=`pwd`/debian/tmp/usr
 
 
 #	dh_installdocs TODO NEWS AUTHORS KNOWNBUGS README README.guile
 #	dh_installdocs TODO NEWS AUTHORS KNOWNBUGS README README.guile
 	dh_installexamples
 	dh_installexamples

+ 7 - 4
install/fpinst/install.lin

@@ -140,14 +140,17 @@ defaultcfg=
 # searchpath for units (does the same as -Up)
 # searchpath for units (does the same as -Up)
 # For statically, smartlinked units
 # For statically, smartlinked units
 #IFDEF FPC_LINK_STATIC
 #IFDEF FPC_LINK_STATIC
-  -Fu$1/linuxunits/static
+-Fu\$1/rtl/static
+-Fu\$1/units/static
 #ENDIF
 #ENDIF
 # For Dynamically linked units
 # For Dynamically linked units
 #IFDEF FPC_LINK_DYNAMIC
 #IFDEF FPC_LINK_DYNAMIC
-  -Fu$1/linuxunits/shared
+-Fu\$1/rtl/shared
+-Fu\$1/units/shared
 #ENDIF
 #ENDIF
 # For normal units
 # For normal units
--Fu$1/linuxunits
+-Fu\$1/rtl
+-Fu\$1/units
 #-Fu~/pp/units;~/pp/rtl/linux
 #-Fu~/pp/units;~/pp/rtl/linux
 #-Fu/usr/lib/ppc/units;/usr/lib/ppc/linuxunits
 #-Fu/usr/lib/ppc/units;/usr/lib/ppc/linuxunits
 
 
@@ -167,7 +170,7 @@ defaultcfg=
 #-k-s
 #-k-s
 
 
 # Always strip debuginfo from the executable
 # Always strip debuginfo from the executable
-#-Xs
+-Xs
 
 
 
 
 # -------------
 # -------------

+ 1 - 1
install/fpinst/install.w32

@@ -177,7 +177,7 @@ defaultcfg=
 #-k-s
 #-k-s
 
 
 # Always strip debuginfo from the executable
 # Always strip debuginfo from the executable
-#-Xs
+-Xs
 
 
 
 
 # -------------
 # -------------

+ 10 - 7
install/makecfg

@@ -38,7 +38,7 @@ fi
 echo Writing sample configuration file to /etc/ppc386.cfg
 echo Writing sample configuration file to /etc/ppc386.cfg
 cat <<EOFCFG > /etc/ppc386.cfg
 cat <<EOFCFG > /etc/ppc386.cfg
 #
 #
-# Example ppc386.cfg for Free Pascal Compiler Version 0.99.10
+# Example ppc386.cfg for Free Pascal Compiler Version 0.99.11
 #
 #
 
 
 # ----------------------
 # ----------------------
@@ -143,8 +143,8 @@ cat <<EOFCFG > /etc/ppc386.cfg
 
 
 # path to the messagefile, not necessary anymore but can be used to override
 # path to the messagefile, not necessary anymore but can be used to override
 # the default language
 # the default language
-#-Fr\$2/msg/errore.msg
-#-Fr\$2/msg/errorn.msg
+#-Fr\$1/msg/errore.msg
+#-Fr\$1/msg/errorn.msg
 
 
 # path to the gcclib
 # path to the gcclib
 -Fg\$2
 -Fg\$2
@@ -155,14 +155,17 @@ cat <<EOFCFG > /etc/ppc386.cfg
 # searchpath for units (does the same as -Up)
 # searchpath for units (does the same as -Up)
 # For statically, smartlinked units
 # For statically, smartlinked units
 #IFDEF FPC_LINK_STATIC
 #IFDEF FPC_LINK_STATIC
--Fu\$1/staticunits
+-Fu\$1/rtl/static
+-Fu\$1/units/static
 #ENDIF
 #ENDIF
 # For Dynamically linked units
 # For Dynamically linked units
 #IFDEF FPC_LINK_DYNAMIC
 #IFDEF FPC_LINK_DYNAMIC
--Fu\$1/sharedunits
+-Fu\$1/rtl/shared
+-Fu\$1/units/shared
 #ENDIF
 #ENDIF
 # For normal units
 # For normal units
--Fu\$1/linuxunits
+-Fu\$1/rtl
+-Fu\$1/units
 #-Fu/pp/units;/pp/rtl/dos/go32v2
 #-Fu/pp/units;/pp/rtl/dos/go32v2
 #-Fu/usr/lib/ppc/units;/usr/lib/ppc/linuxunits
 #-Fu/usr/lib/ppc/units;/usr/lib/ppc/linuxunits
 
 
@@ -183,7 +186,7 @@ cat <<EOFCFG > /etc/ppc386.cfg
 #-k-s
 #-k-s
 
 
 # Always strip debuginfo from the executable
 # Always strip debuginfo from the executable
-#-Xs
+-Xs
 
 
 
 
 # -------------
 # -------------

+ 37 - 10
rtl/go32v2/Makefile

@@ -63,6 +63,35 @@ UNITOBJECTS=$(SYSTEMUNIT) strings go32 initc \
 	  msmouse graph
 	  msmouse graph
 
 
 
 
+#####################################################################
+# Common targets
+#####################################################################
+
+.PHONY: all clean install info \
+        staticlib sharedlib libsclean \
+        staticinstall sharedinstall libinstall \
+        
+all: testfpcmake fpc_all
+
+clean: testfpcmake fpc_clean
+
+install: testfpcmake fpc_install
+
+info: testfpcmake fpc_info
+
+staticlib: testfpcmake fpc_staticlib
+
+sharedlib: testfpcmake fpc_sharedlib
+
+libsclean: testfpcmake fpc_libsclean
+
+staticinstall: testfpcmake fpc_staticinstall
+
+sharedinstall: testfpcmake fpc_sharedinstall
+
+libinstall: testfpcmake fpc_libinstall
+
+
 #####################################################################
 #####################################################################
 # Include default makefile
 # Include default makefile
 #####################################################################
 #####################################################################
@@ -91,12 +120,13 @@ endif
 
 
 override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
 override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
 ifeq ($(FPCMAKE),)
 ifeq ($(FPCMAKE),)
-nofpcmake:
+testfpcmake:
 	@echo makefile.fpc not found!
 	@echo makefile.fpc not found!
 	@echo Check the FPCMAKE and FPCDIR environment variables.
 	@echo Check the FPCMAKE and FPCDIR environment variables.
 	@exit
 	@exit
 else
 else
 include $(FPCMAKE)
 include $(FPCMAKE)
+testfpcmake:
 endif
 endif
 
 
 
 
@@ -202,16 +232,13 @@ graph$(PPUEXT) : graph.pp go32$(PPUEXT) $(SYSTEMPPU) mmx$(PPUEXT) \
 		 $(wildcard $(PPI)/*.ppi)
 		 $(wildcard $(PPI)/*.ppi)
 	$(COMPILER) -I$(PPI) graph.pp $(REDIR)
 	$(COMPILER) -I$(PPI) graph.pp $(REDIR)
 
 
-#######################################################################
-# Clean targets
-#######################################################################
-
-clean: fpc_clean
-
-libsclean: fpc_libsclean
-
+#
 # $Log$
 # $Log$
-# Revision 1.10  1999-03-12 21:04:45  michael
+# Revision 1.11  1999-03-16 00:47:08  peter
+#   * makefile.fpc targets start with fpc_
+#   * small updates for install scripts
+#
+# Revision 1.10  1999/03/12 21:04:45  michael
 # +  clean and libsclean added
 # +  clean and libsclean added
 #
 #
 # Revision 1.9  1999/03/09 01:35:54  peter
 # Revision 1.9  1999/03/09 01:35:54  peter

+ 36 - 2
rtl/linux/Makefile

@@ -72,6 +72,35 @@ UNITOBJECTS=$(SYSTEMUNIT) strings linux \
             errors sockets ipc graph
             errors sockets ipc graph
 
 
 
 
+#####################################################################
+# Common targets
+#####################################################################
+
+.PHONY: all clean install info \
+        staticlib sharedlib libsclean \
+        staticinstall sharedinstall libinstall \
+        
+all: testfpcmake fpc_all
+
+clean: testfpcmake fpc_clean
+
+install: testfpcmake fpc_install
+
+info: testfpcmake fpc_info
+
+staticlib: testfpcmake fpc_staticlib
+
+sharedlib: testfpcmake fpc_sharedlib
+
+libsclean: testfpcmake fpc_libsclean
+
+staticinstall: testfpcmake fpc_staticinstall
+
+sharedinstall: testfpcmake fpc_sharedinstall
+
+libinstall: testfpcmake fpc_libinstall
+
+
 #####################################################################
 #####################################################################
 # Include default makefile
 # Include default makefile
 #####################################################################
 #####################################################################
@@ -100,12 +129,13 @@ endif
 
 
 override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
 override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
 ifeq ($(FPCMAKE),)
 ifeq ($(FPCMAKE),)
-nofpcmake:
+testfpcmake:
 	@echo makefile.fpc not found!
 	@echo makefile.fpc not found!
 	@echo Check the FPCMAKE and FPCDIR environment variables.
 	@echo Check the FPCMAKE and FPCDIR environment variables.
 	@exit
 	@exit
 else
 else
 include $(FPCMAKE)
 include $(FPCMAKE)
+testfpcmake:
 endif
 endif
 
 
 
 
@@ -221,7 +251,11 @@ libsclean: fpc_libsclean
 
 
 #
 #
 # $Log$
 # $Log$
-# Revision 1.16  1999-03-12 21:07:51  michael
+# Revision 1.17  1999-03-16 00:47:09  peter
+#   * makefile.fpc targets start with fpc_
+#   * small updates for install scripts
+#
+# Revision 1.16  1999/03/12 21:07:51  michael
 # +  clean and libsclean added
 # +  clean and libsclean added
 #
 #
 # Revision 1.15  1999/03/09 01:35:55  peter
 # Revision 1.15  1999/03/09 01:35:55  peter

+ 36 - 11
rtl/win32/Makefile

@@ -67,6 +67,35 @@ WINDOWS_FILES=base errors defines \
 WINDOWS_SOURCE_FILES=$(addsuffix .pp,$(WINDOWS_FILES))
 WINDOWS_SOURCE_FILES=$(addsuffix .pp,$(WINDOWS_FILES))
 
 
 
 
+#####################################################################
+# Common targets
+#####################################################################
+
+.PHONY: all clean install info \
+        staticlib sharedlib libsclean \
+        staticinstall sharedinstall libinstall \
+        
+all: testfpcmake fpc_all
+
+clean: testfpcmake fpc_clean
+
+install: testfpcmake fpc_install
+
+info: testfpcmake fpc_info
+
+staticlib: testfpcmake fpc_staticlib
+
+sharedlib: testfpcmake fpc_sharedlib
+
+libsclean: testfpcmake fpc_libsclean
+
+staticinstall: testfpcmake fpc_staticinstall
+
+sharedinstall: testfpcmake fpc_sharedinstall
+
+libinstall: testfpcmake fpc_libinstall
+
+
 #####################################################################
 #####################################################################
 # Include default makefile
 # Include default makefile
 #####################################################################
 #####################################################################
@@ -95,12 +124,13 @@ endif
 
 
 override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
 override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
 ifeq ($(FPCMAKE),)
 ifeq ($(FPCMAKE),)
-nofpcmake:
+testfpcmake:
 	@echo makefile.fpc not found!
 	@echo makefile.fpc not found!
 	@echo Check the FPCMAKE and FPCDIR environment variables.
 	@echo Check the FPCMAKE and FPCDIR environment variables.
 	@exit
 	@exit
 else
 else
 include $(FPCMAKE)
 include $(FPCMAKE)
+testfpcmake:
 endif
 endif
 
 
 
 
@@ -326,18 +356,13 @@ unidef.pp : unifun.pp unidef.sed
 	sed -f unidef.sed unifun.pp > unidef.pp
 	sed -f unidef.sed unifun.pp > unidef.pp
 endif
 endif
 
 
-#######################################################################
-# CLEAN targets
-#######################################################################
-
-clean: fpc_clean
-
-libsclean: fpc_libsclean
-
-
 #
 #
 # $Log$
 # $Log$
-# Revision 1.22  1999-03-12 21:02:19  michael
+# Revision 1.23  1999-03-16 00:47:10  peter
+#   * makefile.fpc targets start with fpc_
+#   * small updates for install scripts
+#
+# Revision 1.22  1999/03/12 21:02:19  michael
 # +  clean and libsclean added
 # +  clean and libsclean added
 #
 #
 # Revision 1.21  1999/03/10 23:45:21  peter
 # Revision 1.21  1999/03/10 23:45:21  peter