mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 22:50:28 +02:00
83 lines
1.7 KiB
Makefile
83 lines
1.7 KiB
Makefile
#
|
|
# Makefile.fpc for Lazarus for Free Pascal
|
|
#
|
|
|
|
[package]
|
|
name=lazarus
|
|
version=0.8a
|
|
|
|
[require]
|
|
packages=fcl regexpr
|
|
|
|
[target]
|
|
programs=lazarus
|
|
dirs=lcl components designer
|
|
exampledirs=examples
|
|
|
|
[compiler]
|
|
options=-gl
|
|
unitdir=components/custom \
|
|
lcl/units lcl/units/$(LCL_PLATFORM) designer designer/units debugger \
|
|
packager components/units .
|
|
includedir=include include/$(OS_TARGET)
|
|
targetdir=.
|
|
|
|
[clean]
|
|
files=$(wildcard ./designer/*$(OEXT)) $(wildcard ./designer/*$(PPUEXT)) \
|
|
$(wildcard ./debugger/*$(OEXT)) $(wildcard ./debugger/*$(PPUEXT))
|
|
|
|
[install]
|
|
basedir=lib/lazarus
|
|
|
|
[dist]
|
|
destdir=$(BASEDIR)/dist
|
|
|
|
[prerules]
|
|
ifndef LCL_PLATFORM
|
|
ifeq ($(OS_TARGET), win32)
|
|
LCL_PLATFORM=win32
|
|
else
|
|
LCL_PLATFORM=gtk
|
|
endif
|
|
export LCL_PLATFORM
|
|
endif
|
|
|
|
RCPP?=$(strip $(firstword $(wildcard $(addsuffix /cpp$(SRCEXEEXT), $(SEARCHPATH)))))
|
|
|
|
[rules]
|
|
.PHONY: lcl components ide tools all clean
|
|
.SUFFIXES: .rc .res
|
|
|
|
%.res: %.rc
|
|
windres -i $< -o $@ --preprocessor $(RCPP)
|
|
|
|
ide:
|
|
ifeq ($(OS_TARGET), win32)
|
|
$(MAKE) lazarus.res
|
|
endif
|
|
$(MAKE) --assume-new=lazarus.pp lazarus$(EXEEXT)
|
|
|
|
tools: lcl components
|
|
$(MAKE) -C tools
|
|
|
|
all: lcl components designer ide
|
|
|
|
cleanide:
|
|
$(DEL) $(wildcard *$(OEXT))
|
|
$(DEL) $(wildcard *$(PPUEXT))
|
|
$(DEL) $(wildcard *$(RSTEXT))
|
|
$(DEL) $(wildcard ./designer/*$(OEXT))
|
|
$(DEL) $(wildcard ./designer/*$(PPUEXT))
|
|
$(DEL) $(wildcard ./debugger/*$(OEXT))
|
|
$(DEL) $(wildcard ./debugger/*$(PPUEXT))
|
|
$(DEL) $(wildcard ./packager/*$(OEXT))
|
|
$(DEL) $(wildcard ./packager/*$(PPUEXT))
|
|
ifeq ($(OS_TARGET), win32)
|
|
$(DEL) $(wildcard *.res)
|
|
$(DEL) lazarus.owr
|
|
endif
|
|
|
|
clean: cleanall cleanide
|
|
# end.
|
|
|