| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- #
- # $Id$
- # Copyright (c) 1998 by the Free Pascal Development Team
- #
- # Makefile for Free Pascal Environment
- #
- # 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=../..
- # We always need the API and FV
- NEEDUNITDIR=../../api ../../fv
- # when making a full version include the compiler
- ifeq ($(FULL),1)
- override NEEDUNITDIR+=../../compiler
- override NEEDOPT+=-dBrowserCol -dGDB -Sg
- else
- override NEEDUNITDIR+=../fake/compiler
- endif
- # when including debugger include the gdbinterface
- ifndef GDBINT
- GDBINT=gdbint
- endif
- ifeq ($(GDB),1)
- override NEEDUNITDIR+=../../$(GDBINT)
- NEEDLIBDIR+=../../$(GDBINT)/libgdb
- NEEDOBJDIR+=../../$(GDBINT)/libgdb
- else
- override NEEDUNITDIR+=../fake/gdb
- endif
- #####################################################################
- # Real targets
- #####################################################################
- UNITOBJECTS=
- 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
- #####################################################################
- # 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
- #####################################################################
- ifdef inlinux
- LIBDIR=/usr/lib/gcc-lib/i486-linux/2.7.2.3
- endif
- fp$(EXEEXT): $(wildcard *.pas) $(wildcard *.inc)
- gdb:
- make all GDB=1
- full:
- make all FULL=1
- fullgdb:
- 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
- #
- install: fpc_install
- $(INSTALL) $(wildcard *.pt) $(wildcard *.tdf) $(BININSTALLDIR)
- #
- # Misc
- #
- clean_compiler:
- make -C ../../compiler clean
- #
- # $Log$
- # 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
- #
- #
|