File: Makefile.fpc

package info (click to toggle)
lazarus 2.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 214,460 kB
  • sloc: pascal: 1,862,622; xml: 265,709; cpp: 56,595; sh: 3,008; java: 609; makefile: 535; perl: 297; sql: 222; ansic: 137
file content (178 lines) | stat: -rw-r--r-- 4,398 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[package]
name=lcl
version=0.9b

[target]
dirs=interfaces
units=alllclunits
# DO NOT ADD alllclunits to implicitunits. It is just a dummy unit used for compiling.
implicitunits= \
  actnlist \
  arrow \
  avglvltree \
  buttons \
  calendar \
  chart \
  checklst \
  clipbrd \
  clistbox \
  comctrls \
  controls \
  dbactns \
  dbctrls \
  dbgrids \
  dialogs \
  dynamicarray \
  dynhasharray \
  editbtn \
  extctrls \
  extdlgs \
  extendedstrings \
  extgraphics \
  filectrl \
  forms \
  fpcadds \
  graphics \
  graphmath \
  graphtype \
  grids \
  imglist \
  inipropstorage \
  interfacebase \
  lazlinkedlist \
  lclintf \
  lclmemmanager \
  lclproc \
  lclrescache \
  lclstrconsts \
  lcltype \
  lclunicodedata \
  lconvencoding \
  lmessages \
  lresources \
  maskedit \
  menus \
  pairsplitter \
  popupnotifier \
  postscriptprinter \
  printers \
  propertystorage \
  spin \
  stdactns \
  stdctrls \
  stringhashlist \
  textstrings \
  toolwin \
  utrace \
  xmlpropstorage

rsts=lclstrconsts

[require]
packages=

[prerules]
DBG_OPTIONS=
STATEFILE=Makefile.compiled
ifeq ($(findstring $(OS_TARGET),win32 win64 wince),)
NONWIN32=nonwin32
else
STATEFILE=Makefile_win.compiled
endif
# disable checks on WinCE unless LCL_ENABLE_CHECKS
ifeq ($(OS_TARGET),wince)
ifndef LCL_ENABLE_CHECKS
LCL_DISABLE_CHECKS=-dDisableChecks
endif
endif
ifeq ($(OS_TARGET),darwin)
DBG_OPTIONS=-gw
endif

[compiler]
options=-gl -Sic $(LCL_DISABLE_CHECKS) $(DBG_OPTIONS)
unittargetdir=units/$(CPU_TARGET)-$(OS_TARGET)
unitdir=../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) . $(NONWIN32) forms widgetset
includedir=include

[install]
#buildunit=alllclunits

[clean]
# clear all .ppu/.o/.rst files in all source and output directories
files=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) \
      $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) \
      $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) \
      $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) \
      $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) \
      $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) \
      $(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) \
      $(wildcard widgetset/*$(OEXT)) $(wildcard widgetset/*$(PPUEXT)) $(wildcard widgetset/*$(RSTEXT))\
      $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))

[default]
lcldir=.

[rules]
.PHONY: help cleartarget lclbase compiled all intf cleanintf cleanlaz cleanall

help:
	@$(ECHO)
	@$(ECHO) " Important: the LCL requires components/lazutils and packager/registration"
	@$(ECHO)
	@$(ECHO) " Targets"
	@$(ECHO) "   all          build lclbase and one interface"
	@$(ECHO) "   clean        deletes files that 'all' creates"
	@$(ECHO) "   lclbase      build lclbase"
	@$(ECHO) "   intf         build one lcl interface, selectable via LCL_PLATFORM"
	@$(ECHO) "   cleanintf    delete files that 'intf' creates"
	@$(ECHO) "   cleanall     as 'clean' plus clean for all common interfaces."
	@$(ECHO) "                Does not clean up cross compiled interfaces."
	@$(ECHO)
	@$(ECHO) " Examples:"
	@$(ECHO)
	@$(ECHO) " Compile the lcl with the default interface:"
	@$(ECHO) "   make clean all"
	@$(ECHO)
	@$(ECHO) " Compile the interface for the qt widgetset:"
	@$(ECHO) "   make cleanintf intf LCL_PLATFORM=qt"
	@$(ECHO)
	@$(ECHO) "Clean up:"
	@$(ECHO) " There is no command to clean up all interfaces."
	@$(ECHO) " In most cases it is enough to delete the 'units' directory."
	@$(ECHO)

cleartarget:
	-$(DEL) $(COMPILER_UNITTARGETDIR)/alllclunits$(PPUEXT)

lclbase: cleartarget $(COMPILER_UNITTARGETDIR) alllclunits$(PPUEXT) compiled

compiled:
	$(CPPROG) -f $(STATEFILE) $(COMPILER_UNITTARGETDIR)/LCLBase.compiled

intf: $(TARGET_DIRS)

cleanintf:
	$(MAKE) -C interfaces clean

all: lclbase compiled intf
	for WS in gtk2 nogui qt5 ; do ${MAKE} intf LCL_PLATFORM=$${WS} ; done

cleanlaz: cleanall
cleanall: clean
	$(MAKE) -C interfaces clean
	$(MAKE) -C interfaces/cocoa clean
	$(MAKE) -C interfaces/customdrawn clean
	$(MAKE) -C interfaces/fpgui clean
	$(MAKE) -C interfaces/gtk clean
	$(MAKE) -C interfaces/gtk2 clean
	$(MAKE) -C interfaces/gtk3 clean
	$(MAKE) -C interfaces/nogui clean
	$(MAKE) -C interfaces/qt clean
	$(MAKE) -C interfaces/win32 clean
	$(MAKE) -C interfaces/wince clean
	$(MAKE) -C interfaces/mui clean

distclean: clean
        ${DELTREE} units/*