lazarus/Makefile.fpc
lazarus 17b5939905 MWE:
Made makefile.fpc files compatible with new fpcmake util.

git-svn-id: trunk@331 -
2001-08-13 23:34:05 +00:00

77 lines
1.4 KiB
Makefile

#
# Makefile.fpc for Lazarus for Free Pascal
#
[package]
name=lazarus
version=0.7a
[require]
#rtl=1
#options=-gl
packages=rtl fcl gtk
[target]
programs=lazarus
dirs=lcl components tools
exampledirs=examples
[compiler]
options=-gl
unitdir=. ./lcl/units ./lcl/units/$(LCLPLATFORM) ./components/units ./designer ./debugger
includedir=. ./include ./include/$(OS_TARGET)
[clean]
#units=$(basename $(wildcard *$(PPUEXT))) $(basename $(wildcard ./designer/*$(PPUEXT))) $(basename $(wildcard ./debugger/*$(PPUEXT)))
#files=$(wildcard ./designer/*$(OEXT))
[install]
basedir=lib/lazarus
#prefixdir=/usr
[prerules]
DIST_DESTDIR=$(BASEDIR)/dist
ifndef LCLPLATFORM
LCLPLATFORM=gtk
export LCLPLATFORM
endif
[rules]
.SUFFIXES: .rc .res
%.res: %.rc
windres -i $< -o $@
.PHONY: examples lcl components ide tools all win32
lcl: lcl_all
examples: lcl examples_all
components: lcl components_all
ide:
$(MAKE) --assume-new=lazarus.pp lazarus$(EXEEXT)
tools: lcl components tools_all
all: lcl components ide
win32:
$(MAKE) lazarus.res
$(MAKE) all LCLPLATFORM=win32 OPT=-dSUPPORTS_RESOURCES
# MWE: moved to a more generic rule
#lazarus.res: lazarus.rc
# windres -i lazarus.rc -o lazarus.res
makefile: Makefile.fpc
-$(FPCMAKE) -w
makefiles: makefile
$(MAKE) -C components makefiles
$(MAKE) -C lcl makefiles
$(MAKE) -C tools makefiles