| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363 |
- #
- # $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 Go32v2 Runtime Library
- #
- # 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.
- #
- # Warning: this file contains TAB (#9) characters that are required for
- # make. Make sure you use an editor that does not replace TABs with
- # spaces, or the makefile won't work anymore after you save.
- #####################################################################
- # Configuration section
- #####################################################################
- # Use smartlinking ?
- ifndef SMARTLINK
- SMARTLINK=NO
- endif
- # Name of library ?
- # If this is set, all units will be put in the same library.
- # If it is empty (default), the units will be left in separate files.
- ifndef LIBNAME
- LIBNAME=
- #LIBNAME=fpc
- endif
- # Should the library be shared or static (only if LIBNAME is set).
- # Set this to 'shared' or 'static' to create a librrary
- # Setting this to shared will disable smart linking.
- ifndef LIBTYPE
- LIBTYPE=
- #LIBTYPE=static
- endif
- #####################################################################
- # Defaults
- #####################################################################
- # set target and cpu which are required
- OS_TARGET=go32v2
- CPU=i386
- # Where are the include files
- RTL=..
- CFG=$(RTL)/cfg
- INC=$(RTL)/inc
- PROCINC=$(RTL)/$(CPU)
- OBJPASDIR=$(RTL)/objpas
- PPI=ppi
- # Where to place the result files
- TARGETDIR=.
- #####################################################################
- # Include default makefile
- #####################################################################
- include $(CFG)/makefile.cfg
- #####################################################################
- # System dependent
- #####################################################################
- # Define Go32v2 Units
- SYSTEMPPU=system$(PPUEXT)
- OBJECTS=strings go32 initc \
- dpmiexcp profile dxeload emu387 \
- dos crt objects printer \
- objpas sysutils \
- cpu mmx msmouse getopts heaptrc graph typinfo
- LOADERS=prt0 exceptn fpu
- #####################################################################
- # Include system unit dependencies
- #####################################################################
- # Get the system independent include file names.
- # This will set the following variables :
- # SYSINCNAMES
- include $(INC)/makefile.inc
- SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
- # Get the processor dependent include file names.
- # This will set the following variables :
- # CPUINCNAMES
- include $(PROCINC)/makefile.cpu
- SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
- # Put system unit dependencies together.
- SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
- #####################################################################
- # System independent Makefile
- #####################################################################
- # Add Prefix and Suffixes
- OBJLOADERS=$(addsuffix $(OEXT), $(LOADERS))
- PPUOBJECTS=$(addsuffix $(PPUEXT), $(OBJECTS))
- .PHONY : all install clean \
- libs libsclean \
- diffs diffclean \
- all : $(OBJLOADERS) $(PPUOBJECTS)
- install : all
- $(MKDIR) $(UNITINSTALLDIR)
- $(INSTALL) *$(PPUEXT) *$(OEXT) $(UNITINSTALLDIR)
- clean :
- -$(DEL) *$(OEXT) *$(ASMEXT) *$(PPUEXT) $(PPAS) link.res log
- -$(DELTREE) *$(SMARTEXT)
- #####################################################################
- # Files
- #####################################################################
- #
- # Loaders
- #
- prt0$(OEXT) : v2prt0.as
- as -o prt0$(OEXT) v2prt0.as
- exceptn$(OEXT) : exceptn.as
- as -o exceptn$(OEXT) exceptn.as
- fpu$(OEXT) : fpu.as
- as -o fpu$(OEXT) fpu.as
- #
- # Base Units (System, strings, os-dependent-base-unit)
- #
- $(SYSTEMPPU) : system.pp $(SYSDEPS)
- $(COMPILER) -Us -Sg system.pp $(REDIR)
- strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc\
- $(PROCINC)/strings.inc $(PROCINC)/stringss.inc\
- $(SYSTEMPPU)
- $(COMPILER) $(INC)/strings.pp $(REDIR)
- go32$(PPUEXT) : go32.pp $(SYSTEMPPU)
- $(COMPILER) go32.pp $(REDIR)
- #
- # Delphi Object Model
- #
- include $(OBJPASDIR)/makefile.op
- #
- # System Dependent Units
- #
- # new version need -Sv switch for external variables
- dpmiexcp$(PPUEXT) : dpmiexcp.pp exceptn$(OEXT) $(SYSTEMPPU)
- $(COMPILER) -Sg dpmiexcp.pp $(REDIR)
- initc$(PPUEXT) : initc.pp $(SYSTEMPPU)
- $(COMPILER) initc.pp $(REDIR)
- profile$(PPUEXT) : profile.pp dpmiexcp$(PPUEXT) go32$(PPUEXT)
- $(COMPILER) profile.pp $(REDIR)
- dxeload$(PPUEXT) : dxeload.pp $(SYSTEMPPU)
- $(COMPILER) dxeload.pp $(REDIR)
- emu387$(PPUEXT) : emu387.pp fpu$(OEXT) strings$(PPUEXT) dxeload$(PPUEXT) \
- dpmiexcp$(PPUEXT)
- $(COMPILER) emu387.pp $(REDIR)
- #
- # TP7 Compatible RTL Units
- #
- dos$(PPUEXT) : dos.pp $(INC)/filerec.inc $(INC)/textrec.inc \
- go32$(PPUEXT) strings$(PPUEXT) $(SYSTEMPPU)
- $(COMPILER) dos.pp $(REDIR)
- crt$(PPUEXT) : crt.pp $(INC)/textrec.inc go32$(PPUEXT) $(SYSTEMPPU)
- $(COMPILER) crt.pp $(REDIR)
- objects$(PPUEXT) : $(INC)/objects.pp objinc.inc $(SYSTEMPPU)
- $(COMPILER) $(INC)/objects.pp $(REDIR)
- printer$(PPUEXT) : printer.pp $(SYSTEMPPU)
- $(COMPILER) printer.pp $(REDIR)
- #
- # Other RTL Units
- #
- cpu$(PPUEXT) : $(PROCINC)/cpu.pp $(SYSTEMPPU)
- $(COMPILER) $(PROCINC)/cpu.pp $(REDIR)
- mmx$(PPUEXT) : $(PROCINC)/mmx.pp cpu$(PPUEXT) $(SYSTEMPPU)
- $(COMPILER) $(PROCINC)/mmx.pp $(REDIR)
- msmouse$(PPUEXT) : msmouse.pp $(SYSTEMPPU)
- $(COMPILER) msmouse.pp $(REDIR)
- getopts$(PPUEXT) : $(INC)/getopts.pp $(SYSTEMPPU)
- $(COMPILER) $(INC)/getopts.pp $(REDIR)
- heaptrc$(PPUEXT) : $(INC)/heaptrc.pp $(SYSTEMPPU)
- $(COMPILER) $(INC)/heaptrc.pp $(REDIR)
- PPIFILES:=$(wildcard $(PPI)/*.ppi)
- graph$(PPUEXT) : graph.pp go32$(PPUEXT) $(SYSTEMPPU) mmx$(PPUEXT) $(PPIFILES)
- $(COMPILER) -I$(PPI) graph.pp $(REDIR)
- #####################################################################
- # Libs
- #####################################################################
- staticlib:
- make libsclean
- make all SMARTLINK=YES LIBNAME=fpc LIBTYPE=static
- sharedlib:
- @echo Shared Libraries not supported for Go32v2
- staticlibinstall: staticlib
- $(MKDIR) $(STATIC_LIBINSTALLDIR)
- $(MKDIR) $(STATIC_UNITINSTALLDIR)
- $(INSTALLEXE) *$(STATICLIBEXT) $(STATIC_LIBINSTALLDIR)
- $(INSTALL) *$(PPUEXT) *$(OEXT) $(STATIC_UNITINSTALLDIR)
- sharedlibinstall: sharedlib
- libinstall: staticlibinstall
- libsclean : clean
- -$(DEL) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
- #####################################################################
- # Default targets
- #####################################################################
- include $(CFG)/makefile.def
- #
- # $Log$
- # Revision 1.8 1999-02-25 10:00:01 michael
- # + Fixed type in strings target
- #
- # Revision 1.7 1999/02/25 07:39:20 michael
- # * Joined strings and sysutils
- #
- # Revision 1.6 1999/02/09 17:16:58 florian
- # + typinfo is now also in the makefile for go32v2
- # + sysutils.filetruncate for go32v2
- #
- # Revision 1.5 1999/01/21 11:54:35 peter
- # * renamed mouse->msmouse to resolve conflict with the api mouse unit
- #
- # Revision 1.4 1999/01/15 11:47:16 peter
- # + added math unit to objects
- #
- # Revision 1.3 1998/12/28 23:37:39 peter
- # * clean target fix, theres no objpas dir to clean anymore
- #
- # Revision 1.2 1998/12/21 14:20:37 pierre
- # * initc unit added
- #
- # Revision 1.1 1998/12/21 13:07:02 peter
- # * use -FE
- #
- # Revision 1.12 1998/11/24 23:06:40 peter
- # * removed platform.inc
- #
- # Revision 1.11 1998/11/24 19:50:01 jonas
- # + added warning about TABs
- #
- # Revision 1.10 1998/10/21 16:51:07 pierre
- # * dxeload range check problem solved
- #
- # Revision 1.9 1998/10/14 07:56:02 pierre
- # * -Sv now necessary for dpmiexcp unit
- #
- # Revision 1.8 1998/10/12 08:36:31 pierre
- # * wrong 'objpas' target in all removed
- #
- # Revision 1.7 1998/10/11 13:45:05 michael
- # + Added disk.inc to sysutils dependencies
- #
- # Revision 1.6 1998/10/11 12:21:48 michael
- # + Further sysutils implementations.
- #
- # Revision 1.5 1998/10/06 22:10:30 peter
- # + heaptrc
- #
- # Revision 1.4 1998/10/02 09:26:00 peter
- # * fixed rtl path
- #
- # Revision 1.3 1998/09/16 16:47:27 peter
- # * merged fixes
- #
- # Revision 1.1.2.2 1998/09/16 16:17:50 peter
- # * updates to install with go32,win32
- #
- # Revision 1.2 1998/09/15 12:09:09 peter
- # * merged updates
- #
- # Revision 1.1.2.1 1998/09/15 12:02:03 peter
- # * updates to get objpas using its own makefile
- #
- # Revision 1.1 1998/09/10 14:13:28 peter
- # * renamed
- #
- # Revision 1.16 1998/09/10 10:20:41 florian
- # * fixed typo of previous commit
- #
- # Revision 1.15 1998/09/10 10:16:52 florian
- # * make staticlib does now a make libclean instead of make clean
- #
- # Revision 1.14 1998/08/20 08:08:37 pierre
- # * dpmiexcp did not compile with older versions
- # due to the proc to procvar bug
- # * makefile separator problem fixed
- #
- # Revision 1.13 1998/08/19 10:05:01 peter
- # * fixed for go32v2 staticlib
- #
- # Revision 1.12 1998/08/05 10:31:05 pierre
- # + added BUGFIX test to be able to compile bugfix branch
- #
- # Revision 1.11 1998/07/29 15:44:37 michael
- # included sysutils and math.pp as target. They compile now.
- #
- # Revision 1.10 1998/07/22 21:37:03 michael
- # make cycle now works
- #
- # Revision 1.9 1998/05/22 00:39:36 peter
- # * go32v1, go32v2 recompiles with the new objects
- # * remake3 works again with go32v2
- # - removed some "optimizes" from daniel which were wrong
- #
- # Revision 1.8 1998/05/06 11:53:40 peter
- # * update
- #
- #
|