1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417 |
- {$ifdef Delphi}
- const fpcmakeini : array[0..132] of string[240]=(
- {$else Delphi}
- const fpcmakeini : array[0..132,1..240] of char=(
- {$endif Delphi}
- ';'#013#010+
- '; Templates used by fpcmake to create a Makefile from Makefile.fpc'#013+
- #010+
- ';'#013#010+
- #013#010+
- '[osdetect]'#013#010+
- '#####################################################################'#013+
- #010+
- '# Autodetect OS (Linux or Dos or Windows NT or OS/2)'#013#010+
- '# define inUnix when runnin','g under Unix like environment'#013#010+
- '# (Linux,FreeBSD,NetBSD,Cygwin)'#013#010+
- '# define inWinNT when running under WinNT'#013#010+
- '# define inOS2 when running under OS/2'#013#010+
- '# define inCygwin when running under Cygwin32'#013#010+
- '################################','####################################'+
- '#'#013#010+
- #013#010+
- '# We need only / in the path also remove the current dir'#013#010+
- 'override PATH:=$(subst \,/,$(PATH))'#013#010+
- #013#010+
- '# Determine if we'#039've a unix searchpath using : by looking for a ;'#013+
- #010+
- '# that normally doesn'#039't exists in p','ath names.'#013#010+
- 'ifeq ($(findstring ;,$(PATH)),)'#013#010+
- 'inUnix=1'#013#010+
- 'SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))'#013#010+
- 'else'#013#010+
- 'SEARCHPATH:=$(subst ;, ,$(PATH))'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Search for PWD and determine also if we are under linux'#013#010+
- 'PWD:=$(strip $(wildcard $(a','ddsuffix /pwd.exe,$(SEARCHPATH))))'#013#010+
- 'ifeq ($(PWD),)'#013#010+
- 'PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))'#013#010+
- 'ifeq ($(PWD),)'#013#010+
- 'nopwd:'#013#010+
- ' @echo You need the GNU utils package to use this Makefile!'#013+
- #010+
- ' @echo Get ftp://ftp.freepasca','l.org/pub/fpc/dist/go32v2/utilg'+
- 'o32.zip'#013#010+
- ' @exit'#013#010+
- 'else'#013#010+
- 'PWD:=$(firstword $(PWD))'#013#010+
- 'SRCEXEEXT='#013#010+
- 'endif'#013#010+
- 'else'#013#010+
- 'PWD:=$(firstword $(PWD))'#013#010+
- 'SRCEXEEXT=.exe'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Detect NT - NT sets OS to Windows_NT'#013#010+
- '# Detect OS/2 - OS/2 has OS2_SHELL de','fined'#013#010+
- 'ifndef inUnix'#013#010+
- 'ifeq ($(OS),Windows_NT)'#013#010+
- 'inWinNT=1'#013#010+
- 'else'#013#010+
- 'ifdef OS2_SHELL'#013#010+
- 'inOS2=1'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'else'#013#010+
- 'ifneq ($(findstring cygwin,$(MACHTYPE)),)'#013#010+
- 'inCygWin=1'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# The extension of batch files / scripts'#013#010+
- 'ifdef inUnix'#013#010+
- 'BAT','CHEXT=.sh'#013#010+
- 'else'#013#010+
- 'ifdef inOS2'#013#010+
- 'BATCHEXT=.cmd'#013#010+
- 'else'#013#010+
- 'BATCHEXT=.bat'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Path Separator, the subst trick is necessary for the \ that can'#039't'+
- ' exists'#013#010+
- '# at the end of a line'#013#010+
- 'ifdef inUnix'#013#010+
- 'PATHSEP=/'#013#010+
- 'else'#013#010+
- 'PATHSEP:=$(subst /,\,/)'#013#010+
- 'en','dif'#013#010+
- #013#010+
- '# Base dir'#013#010+
- 'ifdef PWD'#013#010+
- 'BASEDIR:=$(subst \,/,$(shell $(PWD)))'#013#010+
- '# For Cygwin we need to replace /cygdrive/c/ with c:/'#013#010+
- 'ifdef inCygWin'#013#010+
- 'ifneq ($(findstring /cygdrive/,$(BASEDIR)),)'#013#010+
- 'BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))'#013#010+
- 'BASEDR','IVE:=$(firstword $(subst /, ,$(BASENODIR)))'#013#010+
- 'BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))'#013+
- #010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'else'#013#010+
- 'BASEDIR=.'#013#010+
- 'endif'#013#010+
- #013#010+
- '[fpcdetect]'#013#010+
- '#####################################################################'#013+
- #010+
- '# ','FPC version/target Detection'#013#010+
- '#####################################################################'#013+
- #010+
- #013#010+
- '# What compiler to use ?'#013#010+
- 'ifndef FPC'#013#010+
- '# Compatibility with old makefiles'#013#010+
- 'ifdef PP'#013#010+
- 'FPC=$(PP)'#013#010+
- 'else'#013#010+
- 'ifdef inUnix'#013#010+
- 'CPU_SOURCE=$(shell una','me -m)'#013#010+
- 'ifeq (m68k,$(CPU_SOURCE))'#013#010+
- 'FPC=ppc68k'#013#010+
- 'else'#013#010+
- 'FPC=ppc386'#013#010+
- 'endif'#013#010+
- 'else'#013#010+
- 'FPC=ppc386'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'override FPC:=$(subst $(SRCEXEEXT),,$(FPC))'#013#010+
- 'override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)'#013#010+
- #013#010+
- '# Target OS'#013#010+
- 'ifndef OS_TARGET'#013#010+
- 'OS_T','ARGET:=$(shell $(FPC) -iTO)'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Source OS'#013#010+
- 'ifndef OS_SOURCE'#013#010+
- 'OS_SOURCE:=$(shell $(FPC) -iSO)'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Target CPU'#013#010+
- 'ifndef CPU_TARGET'#013#010+
- 'CPU_TARGET:=$(shell $(FPC) -iTP)'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Source CPU'#013#010+
- 'ifndef CPU_SOURCE'#013#010+
- 'CPU_SOURCE:=$(shell ','$(FPC) -iSP)'#013#010+
- 'endif'#013#010+
- #013#010+
- '# FPC version'#013#010+
- 'ifndef FPC_VERSION'#013#010+
- 'FPC_VERSION:=$(shell $(FPC) -iV)'#013#010+
- 'endif'#013#010+
- #013#010+
- 'export FPC OS_TARGET OS_SOURCE CPU_TARGET CPU_SOURCE FPC_VERSION'#013#010+
- #013#010+
- #013#010+
- '[fpcdircheckenv]'#013#010+
- '###################################################','#################'+
- '#'#013#010+
- '# FPCDIR Setting'#013#010+
- '#####################################################################'#013+
- #010+
- #013#010+
- '# Test FPCDIR to look if the RTL dir exists'#013#010+
- 'ifdef FPCDIR'#013#010+
- 'override FPCDIR:=$(subst \,/,$(FPCDIR))'#013#010+
- 'ifeq ($(wildcard $(addprefix ','$(FPCDIR)/,rtl units)),)'#013#010+
- 'override FPCDIR=wrong'#013#010+
- 'endif'#013#010+
- 'else'#013#010+
- 'override FPCDIR=wrong'#013#010+
- 'endif'#013#010+
- #013#010+
- #013#010+
- '[fpcdirdetect]'#013#010+
- '# Detect FPCDIR'#013#010+
- 'ifeq ($(FPCDIR),wrong)'#013#010+
- 'ifdef inUnix'#013#010+
- 'override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)'#013#010+
- 'ifeq ($(wildcard $(FPC','DIR)/units),)'#013#010+
- 'override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)'#013#010+
- 'endif'#013#010+
- 'else'#013#010+
- 'override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(add'+
- 'suffix /$(FPC),$(SEARCHPATH))))))'#013#010+
- 'override FPCDIR:=$(FPCDIR)/..'#013#010+
- 'ifeq ($(wildcard $(addprefix $(','FPCDIR)/,rtl units)),)'#013#010+
- 'override FPCDIR:=$(FPCDIR)/..'#013#010+
- 'ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)'#013#010+
- 'override FPCDIR=c:/pp'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Units dir'#013#010+
- 'UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))'#013#010+
- #013#010+
- '# Packages',' dir'#013#010+
- 'PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages)'#013#010+
- #013#010+
- #013#010+
- '[shelltools]'#013#010+
- '#####################################################################'#013+
- #010+
- '# Shell tools'#013#010+
- '#####################################################################'#013+
- #010+
- #013#010+
- '# ','Echo that can redir (must be able run in the default OS shell)'#013+
- #010+
- 'ifndef ECHOREDIR'#013#010+
- 'ECHOREDIR:=$(subst /,$(PATHSEP),$(ECHO))'#013#010+
- 'endif'#013#010+
- #013#010+
- '# To copy pograms'#013#010+
- 'ifndef COPY'#013#010+
- 'COPY:=$(CPPROG) -fp'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Copy a whole tree'#013#010+
- 'ifndef COPYTREE'#013#010+
- 'COPYTRE','E:=$(CPPROG) -rfp'#013#010+
- 'endif'#013#010+
- #013#010+
- '# To move pograms'#013#010+
- 'ifndef MOVE'#013#010+
- 'MOVE:=$(MVPROG) -f'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Check delete program'#013#010+
- 'ifndef DEL'#013#010+
- 'DEL:=$(RMPROG) -f'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Check deltree program'#013#010+
- 'ifndef DELTREE'#013#010+
- 'DELTREE:=$(RMPROG) -rf'#013#010+
- 'endif'#013#010+
- #013#010+
- '# To install ','files'#013#010+
- 'ifndef INSTALL'#013#010+
- 'ifdef inUnix'#013#010+
- 'INSTALL:=$(GINSTALL) -c -m 644'#013#010+
- 'else'#013#010+
- 'INSTALL:=$(COPY)'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# To install programs'#013#010+
- 'ifndef INSTALLEXE'#013#010+
- 'ifdef inUnix'#013#010+
- 'INSTALLEXE:=$(GINSTALL) -c -m 755'#013#010+
- 'else'#013#010+
- 'INSTALLEXE:=$(COPY)'#013#010+
- 'endif'#013#010+
- 'endif'#013,#010+
- #013#010+
- '# To make a directory.'#013#010+
- 'ifndef MKDIR'#013#010+
- 'MKDIR:=$(GINSTALL) -m 755 -d'#013#010+
- 'endif'#013#010+
- #013#010+
- 'export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKD'+
- 'IR'#013#010+
- #013#010+
- #013#010+
- '[defaulttools]'#013#010+
- '##################################################################','##'+
- '#'#013#010+
- '# Default Tools'#013#010+
- '#####################################################################'#013+
- #010+
- #013#010+
- '# assembler, redefine it if cross compiling'#013#010+
- 'ifndef AS'#013#010+
- 'AS=as'#013#010+
- 'endif'#013#010+
- #013#010+
- '# linker, but probably not used'#013#010+
- 'ifndef LD'#013#010+
- 'LD=ld'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Resource co','mpiler'#013#010+
- 'ifndef RC'#013#010+
- 'RC=rc'#013#010+
- 'endif'#013#010+
- #013#010+
- '# ppas.bat / ppas.sh'#013#010+
- 'PPAS=ppas$(BATCHEXT)'#013#010+
- #013#010+
- '# ldconfig to rebuild .so cache'#013#010+
- 'ifdef inUnix'#013#010+
- 'LDCONFIG=ldconfig'#013#010+
- 'else'#013#010+
- 'LDCONFIG='#013#010+
- 'endif'#013#010+
- #013#010+
- 'ifdef DATE'#013#010+
- 'DATESTR:=$(shell $(DATE) +%Y%m%d)'#013#010+
- 'else'#013#010+
- 'DATESTR='#013#010+
- 'endi','f'#013#010+
- #013#010+
- '# Look if UPX is found for go32v2 and win32. We can'#039't use $UPX bec'+
- 'uase'#013#010+
- '# upx uses that one itself (PFV)'#013#010+
- 'ifndef UPXPROG'#013#010+
- 'ifeq ($(OS_TARGET),go32v2)'#013#010+
- 'UPXPROG:=1'#013#010+
- 'endif'#013#010+
- 'ifeq ($(OS_TARGET),win32)'#013#010+
- 'UPXPROG:=1'#013#010+
- 'endif'#013#010+
- 'ifdef UPXPROG'#013#010+
- 'UPXPR','OG:=$(strip $(wildcard $(addsuffix /upx$(SRCEXEEXT),$(SEARCHPAT'+
- 'H))))'#013#010+
- 'ifeq ($(UPXPROG),)'#013#010+
- 'UPXPROG='#013#010+
- 'else'#013#010+
- 'UPXPROG:=$(firstword $(UPXPROG))'#013#010+
- 'endif'#013#010+
- 'else'#013#010+
- 'UPXPROG='#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'export UPXPROG'#013#010+
- #013#010+
- '# Zip options'#013#010+
- 'ZIPOPT=-9'#013#010+
- 'ZIPEXT=.zip'#013#010+
- #013#010+
- '# Ta','r options'#013#010+
- 'ifeq ($(USETAR),bz2)'#013#010+
- 'TAROPT=vI'#013#010+
- 'TAREXT=.tar.bz2'#013#010+
- 'else'#013#010+
- 'TAROPT=vz'#013#010+
- 'TAREXT=.tar.gz'#013#010+
- 'endif'#013#010+
- #013#010+
- #013#010+
- '[extensions]'#013#010+
- '#####################################################################'#013+
- #010+
- '# Default extensions'#013#010+
- '############################','########################################'+
- '#'#013#010+
- #013#010+
- '# Default needed extensions (Go32v2,Linux)'#013#010+
- 'LOADEREXT=.as'#013#010+
- 'EXEEXT=.exe'#013#010+
- 'PPLEXT=.ppl'#013#010+
- 'PPUEXT=.ppu'#013#010+
- 'OEXT=.o'#013#010+
- 'ASMEXT=.s'#013#010+
- 'SMARTEXT=.sl'#013#010+
- 'STATICLIBEXT=.a'#013#010+
- 'SHAREDLIBEXT=.so'#013#010+
- 'STATICLIBPREFIX=libp'#013#010+
- 'RSTEXT','=.rst'#013#010+
- 'FPCMADE=fpcmade'#013#010+
- #013#010+
- #013#010+
- '# Go32v1'#013#010+
- 'ifeq ($(OS_TARGET),go32v1)'#013#010+
- 'PPUEXT=.pp1'#013#010+
- 'OEXT=.o1'#013#010+
- 'ASMEXT=.s1'#013#010+
- 'SMARTEXT=.sl1'#013#010+
- 'STATICLIBEXT=.a1'#013#010+
- 'SHAREDLIBEXT=.so1'#013#010+
- 'STATICLIBPREFIX='#013#010+
- 'FPCMADE=fpcmade.v1'#013#010+
- 'PACKAGESUFFIX=v1'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Go32v2'#013#010+
- 'ifeq ($(OS_T','ARGET),go32v2)'#013#010+
- 'STATICLIBPREFIX='#013#010+
- 'FPCMADE=fpcmade.dos'#013#010+
- 'ZIPSUFFIX=go32'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Linux'#013#010+
- 'ifeq ($(OS_TARGET),linux)'#013#010+
- 'EXEEXT='#013#010+
- 'HASSHAREDLIB=1'#013#010+
- 'FPCMADE=fpcmade.lnx'#013#010+
- 'ZIPSUFFIX=linux'#013#010+
- 'endif'#013#010+
- #013#010+
- '# FreeBSD'#013#010+
- 'ifeq ($(OS_TARGET),freebsd)'#013#010+
- 'EXEEXT='#013#010+
- 'HAS','SHAREDLIB=1'#013#010+
- 'FPCMADE=fpcmade.freebsd'#013#010+
- 'ZIPSUFFIX=freebsd'#013#010+
- 'endif'#013#010+
- #013#010+
- '# NetBSD'#013#010+
- 'ifeq ($(OS_TARGET),netbsd)'#013#010+
- 'EXEEXT='#013#010+
- 'HASSHAREDLIB=1'#013#010+
- 'FPCMADE=fpcmade.netbsd'#013#010+
- 'ZIPSUFFIX=netbsd'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Win32'#013#010+
- 'ifeq ($(OS_TARGET),win32)'#013#010+
- 'PPUEXT=.ppw'#013#010+
- 'OEXT=.ow'#013#010+
- 'A','SMEXT=.sw'#013#010+
- 'SMARTEXT=.slw'#013#010+
- 'STATICLIBEXT=.aw'#013#010+
- 'SHAREDLIBEXT=.dll'#013#010+
- 'FPCMADE=fpcmade.w32'#013#010+
- 'ZIPSUFFIX=w32'#013#010+
- 'endif'#013#010+
- #013#010+
- '# OS/2'#013#010+
- 'ifeq ($(OS_TARGET),os2)'#013#010+
- 'PPUEXT=.ppo'#013#010+
- 'ASMEXT=.so2'#013#010+
- 'OEXT=.oo2'#013#010+
- 'AOUTEXT=.out'#013#010+
- 'SMARTEXT=.so'#013#010+
- 'STATICLIBEXT=.ao2'#013#010+
- 'SHAREDLIBEXT=.d','ll'#013#010+
- 'FPCMADE=fpcmade.os2'#013#010+
- 'ZIPSUFFIX=emx'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Amiga'#013#010+
- 'ifeq ($(OS_TARGET),amiga)'#013#010+
- 'EXEEXT='#013#010+
- 'PPUEXT=.ppa'#013#010+
- 'ASMEXT=.asm'#013#010+
- 'OEXT=.o'#013#010+
- 'SMARTEXT=.sl'#013#010+
- 'STATICLIBEXT=.a'#013#010+
- 'SHAREDLIBEXT=.library'#013#010+
- 'FPCMADE=fpcmade.amg'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Atari'#013#010+
- 'ifeq ($(OS_TARGET)',',atari)'#013#010+
- 'PPUEXT=.ppt'#013#010+
- 'ASMEXT=.s'#013#010+
- 'OEXT=.o'#013#010+
- 'SMARTEXT=.sl'#013#010+
- 'STATICLIBEXT=.a'#013#010+
- 'EXEEXT=.ttp'#013#010+
- 'FPCMADE=fpcmade.ata'#013#010+
- 'endif'#013#010+
- #013#010+
- '[defaultdirs]'#013#010+
- '#####################################################################'#013+
- #010+
- '# Default Directories'#013#010+
- '###############','#####################################################'+
- '#'#013#010+
- #013#010+
- '# Units dir'#013#010+
- 'ifdef REQUIRE_UNITSDIR'#013#010+
- 'override UNITSDIR+=$(REQUIRE_UNITSDIR)'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Units dir'#013#010+
- 'ifdef REQUIRE_PACKAGESDIR'#013#010+
- 'override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)'#013#010+
- 'endif'#013#010+
- #013#010+
- #013,#010+
- '# Linux, netbsd and freebsd use unix dirs with /usr/bin, /usr/lib'#013#010+
- '# When zipping use the target as default, when normal install then'#013+
- #010+
- '# use the source os as default'#013#010+
- 'ifdef ZIPINSTALL'#013#010+
- '# Zipinstall'#013#010+
- 'ifeq ($(OS_TARGET),linux)'#013#010+
- 'UNIXINSTALLDI','R=1'#013#010+
- 'endif'#013#010+
- 'ifeq ($(OS_TARGET),freebsd)'#013#010+
- 'UNIXINSTALLDIR=1'#013#010+
- 'endif'#013#010+
- 'ifeq ($(OS_TARGET),netbsd)'#013#010+
- 'UNIXINSTALLDIR=1'#013#010+
- 'endif'#013#010+
- 'else'#013#010+
- '# Normal install'#013#010+
- 'ifeq ($(OS_SOURCE),linux)'#013#010+
- 'UNIXINSTALLDIR=1'#013#010+
- 'endif'#013#010+
- 'ifeq ($(OS_SOURCE),freebsd)'#013#010+
- 'UNIXINSTALLDIR=1',#013#010+
- 'endif'#013#010+
- 'ifeq ($(OS_SOURCE),netbsd)'#013#010+
- 'UNIXINSTALLDIR=1'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# set the prefix directory where to install everything'#013#010+
- 'ifndef INSTALL_PREFIX'#013#010+
- 'ifdef UNIXINSTALLDIR'#013#010+
- 'INSTALL_PREFIX=/usr/local'#013#010+
- 'else'#013#010+
- 'ifdef INSTALL_FPCPACKAGE'#013#010+
- 'INSTALL_B','ASEDIR:=/pp'#013#010+
- 'else'#013#010+
- 'INSTALL_BASEDIR:=/$(PACKAGE_NAME)'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'export INSTALL_PREFIX'#013#010+
- #013#010+
- '# Where to place the resulting zip files'#013#010+
- 'ifndef DIST_DESTDIR'#013#010+
- 'DIST_DESTDIR:=$(BASEDIR)'#013#010+
- 'endif'#013#010+
- 'export DIST_DESTDIR'#013#010+
- #013#010+
- #013#010+
- '###################','#################################################'+
- '#'#013#010+
- '# Install Directories'#013#010+
- '#####################################################################'#013+
- #010+
- #013#010+
- '# set the base directory where to install everything'#013#010+
- 'ifndef INSTALL_BASEDIR'#013#010+
- 'ifdef UNIXINST','ALLDIR'#013#010+
- 'ifdef INSTALL_FPCPACKAGE'#013#010+
- 'INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)'#013#010+
- 'else'#013#010+
- 'INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)'#013#010+
- 'endif'#013#010+
- 'else'#013#010+
- 'INSTALL_BASEDIR:=$(INSTALL_PREFIX)'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# set the directory ','where to install the binaries'#013#010+
- 'ifndef INSTALL_BINDIR'#013#010+
- 'ifdef UNIXINSTALLDIR'#013#010+
- 'INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin'#013#010+
- 'else'#013#010+
- 'INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin'#013#010+
- '# for FPC packages install the binaries under their os target subdir'#013+
- #010+
- 'ifdef INS','TALL_FPCPACKAGE'#013#010+
- 'INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(OS_TARGET)'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# set the directory where to install the units.'#013#010+
- 'ifndef INSTALL_UNITDIR'#013#010+
- 'INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(OS_TARGET)'#013#010+
- 'ifdef INSTALL_FPCPACKAG','E'#013#010+
- 'ifdef PACKAGE_NAME'#013#010+
- 'INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Where to install shared libraries'#013#010+
- 'ifndef INSTALL_LIBDIR'#013#010+
- 'ifdef UNIXINSTALLDIR'#013#010+
- 'INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib'#013#010+
- 'else'#013#010+
- 'INSTALL_LIBDIR',':=$(INSTALL_UNITDIR)'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Where the source files will be stored'#013#010+
- 'ifndef INSTALL_SOURCEDIR'#013#010+
- 'ifdef UNIXINSTALLDIR'#013#010+
- 'ifdef INSTALL_FPCPACKAGE'#013#010+
- 'INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/src/fpc-$(FPC_VERSION)/$(PACKAGE_'+
- 'NAME)'#013#010+
- 'else'#013#010+
- 'INST','ALL_SOURCEDIR:=$(INSTALL_PREFIX)/src/$(PACKAGE_NAME)-$(PACKAGE_V'+
- 'ERSION)'#013#010+
- 'endif'#013#010+
- 'else'#013#010+
- 'ifdef INSTALL_FPCPACKAGE'#013#010+
- 'INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)'#013#010+
- 'else'#013#010+
- 'INSTALL_SOURCEDIRL:=$(INSTALL_BASEDIR)/source'#013#010+
- 'endif'#013#010+
- 'endif'#013,#010+
- 'endif'#013#010+
- #013#010+
- '# Where the doc files will be stored'#013#010+
- 'ifndef INSTALL_DOCDIR'#013#010+
- 'ifdef UNIXINSTALLDIR'#013#010+
- 'ifdef INSTALL_FPCPACKAGE'#013#010+
- 'INSTALL_DOCDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/$(PACKAGE_NAM'+
- 'E)'#013#010+
- 'else'#013#010+
- 'INSTALL_DOCDIR:=$(INSTALL_PREFIX)/doc/$(P','ACKAGE_NAME)-$(PACKAGE_VERS'+
- 'ION)'#013#010+
- 'endif'#013#010+
- 'else'#013#010+
- 'ifdef INSTALL_FPCPACKAGE'#013#010+
- 'INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)'#013#010+
- 'else'#013#010+
- 'INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Where to install the examples, under linu','x we use the doc dir'#013#010+
- '# because the copytree command will create a subdir itself'#013#010+
- 'ifndef INSTALL_EXAMPLEDIR'#013#010+
- 'ifdef UNIXINSTALLDIR'#013#010+
- 'ifdef INSTALL_FPCPACKAGE'#013#010+
- 'INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/'+
- '$(PACKAGE_NAM','E)'#013#010+
- 'else'#013#010+
- 'INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VE'+
- 'RSION)'#013#010+
- 'endif'#013#010+
- 'else'#013#010+
- 'ifdef INSTALL_FPCPACKAGE'#013#010+
- 'INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)'#013#010+
- 'else'#013#010+
- 'INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/exa','mples'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Where the some extra (data)files will be stored'#013#010+
- 'ifndef INSTALL_DATADIR'#013#010+
- 'INSTALL_DATADIR=$(INSTALL_BASEDIR)'#013#010+
- 'endif'#013#010+
- #013#010+
- #013#010+
- '[dirlibc]'#013#010+
- '# On linux, try to find where libgcc.a is.'#013#010+
- 'ifdef inUnix'#013#010+
- 'ifndef GCCLIBDIR'#013#010+
- 'G','CCLIBDIR:=$(shell dirname `(gcc -v 2>&1)| head -n 1| awk '#039'{ pri'+
- 'nt $$4 } '#039'`)'#013#010+
- 'endif'#013#010+
- 'ifndef OTHERLIBDIR'#013#010+
- 'OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '#039'{ ORS=" '+
- '"; print $1 }'#039')'#013#010+
- 'endif'#013#010+
- 'export GCCLIBDIR OTHERLIB'#013#010+
- 'endif'#013#010+
- #013#010+
- #013#010+
- '[command','_begin]'#013#010+
- '#####################################################################'#013+
- #010+
- '# Compiler Command Line'#013#010+
- '#####################################################################'#013+
- #010+
- #013#010+
- '# Load commandline OPTDEF and add FPC_CPU define'#013#010+
- 'override FPC','OPTDEF=$(CPU_TARGET)'#013#010+
- #013#010+
- '# Load commandline OPT and add target and unit dir to be sure'#013#010+
- 'ifneq ($(OS_TARGET),$(OS_SOURCE))'#013#010+
- 'override FPCOPT+=-T$(OS_TARGET)'#013#010+
- 'endif'#013#010+
- #013#010+
- '# User dirs should be first, so they are looked at first'#013#010+
- 'ifdef UNITDIR'#013#010+
- 'ove','rride FPCOPT+=$(addprefix -Fu,$(UNITDIR))'#013#010+
- 'endif'#013#010+
- 'ifdef LIBDIR'#013#010+
- 'override FPCOPT+=$(addprefix -Fl,$(LIBDIR))'#013#010+
- 'endif'#013#010+
- 'ifdef OBJDIR'#013#010+
- 'override FPCOPT+=$(addprefix -Fo,$(OBJDIR))'#013#010+
- 'endif'#013#010+
- 'ifdef INCDIR'#013#010+
- 'override FPCOPT+=$(addprefix -Fi,$(INCDIR))'#013,#010+
- 'endif'#013#010+
- #013#010+
- '# Smartlinking'#013#010+
- 'ifdef LINKSMART'#013#010+
- 'override FPCOPT+=-XX'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Smartlinking creation'#013#010+
- 'ifdef CREATESMART'#013#010+
- 'override FPCOPT+=-CX'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Debug'#013#010+
- 'ifdef DEBUG'#013#010+
- 'override FPCOPT+=-gl'#013#010+
- 'override FPCOPTDEF+=DEBUG'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Release m','ode (strip, optimize and don'#039't load ppc386.cfg)'#013#010+
- 'ifdef RELEASE'#013#010+
- 'ifeq (CPU_TARGET,i386)'#013#010+
- 'FPCCPUOPT:=-OG2p3'#013#010+
- 'else'#013#010+
- 'FPCCPUOPT:='#013#010+
- 'endif'#013#010+
- 'override FPCOPT+=-Xs $(FPCCPUOPT) -n'#013#010+
- 'override FPCOPTDEF+=RELEASE'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Strip'#013#010+
- 'ifdef STRIP'#013#010+
- 'override ','FPCOPT+=-Xs'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Optimizer'#013#010+
- 'ifdef OPTIMIZE'#013#010+
- 'override FPCOPT+=-OG2p3'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Verbose settings (warning,note,info)'#013#010+
- 'ifdef VERBOSE'#013#010+
- 'override FPCOPT+=-vwni'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Needed compiler options'#013#010+
- 'ifdef COMPILER_OPTIONS'#013#010+
- 'override FPCOPT+','=$(COMPILER_OPTIONS)'#013#010+
- 'endif'#013#010+
- 'ifdef COMPILER_UNITDIR'#013#010+
- 'override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))'#013#010+
- 'endif'#013#010+
- 'ifdef COMPILER_LIBRARYDIR'#013#010+
- 'override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))'#013#010+
- 'endif'#013#010+
- 'ifdef COMPILER_OBJECTDIR'#013#010+
- 'overrid','e FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))'#013#010+
- 'endif'#013#010+
- 'ifdef COMPILER_INCLUDEDIR'#013#010+
- 'override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Target dirs and the prefix to use for clean/install'#013#010+
- 'ifdef COMPILER_TARGETDIR'#013#010+
- 'override',' FPCOPT+=-FE$(COMPILER_TARGETDIR)'#013#010+
- 'ifeq ($(COMPILER_TARGETDIR),.)'#013#010+
- 'override TARGETDIRPREFIX='#013#010+
- 'else'#013#010+
- 'override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Unit target dir'#013#010+
- 'ifdef COMPILER_UNITTARGETDIR'#013#010+
- 'override FPCOPT+=-FU$(COMP','ILER_UNITTARGETDIR)'#013#010+
- 'ifeq ($(COMPILER_UNITTARGETDIR),.)'#013#010+
- 'override UNITTARGETDIRPREFIX='#013#010+
- 'else'#013#010+
- 'override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/'#013#010+
- 'endif'#013#010+
- 'else'#013#010+
- 'ifdef COMPILER_TARGETDIR'#013#010+
- 'override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETD','IR)'#013#010+
- 'override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '[command_libc]'#013#010+
- '# Add GCC lib path if asked'#013#010+
- 'ifdef GCCLIBDIR'#013#010+
- 'override FPCOPT+=-Fl$(GCCLIBDIR)'#013#010+
- 'endif'#013#010+
- 'ifdef OTHERLIBDIR'#013#010+
- 'override FPCOPT+=$(addprefix -Fl,$(OTHERLIBDIR))',#013#010+
- 'endif'#013#010+
- #013#010+
- #013#010+
- '[command_end]'#013#010+
- '# Add commandline options last so they can override'#013#010+
- 'ifdef OPT'#013#010+
- 'override FPCOPT+=$(OPT)'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Add defines from FPCOPTDEF to FPCOPT'#013#010+
- 'ifdef FPCOPTDEF'#013#010+
- 'override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))'#013#010+
- 'endif'#013#010+
- #013#010+
- '#',' Was a config file specified ?'#013#010+
- 'ifdef CFGFILE'#013#010+
- 'override FPCOPT+=@$(CFGFILE)'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Use the environment to pass commandline options?'#013#010+
- 'ifdef USEENV'#013#010+
- 'override FPCEXTCMD:=$(FPCOPT)'#013#010+
- 'override FPCOPT:=!FPCEXTCMD'#013#010+
- 'export FPCEXTCMD'#013#010+
- 'endif'#013#010+
- #013#010+
- '#',' Compiler commandline'#013#010+
- 'override COMPILER:=$(FPC) $(FPCOPT)'#013#010+
- #013#010+
- '# also call ppas if with command option -s'#013#010+
- '# but only if the OS_SOURCE and OS_TARGET are equal'#013#010+
- 'ifeq (,$(findstring -s ,$(COMPILER)))'#013#010+
- 'EXECPPAS='#013#010+
- 'else'#013#010+
- 'ifeq ($(OS_SOURCE),$(OS_T','ARGET))'#013#010+
- 'EXECPPAS:=@$(PPAS)'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- #013#010+
- '[loaderrules]'#013#010+
- '#####################################################################'#013+
- #010+
- '# Loaders'#013#010+
- '#####################################################################'#013+
- #010+
- #013#010+
- '.PHONY: fpc_loaders'#013#010+
- #013#010,
- 'ifdef TARGET_LOADERS'#013#010+
- 'override ALLTARGET+=fpc_loaders'#013#010+
- 'override CLEANTARGET+=fpc_loaders_clean'#013#010+
- 'override INSTALLTARGET+=fpc_loaders_install'#013#010+
- #013#010+
- 'override LOADEROFILES:=$(addsuffix $(OEXT),$(TARGET_LOADERS))'#013#010+
- 'endif'#013#010+
- #013#010+
- '%$(OEXT): %$(LOADEREXT)'#013#010,
- ' $(AS) -o $*$(OEXT) $<'#013#010+
- #013#010+
- 'fpc_loaders: $(LOADEROFILES)'#013#010+
- #013#010+
- 'fpc_loaders_clean:'#013#010+
- ' -$(DEL) $(LOADEROFILES)'#013#010+
- #013#010+
- 'fpc_loaders_install:'#013#010+
- ' $(MKDIR) $(INSTALL_UNITDIR)'#013#010+
- ' $(INSTALL) $(LOADEROFILES) $(INSTALL_UNITDIR)'#013#010+
- #013#010+
- #013#010+
- '[u','nitrules]'#013#010+
- '#####################################################################'#013+
- #010+
- '# Units'#013#010+
- '#####################################################################'#013+
- #010+
- #013#010+
- '.PHONY: fpc_units'#013#010+
- #013#010+
- 'ifdef TARGET_UNITS'#013#010+
- 'override ALLTARGET+=fpc_units'#013#010+
- #013#010+
- 'ov','erride UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))'#013#010+
- 'override INSTALLPPUFILES+=$(UNITPPUFILES)'#013#010+
- 'override CLEANPPUFILES+=$(UNITPPUFILES)'#013#010+
- 'endif'#013#010+
- #013#010+
- 'fpc_units: $(UNITPPUFILES)'#013#010+
- #013#010+
- #013#010+
- '[exerules]'#013#010+
- '###########################################','#########################'+
- '#'#013#010+
- '# Exes'#013#010+
- '#####################################################################'#013+
- #010+
- #013#010+
- '.PHONY: fpc_exes'#013#010+
- #013#010+
- 'ifdef TARGET_PROGRAMS'#013#010+
- 'override EXEFILES=$(addsuffix $(EXEEXT),$(TARGET_PROGRAMS))'#013#010+
- 'override EXEOFILES:=$(addsu','ffix $(OEXT),$(TARGET_PROGRAMS)) $(addpre'+
- 'fix $(STATICLIBPREFIX),$(addsuffix $(STATICLIBEXT),$(TARGET_PROGRAMS))'+
- ')'#013#010+
- #013#010+
- 'override ALLTARGET+=fpc_exes'#013#010+
- 'override INSTALLEXEFILES+=$(EXEFILES)'#013#010+
- 'override CLEANEXEFILES+=$(EXEFILES) $(EXEOFILES)'#013#010+
- 'ifeq ','($(OS_TARGET),os2)'#013#010+
- 'override CLEANEXEFILES+=$(addsuffix $(AOUTEXT),$(TARGET_PROGRAMS))'#013+
- #010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- 'fpc_exes: $(EXEFILES)'#013#010+
- #013#010+
- #013#010+
- '[rstrules]'#013#010+
- '#####################################################################'#013+
- #010+
- '# Resource strings'#013#010+
- '######','##############################################################'+
- '#'#013#010+
- #013#010+
- 'ifdef TARGET_RSTS'#013#010+
- 'override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))'#013#010+
- #013#010+
- 'override CLEANRSTFILES+=$(RSTFILES)'#013#010+
- 'endif'#013#010+
- #013#010+
- #013#010+
- '[examplerules]'#013#010+
- '###############################','#####################################'+
- '#'#013#010+
- '# Examples'#013#010+
- '#####################################################################'#013+
- #010+
- #013#010+
- '.PHONY: fpc_examples'#013#010+
- #013#010+
- 'ifdef TARGET_EXAMPLES'#013#010+
- 'HASEXAMPLES=1'#013#010+
- 'override EXAMPLESOURCEFILES:=$(wildcard $(addsuffix .','pp,$(TARGET_EXA'+
- 'MPLES)) $(addsuffix .pas,$(TARGET_EXAMPLES)))'#013#010+
- 'override EXAMPLEFILES:=$(addsuffix $(EXEEXT),$(TARGET_EXAMPLES))'#013#010+
- 'override EXAMPLEOFILES:=$(addsuffix $(OEXT),$(TARGET_EXAMPLES)) $(addp'+
- 'refix $(STATICLIBPREFIX),$(addsuffix $(STA','TICLIBEXT),$(TARGET_EXAMPL'+
- 'ES)))'#013#010+
- #013#010+
- 'override CLEANEXEFILES+=$(EXAMPLEFILES) $(EXAMPLEOFILES)'#013#010+
- 'ifeq ($(OS_TARGET),os2)'#013#010+
- 'override CLEANEXEFILES+=$(addsuffix $(AOUTEXT),$(TARGET_EXAMPLES))'#013+
- #010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'ifdef TARGET_EXAMPLEDIRS'#013#010+
- 'HASEXAMPLES=1'#013,#010+
- 'endif'#013#010+
- #013#010+
- 'fpc_examples: all $(EXAMPLEFILES) $(addsuffix _all,$(TARGET_EXAMPLEDIR'+
- 'S))'#013#010+
- #013#010+
- #013#010+
- '[compilerules]'#013#010+
- '#####################################################################'#013+
- #010+
- '# General compile rules'#013#010+
- '#######################################','#############################'+
- '#'#013#010+
- #013#010+
- '.PHONY: fpc_packages fpc_all fpc_smart fpc_debug'#013#010+
- #013#010+
- '$(FPCMADE): $(ALLTARGET)'#013#010+
- ' @$(ECHOREDIR) Compiled > $(FPCMADE)'#013#010+
- #013#010+
- 'fpc_packages: $(COMPILEPACKAGES)'#013#010+
- #013#010+
- 'fpc_all: fpc_packages $(FPCMADE)'#013#010+
- #013#010+
- 'fpc_smart',':'#013#010+
- ' $(MAKE) all LINKSMART=1 CREATESMART=1'#013#010+
- #013#010+
- 'fpc_debug:'#013#010+
- ' $(MAKE) all DEBUG=1'#013#010+
- #013#010+
- '# General compile rules, available for both possible .pp and .pas exte'+
- 'nsions'#013#010+
- #013#010+
- '.SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .pp'#013#010+
- #013#010+
- '%$(PPUEXT): %.','pp'#013#010+
- ' $(COMPILER) $<'#013#010+
- ' $(EXECPPAS)'#013#010+
- #013#010+
- '%$(PPUEXT): %.pas'#013#010+
- ' $(COMPILER) $<'#013#010+
- ' $(EXECPPAS)'#013#010+
- #013#010+
- '%$(EXEEXT): %.pp'#013#010+
- ' $(COMPILER) $<'#013#010+
- ' $(EXECPPAS)'#013#010+
- #013#010+
- '%$(EXEEXT): %.pas'#013#010+
- ' $(COMPILER) $<'#013#010+
- ' $(EXECP','PAS)'#013#010+
- #013#010+
- '# Search paths for .ppu and .pp and .pas'#013#010+
- 'vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)'#013#010+
- 'vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)'#013#010+
- 'vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)'#013#010+
- #013#010+
- #013#010+
- '[libraryrules]'#013#010+
- '###########','#########################################################'+
- '#'#013#010+
- '# Library'#013#010+
- '#####################################################################'#013+
- #010+
- #013#010+
- '.PHONY: fpc_shared'#013#010+
- #013#010+
- 'ifndef LIB_FULLNAME'#013#010+
- 'ifdef LIB_VERSION'#013#010+
- 'LIB_FULLNAME=$(LIB_NAME).$(LIB_VER','SION)'#013#010+
- 'else'#013#010+
- 'LIB_FULLNAME=$(LIB_NAME)'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Default sharedlib units are all unit objects'#013#010+
- 'ifndef LIB_SHAREDUNITS'#013#010+
- 'LIB_SHAREDUNITS:=$(TARGET_UNITS)'#013#010+
- 'endif'#013#010+
- #013#010+
- 'fpc_shared: all'#013#010+
- 'ifdef HASSHAREDLIB'#013#010+
- ' $(PPUMOVE) $(LIB_SHAREDUN','ITS) -o$(LIB_FULLNAME)'#013#010+
- 'else'#013#010+
- ' @$(ECHO) Shared Libraries not supported'#013#010+
- 'endif'#013#010+
- #013#010+
- #013#010+
- '[installrules]'#013#010+
- '#####################################################################'#013+
- #010+
- '# Install rules'#013#010+
- '##############################################','######################'+
- '#'#013#010+
- #013#010+
- '.PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall'#013#010+
- #013#010+
- 'ifdef INSTALL_UNITS'#013#010+
- 'override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))'#013#010+
- 'endif'#013#010+
- #013#010+
- 'ifdef INSTALLPPUFILES'#013#010+
- 'override INSTALLPPULINKFILES:=$(s','ubst $(PPUEXT),$(OEXT),$(INSTALLPPU'+
- 'FILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEX'+
- 'T),$(INSTALLPPUFILES)))'#013#010+
- 'override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(INSTALL'+
- 'PPUFILES))'#013#010+
- 'override INSTALLPPULINKFILES',':=$(wildcard $(addprefix $(UNITTARGETDIR'+
- 'PREFIX),$(INSTALLPPULINKFILES)))'#013#010+
- '# Implicitly install Package.fpc'#013#010+
- 'override INSTALL_CREATEPACKAGEFPC=1'#013#010+
- 'endif'#013#010+
- #013#010+
- 'ifdef INSTALLEXEFILES'#013#010+
- 'override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(INST','ALLEX'+
- 'EFILES))'#013#010+
- 'endif'#013#010+
- #013#010+
- 'fpc_install: all $(INSTALLTARGET)'#013#010+
- 'ifdef INSTALLEXEFILES'#013#010+
- ' $(MKDIR) $(INSTALL_BINDIR)'#013#010+
- '# Compress the exes if upx is defined'#013#010+
- 'ifdef UPXPROG'#013#010+
- ' -$(UPXPROG) $(INSTALLEXEFILES)'#013#010+
- 'endif'#013#010+
- ' $(INSTALLEXE)',' $(INSTALLEXEFILES) $(INSTALL_BINDIR)'#013#010+
- 'endif'#013#010+
- 'ifdef INSTALL_CREATEPACKAGEFPC'#013#010+
- 'ifdef FPCMAKE'#013#010+
- '# If the fpcpackage variable is set then create and install Package.fp'+
- 'c,'#013#010+
- '# a safety check is done if Makefile.fpc is available'#013#010+
- 'ifdef PACKAGE_VERS','ION'#013#010+
- 'ifneq ($(wildcard Makefile.fpc),)'#013#010+
- ' $(FPCMAKE) -p -T$(OS_TARGET) Makefile.fpc'#013#010+
- ' $(MKDIR) $(INSTALL_UNITDIR)'#013#010+
- ' $(INSTALL) Package.fpc $(INSTALL_UNITDIR)'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'ifdef INSTALLPPUFILES'#013#010+
- ' $(','MKDIR) $(INSTALL_UNITDIR)'#013#010+
- ' $(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)'#013#010+
- 'ifneq ($(INSTALLPPULINKFILES),)'#013#010+
- ' $(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)'#013#010+
- 'endif'#013#010+
- 'ifneq ($(wildcard $(LIB_FULLNAME)),)'#013#010+
- ' $(MKDIR',') $(INSTALL_LIBDIR)'#013#010+
- ' $(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)'#013#010+
- 'ifdef inUnix'#013#010+
- ' ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- 'ifdef INSTALL_FILES'#013#010+
- ' $(MKDIR) $(INSTALL_DATADIR)'#013#010+
- ' $(','INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)'#013#010+
- 'endif'#013#010+
- #013#010+
- 'fpc_sourceinstall: distclean'#013#010+
- ' $(MKDIR) $(INSTALL_SOURCEDIR)'#013#010+
- ' $(COPYTREE) $(BASEDIR) $(INSTALL_SOURCEDIR)'#013#010+
- #013#010+
- 'fpc_exampleinstall: $(addsuffix _distclean,$(TARGET_EXAMPLEDI','RS))'#013+
- #010+
- 'ifdef HASEXAMPLES'#013#010+
- ' $(MKDIR) $(INSTALL_EXAMPLEDIR)'#013#010+
- 'endif'#013#010+
- 'ifdef EXAMPLESOURCEFILES'#013#010+
- ' $(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)'#013#010+
- 'endif'#013#010+
- 'ifdef TARGET_EXAMPLEDIRS'#013#010+
- ' $(COPYTREE) $(addsuffix /*,$(TARGET_EXAM','PLEDIRS)) $(INSTALL_'+
- 'EXAMPLEDIR)'#013#010+
- 'endif'#013#010+
- #013#010+
- '[distinstallrules]'#013#010+
- '#####################################################################'#013+
- #010+
- '# Dist Install'#013#010+
- '#####################################################################'#013+
- #010+
- #013#010+
- '.PHONY: fpc_distin','stall'#013#010+
- #013#010+
- 'fpc_distinstall: install exampleinstall'#013#010+
- #013#010+
- #013#010+
- '[zipinstallrules]'#013#010+
- '#####################################################################'#013+
- #010+
- '# Zip'#013#010+
- '#####################################################################'#013+
- #010+
- #013#010+
- '.PHONY: fpc_zipi','nstall fpc_zipsourceinstall fpc_zipexampleinstall'#013+
- #010+
- #013#010+
- '# Temporary path to pack a file, can only use a single deep'#013#010+
- '# subdir, because the deltree can'#039't see the whole tree to remove'#013+
- #010+
- 'ifndef PACKDIR'#013#010+
- 'ifndef inUnix'#013#010+
- 'PACKDIR=$(BASEDIR)/../fpc-pac','k'#013#010+
- 'else'#013#010+
- 'PACKDIR=/tmp/fpc-pack'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Maybe create default zipname from packagename'#013#010+
- 'ifndef ZIPNAME'#013#010+
- 'ifdef DIST_ZIPNAME'#013#010+
- 'ZIPNAME=$(DIST_ZIPNAME)'#013#010+
- 'else'#013#010+
- 'ZIPNAME=$(ZIPPREFIX)$(PACKAGE_NAME)$(ZIPSUFFIX)'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# ZipTarget',#013#010+
- 'ifndef ZIPTARGET'#013#010+
- 'ifdef DIST_ZIPTARGET'#013#010+
- 'ZIPTARGET=DIST_ZIPTARGET'#013#010+
- 'else'#013#010+
- 'ZIPTARGET=install'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Use tar by default under linux'#013#010+
- 'ifndef USEZIP'#013#010+
- 'ifdef inUnix'#013#010+
- 'USETAR=1'#013#010+
- 'endif'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Use a wrapper script by default for Os/2',#013#010+
- 'ifndef inUnix'#013#010+
- 'USEZIPWRAPPER=1'#013#010+
- 'endif'#013#010+
- #013#010+
- '# We need to be able to run in the current OS so fix'#013#010+
- '# the path separator'#013#010+
- 'ifdef USEZIPWRAPPER'#013#010+
- 'ZIPPATHSEP=$(PATHSEP)'#013#010+
- 'ZIPWRAPPER=$(subst /,$(PATHSEP),$(DIST_DESTDIR)/fpczip$(BATCHEXT))'#013+
- #010+
- 'else'#013#010+
- 'ZIP','PATHSEP=/'#013#010+
- 'endif'#013#010+
- #013#010+
- '# Create commands to create the zip/tar file'#013#010+
- 'ZIPCMD_CDPACK:=cd $(subst /,$(ZIPPATHSEP),$(PACKDIR))'#013#010+
- 'ZIPCMD_CDBASE:=cd $(subst /,$(ZIPPATHSEP),$(BASEDIR))'#013#010+
- 'ifdef USETAR'#013#010+
- 'ZIPDESTFILE:=$(DIST_DESTDIR)/$(ZIPNAME)$(TAREXT)'#013#010,
- 'ZIPCMD_ZIP:=$(TARPROG) cf$(TAROPT) $(ZIPDESTFILE) *'#013#010+
- 'else'#013#010+
- 'ZIPDESTFILE:=$(DIST_DESTDIR)/$(ZIPNAME)$(ZIPEXT)'#013#010+
- 'ZIPCMD_ZIP:=$(subst /,$(ZIPPATHSEP),$(ZIPPROG)) -Dr $(ZIPOPT) $(ZIPDES'+
- 'TFILE) *'#013#010+
- 'endif'#013#010+
- #013#010+
- 'fpc_zipinstall:'#013#010+
- ' $(MAKE) $(ZIPTARG','ET) INSTALL_PREFIX=$(PACKDIR) ZIPINSTALL=1'#013+
- #010+
- ' $(MKDIR) $(DIST_DESTDIR)'#013#010+
- ' $(DEL) $(ZIPDESTFILE)'#013#010+
- 'ifdef USEZIPWRAPPER'#013#010+
- '# Handle gecho separate as we need to espace \ with \\'#013#010+
- 'ifneq ($(ECHOREDIR),echo)'#013#010+
- ' $(ECHOREDIR) -e "$(','subst \,\\,$(ZIPCMD_CDPACK))" > $(ZIPWRAP'+
- 'PER)'#013#010+
- ' $(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_ZIP))" >> $(ZIPWRAPPER)'+
- #013#010+
- ' $(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDBASE))" >> $(ZIPWRAPP'+
- 'ER)'#013#010+
- 'else'#013#010+
- ' echo $(ZIPCMD_CDPACK) > $(ZIPWRA','PPER)'#013#010+
- ' echo $(ZIPCMD_ZIP) >> $(ZIPWRAPPER)'#013#010+
- ' echo $(ZIPCMD_CDBASE) >> $(ZIPWRAPPER)'#013#010+
- 'endif'#013#010+
- 'ifdef inUnix'#013#010+
- ' /bin/sh $(ZIPWRAPPER)'#013#010+
- 'else'#013#010+
- ' $(ZIPWRAPPER)'#013#010+
- 'endif'#013#010+
- ' $(DEL) $(ZIPWRAPPER)'#013#010+
- 'else'#013#010+
- ' $(ZIPCMD','_CDPACK) ; $(ZIPCMD_ZIP) ; $(ZIPCMD_CDBASE)'#013#010+
- 'endif'#013#010+
- ' $(DELTREE) $(PACKDIR)'#013#010+
- #013#010+
- 'fpc_zipsourceinstall:'#013#010+
- ' $(MAKE) fpc_zipinstall ZIPTARGET=sourceinstall ZIPSUFFIX=src'#013+
- #010+
- #013#010+
- 'fpc_zipexampleinstall:'#013#010+
- 'ifdef HASEXAMPLES'#013#010+
- ' $(MAKE) f','pc_zipinstall ZIPTARGET=exampleinstall ZIPSUFFIX=ex'+
- 'm'#013#010+
- 'endif'#013#010+
- #013#010+
- 'fpc_zipdistinstall:'#013#010+
- ' $(MAKE) fpc_zipinstall ZIPTARGET=distinstall'#013#010+
- #013#010+
- #013#010+
- '[cleanrules]'#013#010+
- '#####################################################################'#013+
- #010+
- '# Clean rules',#013#010+
- '#####################################################################'#013+
- #010+
- #013#010+
- '.PHONY: fpc_clean fpc_cleanall fpc_distclean'#013#010+
- #013#010+
- 'ifdef EXEFILES'#013#010+
- 'override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES'+
- '))'#013#010+
- 'endif'#013#010+
- #013#010+
- 'ifdef CLEAN_UNITS'#013,#010+
- 'override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))'#013#010+
- 'endif'#013#010+
- #013#010+
- 'ifdef CLEANPPUFILES'#013#010+
- 'override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)'+
- ') $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(C'+
- 'LEANPP','UFILES)))'#013#010+
- 'override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUF'+
- 'ILES))'#013#010+
- 'override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREF'+
- 'IX),$(CLEANPPULINKFILES)))'#013#010+
- 'endif'#013#010+
- #013#010+
- 'fpc_clean: $(CLEANTARGET)'#013#010+
- 'ifdef CLEANEXEFIL','ES'#013#010+
- ' -$(DEL) $(CLEANEXEFILES)'#013#010+
- 'endif'#013#010+
- 'ifdef CLEANPPUFILES'#013#010+
- ' -$(DEL) $(CLEANPPUFILES)'#013#010+
- 'endif'#013#010+
- 'ifneq ($(CLEANPPULINKFILES),)'#013#010+
- ' -$(DEL) $(CLEANPPULINKFILES)'#013#010+
- 'endif'#013#010+
- 'ifdef CLEANRSTFILES'#013#010+
- ' -$(DEL) $(addprefix $(UNITTA','RGETDIRPREFIX),$(CLEANRSTFILES))'+
- #013#010+
- 'endif'#013#010+
- 'ifdef CLEAN_FILES'#013#010+
- ' -$(DEL) $(CLEAN_FILES)'#013#010+
- 'endif'#013#010+
- 'ifdef LIB_NAME'#013#010+
- ' -$(DEL) $(LIB_NAME) $(LIB_FULLNAME)'#013#010+
- 'endif'#013#010+
- ' -$(DEL) $(FPCMADE) Package.fpc $(PPAS) link.res $(FPCEXTFILE) '+
- '$(R','EDIRFILE)'#013#010+
- #013#010+
- 'fpc_distclean: clean'#013#010+
- #013#010+
- '# Also run clean first if targetdir is set. Unittargetdir is always'#013+
- #010+
- '# set if targetdir or unittargetdir is specified'#013#010+
- 'ifdef COMPILER_UNITTARGETDIR'#013#010+
- 'TARGETDIRCLEAN=fpc_clean'#013#010+
- 'endif'#013#010+
- #013#010+
- 'fpc_cleanall: $(CLE','ANTARGET) $(TARGETDIRCLEAN)'#013#010+
- 'ifdef CLEANEXEFILES'#013#010+
- ' -$(DEL) $(CLEANEXEFILES)'#013#010+
- 'endif'#013#010+
- ' -$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIB'+
- 'EXT) *$(SHAREDLIBEXT) *$(PPLEXT)'#013#010+
- ' -$(DELTREE) *$(SMARTEXT)'#013#010+
- ' -$(','DEL) $(FPCMADE) $(PPAS) link.res $(FPCEXTFILE) $(REDIRFIL'+
- 'E)'#013#010+
- 'ifdef AOUTEXT'#013#010+
- ' -$(DEL) *$(AOUTEXT)'#013#010+
- 'endif'#013#010+
- #013#010+
- #013#010+
- '[inforules]'#013#010+
- '#####################################################################'#013+
- #010+
- '# Info rules'#013#010+
- '##########################','##########################################'+
- '#'#013#010+
- #013#010+
- '.PHONY: fpc_info'#013#010+
- #013#010+
- 'fpc_info:'#013#010+
- ' @$(ECHO)'#013#010+
- ' @$(ECHO) == Package info =='#013#010+
- ' @$(ECHO) Package Name..... $(PACKAGE_NAME)'#013#010+
- ' @$(ECHO) Package Version.. $(PACKAGE_VERSION',')'#013#010+
- ' @$(ECHO)'#013#010+
- ' @$(ECHO) == Configuration info =='#013#010+
- ' @$(ECHO)'#013#010+
- ' @$(ECHO) FPC.......... $(FPC)'#013#010+
- ' @$(ECHO) FPC Version.. $(FPC_VERSION)'#013#010+
- ' @$(ECHO) Source CPU... $(CPU_SOURCE)'#013#010+
- ' @$(ECHO) Targ','et CPU... $(CPU_TARGET)'#013#010+
- ' @$(ECHO) Source OS.... $(OS_SOURCE)'#013#010+
- ' @$(ECHO) Target OS.... $(OS_TARGET)'#013#010+
- ' @$(ECHO)'#013#010+
- ' @$(ECHO) == Directory info =='#013#010+
- ' @$(ECHO)'#013#010+
- ' @$(ECHO) Basedir......... $(BASEDIR)'#013#010,
- ' @$(ECHO) FPCDir.......... $(FPCDIR)'#013#010+
- ' @$(ECHO) UnitsDir........ $(UNITSDIR)'#013#010+
- ' @$(ECHO) PackagesDir..... $(PACKAGESDIR)'#013#010+
- ' @$(ECHO)'#013#010+
- ' @$(ECHO) GCC library..... $(GCCLIBDIR)'#013#010+
- ' @$(ECHO) Other libr','ary... $(OTHERLIBDIR)'#013#010+
- ' @$(ECHO)'#013#010+
- ' @$(ECHO) == Tools info =='#013#010+
- ' @$(ECHO)'#013#010+
- ' @$(ECHO) Pwd....... $(PWD)'#013#010+
- ' @$(ECHO) Mv........ $(MVPROG)'#013#010+
- ' @$(ECHO) Cp........ $(CPPROG)'#013#010+
- ' @$(ECHO) Rm........',' $(RMPROG)'#013#010+
- ' @$(ECHO) GInstall.. $(GINSTALL)'#013#010+
- ' @$(ECHO) Echo...... $(ECHO)'#013#010+
- ' @$(ECHO) Date...... $(DATE)'#013#010+
- ' @$(ECHO) FPCMake... $(FPCMAKE)'#013#010+
- ' @$(ECHO) PPUMove... $(PPUMOVE)'#013#010+
- ' @$(ECHO) Upx.......',' $(UPXPROG)'#013#010+
- ' @$(ECHO) Zip....... $(ZIPPROG)'#013#010+
- ' @$(ECHO)'#013#010+
- ' @$(ECHO) == Object info =='#013#010+
- ' @$(ECHO)'#013#010+
- ' @$(ECHO) Target Loaders...... $(TARGET_LOADERS)'#013#010+
- ' @$(ECHO) Target Units........ $(TARGET_UNITS)'#013,#010+
- ' @$(ECHO) Target Programs..... $(TARGET_PROGRAMS)'#013#010+
- ' @$(ECHO) Target Dirs......... $(TARGET_DIRS)'#013#010+
- ' @$(ECHO) Target Examples..... $(TARGET_EXAMPLES)'#013#010+
- ' @$(ECHO) Target ExampleDirs.. $(TARGET_EXAMPLEDIRS)'#013#010+
- ' ',' @$(ECHO)'#013#010+
- ' @$(ECHO) Clean Units......... $(CLEAN_UNITS)'#013#010+
- ' @$(ECHO) Clean Files......... $(CLEAN_FILES)'#013#010+
- ' @$(ECHO)'#013#010+
- ' @$(ECHO) Install Units....... $(INSTALL_UNITS)'#013#010+
- ' @$(ECHO) Install Files....... $(','INSTALL_FILES)'#013#010+
- ' @$(ECHO)'#013#010+
- ' @$(ECHO) == Install info =='#013#010+
- ' @$(ECHO)'#013#010+
- ' @$(ECHO) DateStr.............. $(DATESTR)'#013#010+
- ' @$(ECHO) ZipPrefix............ $(ZIPPREFIX)'#013#010+
- ' @$(ECHO) ZipSuffix............ $(ZI','PSUFFIX)'#013#010+
- ' @$(ECHO) Install FPC Package.. $(INSTALL_FPCPACKAGE)'#013#010+
- ' @$(ECHO)'#013#010+
- ' @$(ECHO) Install base dir..... $(INSTALL_BASEDIR)'#013#010+
- ' @$(ECHO) Install binary dir... $(INSTALL_BINDIR)'#013#010+
- ' @$(ECHO) Install libr','ary dir.. $(INSTALL_LIBDIR)'#013#010+
- ' @$(ECHO) Install units dir.... $(INSTALL_UNITDIR)'#013#010+
- ' @$(ECHO) Install source dir... $(INSTALL_SOURCEDIR)'#013#010+
- ' @$(ECHO) Install doc dir...... $(INSTALL_DOCDIR)'#013#010+
- ' @$(ECHO) Install exam','ple dir.. $(INSTALL_EXAMPLEDIR)'#013#010+
- ' @$(ECHO) Install data dir..... $(INSTALL_DATADIR)'#013#010+
- ' @$(ECHO)'#013#010+
- ' @$(ECHO) Dist destination dir. $(DIST_DESTDIR)'#013#010+
- ' @$(ECHO) Dist zip name........ $(DIST_ZIPNAME)'#013#010+
- ' @$(ECHO',')'#013#010+
- #013#010+
- '[localmakefile]'#013#010+
- '#####################################################################'#013+
- #010+
- '# Local Makefile'#013#010+
- '#####################################################################'#013+
- #010+
- #013#010+
- 'ifneq ($(wildcard fpcmake.loc),)'#013#010+
- 'include fpcmake.loc'#013#010+
- 'e','ndif'#013#010+
- #013#010+
- '[userrules]'#013#010+
- '#####################################################################'#013+
- #010+
- '# Users rules'#013#010+
- '#####################################################################'#013+
- #010
- );
|