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 (126 lines) | stat: -rw-r--r-- 2,624 bytes parent folder | download | duplicates (6)
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
#
#   Makefile.fpc for LCL Examples for Free Pascal
#

[package]
name=lazarus-examples
version=1.0

[target]
units=hello \
  bitbutton \
  checkbox \
  combobox \
  comdialogs \
  edittest \
  groupbox \
  groupboxnested \
  listboxtest \
  listviewtest \
  loadpicture \
  memotest \
  messagedialogs \
  notebk \
  notebooktest \
  progressbar \
  scrollbar \
  speedtest \
  synedit1 \
  taborder \
  testall \
  toolbar \
  trackbar

[require]
libc=y
packages=regexpr

[clean]
files=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) \
  $(wildcard units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) \
  $(wildcard units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) \
  $(wildcard trayicon/*$(OEXT)) $(wildcard trayicon/*$(PPUEXT)) \
  $(wildcard units/$(CPU_TARGET)-$(OS_TARGET)/*.or) \
  hello \
  bitbutton \
  checkbox \
  combobox \
  comdialogs \
  edittest \
  groupbox \
  groupboxnested \
  listboxtest \
  listviewtest \
  loadpicture \
  memotest \
  messagedialogs \
  notebk \
  notebooktest \
  progressbar \
  scrollbar \
  speedtest \
  synedit1 \
  taborder \
  testall \
  toolbar \
  trackbar

[default]
            
[compiler]
options=-gl  
unitdir=../lcl/units/$(CPU_TARGET)-$(OS_TARGET) \
        ../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
        ../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) \
        ../components/codetools/units/$(CPU_TARGET)-$(OS_TARGET) \
        ../components/synedit/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) \
        .
units=allexamples


[prerules]
ifndef LCL_PLATFORM
ifneq ($(findstring $(OS_TARGET),win32 win64),)
LCL_PLATFORM=win32
else
ifeq ($(OS_TARGET),wince)
LCL_PLATFORM=wince
else
ifeq ($(OS_TARGET),darwin)
LCL_PLATFORM=carbon
else
LCL_PLATFORM=gtk2
endif
endif
endif
export LCL_PLATFORM
endif

#
# apptype gui
ifeq ($(OS_TARGET),win32)
LAZARUS_OPT+= -WG
endif

#-----------------------------------------------------------------------------
[rules]
.PHONY: help cleanall clean

#-----------------------------------------------------------------------------
help:
	@$(ECHO)
	@$(ECHO) " Targets"
	@$(ECHO) "   all    build all simple examples"
	@$(ECHO) "          Requires LCL and basecomponents, see make help of main directory"
	@$(ECHO) "          Note: There are more complex examples in the sub directories."
	@$(ECHO) "   clean  deletes files that 'all' creates"
	@$(ECHO)
	@$(ECHO) Clean up:
	@$(ECHO) "  There is no command to clean up a svn repository completely, but"
	@$(ECHO) "  you can use the following command under Linux/OS X:"
	@$(ECHO) "  svn status | grep '\?' | sed -e 's/\? *//' | xargs rm -r"
	@$(ECHO)
	@exit


cleanall: clean