lazarus/Makefile.fpc
2006-01-20 14:48:22 +00:00

109 lines
2.8 KiB
Makefile

#
# Makefile.fpc for Lazarus for Free Pascal
#
[package]
name=lazarus
version=0.9b
[require]
packages=fcl regexpr
[target]
programs=lazarus startlazarus
dirs=lcl components packager/registration ideintf designer packager
exampledirs=examples
[compiler]
[clean]
files=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
[install]
fpcpackage=n
basedir=share/lazarus
[dist]
destdir=$(BASEDIR)/dist
[prerules]
RCPP?=$(strip $(firstword cpp$(SRCEXEEXT)))
#
ifeq ($(OS_TARGET),win32)
LAZARUS_INSTALL_DIR=C:\lazarus
else
LAZARUS_INSTALL_DIR=/usr/share/lazarus
endif
#-----------------------------------------------------------------------------
[rules]
.PHONY: lcl components packager/registration ideintf packager bigidecomponents ide idepkg idebig bigide starter tools all clean cleanide purge examples install
#-----------------------------------------------------------------------------
ide:
$(MAKE) -C ide ide
#-----------------------------------------------------------------------------
idepkg:
$(MAKE) -C ide idepkg
#-----------------------------------------------------------------------------
bigide: lcl packager/registration ideintf designer packager bigidecomponents idebig starter
#-----------------------------------------------------------------------------
idebig:
$(MAKE) -C ide bigide
#-----------------------------------------------------------------------------
bigidecomponents:
$(MAKE) -C components bigidecomponents
#-----------------------------------------------------------------------------
starter:
$(MAKE) -C ide starter
#-----------------------------------------------------------------------------
tools: lcl components
$(MAKE) -C tools
#-----------------------------------------------------------------------------
examples: lcl components
$(MAKE) -C examples
#-----------------------------------------------------------------------------
all: lcl components packager/registration ideintf designer packager ide starter
#-----------------------------------------------------------------------------
cleanide:
$(MAKE) -C ide cleanide
cleanlaz: clean cleanide
$(MAKE) -C lcl clean
$(MAKE) -C components clean
$(MAKE) -C packager clean
$(MAKE) -C designer clean
$(MAKE) -C ideintf clean
purge: cleanlaz
$(MAKE) -C examples clean
$(MAKE) -C tools clean
$(MAKE) -C doceditor clean
$(MAKE) -C tools clean
clean: cleanlaz
#-----------------------------------------------------------------------------
# Many C expect 'make install' to copy the binaries to somewhere
# Copy the lazarus tree to /usr/share/lazarus and set a link
install:
$(COPYTREE) . $(LAZARUS_INSTALL_DIR)
ifeq ($(OS_TARGET),win32)
else
ln -sf $(LAZARUS_INSTALL_DIR)/lazarus /usr/bin/lazarus
endif
# end.