GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — livecode/Makefile at develop · Skipis/livecode

Expand file tree

/

Makefile

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
198 lines (146 loc) · 5.5 KB
/

Makefile

Copy path

File metadata and controls

198 lines (146 loc) · 5.5 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# Copyright (C) 2015 LiveCode Ltd.
#
# This file is part of LiveCode.
#
# LiveCode is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License v3 as published by the Free
# Software Foundation.
#
# LiveCode is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with LiveCode. If not see <http://www.gnu.org/licenses/>.
# Usually, you'll just want to type "make all".
################################################################
# Tools that Make calls
XCODEBUILD ?= xcodebuild
WINE ?= wine
EMMAKE ?= emmake
# Some magic to control which versions of iOS we try to build. N.b. you may
# also need to modify the buildbot configuration
IPHONEOS_VERSIONS ?= 8.2 9.2 9.3
IPHONESIMULATOR_VERSIONS ?= 6.1 7.1 8.2 9.2 9.3
IOS_SDKS ?= \
$(addprefix iphoneos,$(IPHONEOS_VERSIONS)) \
$(addprefix iphonesimulator,$(IPHONESIMULATOR_VERSIONS))
# Choose the correct build type
MODE ?= debug
# Where to run the build command depends on community vs commercial
ifeq ($(BUILD_EDITION),commercial)
BUILD_SUBDIR :=
BUILD_PROJECT := livecode-commercial
else
BUILD_SUBDIR := /livecode
BUILD_PROJECT := livecode
endif
include Makefile.common
################################################################
.DEFAULT: all
all: all-$(guess_platform)
check: check-$(guess_platform)
check-common-%:
$(MAKE) -C tests bin_dir=../$*-bin
$(MAKE) -C ide/tests bin_dir=../../$*-bin
$(MAKE) -C extensions bin_dir=../$*-bin
################################################################
# Linux rules
################################################################
LINUX_ARCHS = x86_64 x86
config-linux-%:
./config.sh --platform linux-$*
compile-linux-%:
$(MAKE) -C build-linux-$*/livecode default
check-linux-%:
$(MAKE) -C build-linux-$*/livecode check
$(MAKE) check-common-linux-$*
all-linux-%:
$(MAKE) config-linux-$*
$(MAKE) compile-linux-$*
$(addsuffix -linux,all config compile check): %: %-$(guess_linux_arch)
################################################################
# Android rules
################################################################
ANDROID_ARCHS = armv6
config-android-%:
./config.sh --platform android-$*
compile-android-%:
$(MAKE) -C build-android-$*/livecode default
check-android-%:
$(MAKE) -C build-android-$*/livecode check
all-android-%:
$(MAKE) config-android-$*
$(MAKE) compile-android-$*
$(addsuffix -android,all config compile check): %: %-armv6
################################################################
# Mac rules
################################################################
config-mac:
./config.sh --platform mac
compile-mac:
$(XCODEBUILD) -project "build-mac$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE) -target default
check-mac:
$(XCODEBUILD) -project "build-mac$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE) -target check
$(MAKE) check-common-mac
all-mac:
$(MAKE) config-mac
$(MAKE) compile-mac
################################################################
# iOS rules
################################################################
all-ios-%:
$(MAKE) config-ios-$*
$(MAKE) compile-ios-$*
config-ios-%:
./config.sh --platform ios --generator-output build-ios-$*/livecode -Dtarget_sdk=$*
compile-ios-%:
$(XCODEBUILD) -project "build-ios-$*$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE) -target default
check-ios-%:
$(XCODEBUILD) -project "build-ios-$*$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE) -target check
# Dummy targets to prevent our build system from building iOS 5.1 simulator
config-ios-iphonesimulator5.1:
@echo "Skipping iOS simulator 5.1 (no longer supported)"
compile-ios-iphonesimulator5.1:
@echo "Skipping iOS simulator 5.1 (no longer supported)"
check-ios-iphonesimulator5.1:
@echo "Skipping iOS simulator 5.1 (no longer supported)"
# Provide some synonyms for "latest iOS SDK"
$(addsuffix -ios-iphoneos,all config compile check): %: %$(lastword $(IPHONEOS_VERSIONS))
@true
$(addsuffix -ios-iphonesimulator,all config compile check): %: %$(lastword ($IPHONESIMULATOR_VERSIONS))
@true
all_ios_subplatforms = iphoneos iphonesimulator $(IOS_SDKS)
all-ios: $(addprefix all-ios-,$(IOS_SDKS))
config-ios: $(addprefix config-ios-,$(IOS_SDKS))
compile-ios: $(addprefix compile-ios-,$(IOS_SDKS))
check-ios: $(addprefix check-ios-,$(IOS_SDKS))
################################################################
# Windows rules
################################################################
config-win-%:
./config.sh --platform win-$*
compile-win-%:
# windows builds occur under Wine
cd build-win-$* && $(WINE) /K ../make.cmd
check-win-%:
# windows builds occur under Wine
cd build-win-$* && $(WINE) /K ../make.cmd check
$(MAKE) check-common-win-$*
all-win-%:
$(MAKE) config-win-$*
$(MAKE) compile-win-$*
$(addsuffix -win,all config compile): %: %-x86
################################################################
# Emscripten rules
################################################################
config-emscripten:
$(EMMAKE) ./config.sh --platform emscripten
compile-emscripten:
$(EMMAKE) $(MAKE) -C build-emscripten/livecode default
check-emscripten:
$(EMMAKE) $(MAKE) -C build-emscripten/livecode check
all-emscripten:
$(MAKE) config-emscripten
$(MAKE) compile-emscripten
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.