fpc/ide/Makefile
1999-04-16 20:15:41 +00:00

127 lines
2.6 KiB
Makefile

#
# $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=..
#####################################################################
# Common targets
#####################################################################
.PHONY: all clean install info \
staticlib sharedlib libsclean \
staticinstall sharedinstall libinstall \
info: testfpcmake fpc_info
#####################################################################
# 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
all:
$(MAKE) -C text all
gdb:
$(MAKE) -C text all GDB=1
full:
$(MAKE) -C text all FULL=1
fullgdb:
$(MAKE) -C text all FULL=1 GDB=1
# This is necessary because we don't have all units separate in the
# units targets
clean:
$(MAKE) -C fake clean
$(MAKE) -C text clean
#
# Installation
#
install:
$(MAKE) -C fake install
$(MAKE) -C fake install
zipinstall:
$(MAKE) -C fake zipinstall
$(MAKE) -C fake zipinstall
#
# Misc
#
clean_compiler:
make -C ../../compiler clean
#
# $Log$
# Revision 1.1 1999-04-16 20:16:38 michael
# + Adapted ide Makefiles
#
# 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
#
#