-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile.builtem
More file actions
411 lines (370 loc) · 16 KB
/
Copy pathMakefile.builtem
File metadata and controls
411 lines (370 loc) · 16 KB
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
# This file is part of C++-Builtem <http://github.com/ufal/cpp_builtem/>.
#
# Copyright 2014-2026 Institute of Formal and Applied Linguistics, Faculty
# of Mathematics and Physics, Charles University in Prague, Czech Republic.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
BUILTEM_VERSION := 2.2.6-dev
############
# PLATFORM #
############
# detection if needed
ifndef PLATFORM
ifeq ($(OS),Windows_NT)
PLATFORM=win
else ifeq ($(shell uname),Darwin)
PLATFORM=macos
else
PLATFORM=linux
endif
endif
# expand platform shortcuts
ifeq ($(PLATFORM),linux)
override PLATFORM=linux-gcc
else ifeq ($(PLATFORM),win)
override PLATFORM=win-vs
else ifeq ($(PLATFORM),macos)
override PLATFORM=macos-clang
endif
# expand architecture if not specified
ifneq ($(filter linux-gcc linux-clang,$(PLATFORM)),)
PLATFORM_ARCH:=$(shell uname -m)
ifneq ($(filter x86_64,$(PLATFORM_ARCH)),)
override PLATFORM:=$(PLATFORM)-64
else ifneq ($(filter i386 i686,$(PLATFORM_ARCH)),)
override PLATFORM:=$(PLATFORM)-32
else
$(error Architecture $(PLATFORM_ARCH) is currently not supported on platform $(PLATFORM))
endif
else ifneq ($(filter win-vs win-gcc,$(PLATFORM)),)
ifneq ($(filter AMD64,$(PROCESSOR_ARCHITECTURE))$(filter AMD64,$(PROCESSOR_ARCHITEW6432)),)
override PLATFORM:=$(PLATFORM)-64
else ifeq ($(filter x86,$(PROCESSOR_ARCHITECTURE))$(PROCESSOR_ARCHITEW6432),x86)
override PLATFORM:=$(PLATFORM)-32
else
$(error Architecture $(PROCESSOR_ARCHITECTURE) is currently not supported on platform $(PLATFORM))
endif
else ifneq ($(filter macos-clang,$(PLATFORM)),)
PLATFORM_ARCH:=$(shell uname -m)
ifneq ($(filter x86_64,$(PLATFORM_ARCH)),)
override PLATFORM:=$(PLATFORM)-64
else ifneq ($(filter arm64,$(PLATFORM_ARCH)),)
override PLATFORM:=$(PLATFORM)-arm64
else
$(error Architecture $(PLATFORM_ARCH) is currently not supported on platform $(PLATFORM))
endif
endif
# fail for unknown platforms
PLATFORMS = linux-gcc-64 linux-gcc-32 linux-clang-64 linux-clang-32
PLATFORMS += win-vs-64 win-vs-32 win-gcc-64 win-gcc-32
PLATFORMS += macos-clang-64 macos-clang-arm64
ifeq ($(filter $(PLATFORMS),$(PLATFORM)),)
$(error Unsupported platform $(PLATFORM), only $(PLATFORMS) are supported)
endif
################
# CPP STANDARD #
################
ifndef CPP_STANDARD
CPP_STANDARD=c++11
endif
# fail for unknown standards
ifeq ($(filter c++11 c++14 c++17 c++20,$(CPP_STANDARD)),)
$(error Unsupported C++ standard $(CPP_STANDARD), only [c++11], c++14, c++17, c++20 are supported)
endif
####################
# COMPILATION MODE #
####################
# set default mode if unspecified
ifndef MODE
MODE=normal
endif
# fail for unknown modes
ifeq ($(filter normal release debug profile,$(MODE)),)
$(error Unsupported compilation mode $(MODE), only [normal], release, debug, profile supported)
endif
ifeq ($(MODE),profile)
ifneq ($(filter win-vs-%,$(PLATFORM)),)
$(error Profile mode is currently not supported on win-vs platform)
endif
endif
##################
# PLATFORM_SHELL #
##################
# detection if needed
ifndef PLATFORM_SHELL
PLATFORM_SHELL=sh
ifneq ($(filter win-%,$(PLATFORM)),)
ifndef PWD
PLATFORM_SHELL=cmd
endif
endif
endif
# fail for unknown platform_shells
ifeq ($(filter sh cmd,$(PLATFORM_SHELL)),)
$(error Unsupported shell $(PLATFORM), only sh and cmd supported)
endif
# shell settings
ifeq ($(PLATFORM_SHELL),sh)
mkdir = mkdir -p $(1)
echo = $(if $(2),echo '$(subst ','$(strip \ )'',$(2))',)$(1) # The weird syntax is used instead of '\'', which baffles VIM syntax highlighter.
cp = cp $(1) $(2)
mv = mv $(1) $(2)
rm = rm -rf $(1)
else ifeq ($(PLATFORM_SHELL),cmd)
SHELL = cmd
mkdir = if not exist $(subst /,\,$(1)) md $(subst /,\,$(1))
echo = $(if $(2),echo $(subst <,^<,$(subst >,^>,$(subst &,^&,$(subst |,^|,$(subst %,%%,$(subst ^,^^,$(2))))))),type nul)$(subst /,\,$(1))
cp = copy /y $(subst /,\,$(1)) $(subst /,\,$(2))
mv = move /y $(subst /,\,$(1)) $(subst /,\,$(2))
rm = $(foreach f,$(subst /,\,$(wildcard $(1))),if exist $(f) del /q $(f)& if exist $(f) rd /s /q $(f)& )
endif
ifeq ($(firstword $(sort $(MAKE_VERSION) 4.0)),4.0)
echo = $(if $(2),$(file $(1),$(2)),$(if $(filter sh,$(PLATFORM_SHELL)),$(1),type nul$(subst /,\,$(1))))
endif
# Report PLATFORM, PLATFORM_SHELL, MODE and BITNESS if requested
ifdef VERBOSE
$(info Build $(MODE) with $(CPP_STANDARD) on platform $(PLATFORM) with shell $(PLATFORM_SHELL))
endif
#####################
# PLATFORM SETTINGS #
#####################
# the minimal Windows version defaulting to Windows 10
ifndef WINNT_VERSION
WINNT_VERSION=0x0A00
endif
# executable and library namings
builtem_mangle = $(subst /,-,$(subst /_,-__,$(subst /-,-_-,$(subst //,-_-_,$(subst -,--,$(1))))))
builtem_demangle = $(subst /_,/,$(subst //,-,$(subst -,/,$(1))))
builtem_obj = .build/$(call builtem_mangle,$(1)).$(PLATFORM)-$(MODE)
ifneq ($(filter linux-%,$(PLATFORM)),)
exe = $(1)
lib = $(1:=.a)
dynlib = $(1:=.so)
obj = $(foreach obj,$(1),$(call builtem_obj,$(obj)).o)
dynobj = $(call obj,$(1:%=%.dyn))
else ifneq ($(filter win-vs-%,$(PLATFORM)),)
exe = $(1:=.exe)
lib = $(1:=.lib)
dynlib = $(1:=.dll)
obj = $(foreach obj,$(1),$(call builtem_obj,$(obj)).obj)
dynobj = $(call obj,$(1:%=%.dyn))
else ifneq ($(filter win-gcc-%,$(PLATFORM)),)
exe = $(1:=.exe)
lib = $(1:=.a)
dynlib = $(1:=.dll)
obj = $(foreach obj,$(1),$(call builtem_obj,$(obj)).o)
dynobj = $(call obj,$(1:%=%.dyn))
else ifneq ($(filter macos-%,$(PLATFORM)),)
exe = $(1)
lib = $(1:=.a)
dynlib = $(1:=.dylib)
obj = $(foreach obj,$(1),$(call builtem_obj,$(obj)).o)
dynobj = $(obj)
endif
all_exe = $(foreach file,$(1:$(call exe,%)=%),$(file) $(file).exe $(file).pdb $(file).ilk)
all_lib = $(foreach file,$(1:$(call lib,%)=%),$(file).a $(file).lib)
all_dynlib = $(foreach file,$(1:$(call dynlib,%)=%),$(file).so $(file).dll $(file).pdb $(file).ilk $(file).dll.lib $(file).dll.exp $(file).dylib)
# generic platform filenames
ifneq ($(filter win-%,$(PLATFORM)),)
platform_name = $(subst /,\,$(1))
else
platform_name = $(1)
endif
# switches
ifneq ($(filter linux-gcc-% linux-clang-% win-gcc-%,$(PLATFORM)),)
ifneq ($(filter undefined default,$(origin CXX)),)
CXX = $(if $(findstring -gcc-,$(PLATFORM)),g++,clang++)
endif
C_FLAGS += -std=$(CPP_STANDARD) -W -Wall -mtune=generic -fvisibility=hidden$(if $(filter %-32,$(PLATFORM)), -msse2 -mfpmath=sse)
C_FLAGS += $(if $(filter win-%,$(PLATFORM)),-DWIN32 -DUNICODE -D_UNICODE -D_WIN32_WINNT=$(WINNT_VERSION))
DYN_C_FLAGS += $(if $(filter linux-%,$(PLATFORM)),-fPIC)
DYN_LD_FLAGS += -shared
ifneq ($(filter %-64,$(PLATFORM)),)
C_FLAGS += -m64
else ifneq ($(filter %-32,$(PLATFORM)),)
C_FLAGS += -m32
endif
ifeq ($(MODE),normal)
C_FLAGS += -O3
else ifeq ($(MODE),debug)
C_FLAGS += -g -DDEBUG
else ifeq ($(MODE),profile)
C_FLAGS += -O3 $(if $(findstring -gcc-,$(PLATFORM)),-g1 -pg,-gline-tables-only)
LD_FLAGS += $(if $(findstring -gcc-,$(PLATFORM)),-pg)
else ifeq ($(MODE),release)
C_FLAGS += -O3 -flto$(if $(findstring -gcc-,$(PLATFORM)),=jobserver)
LD_FLAGS += -s -static-libgcc -static-libstdc++
endif
else ifneq ($(filter win-vs-%,$(PLATFORM)),)
ifneq ($(filter undefined default,$(origin CXX)),)
CXX = cl
endif
C_FLAGS += /nologo$(if $(filter c++11,$(CPP_STANDARD)),, /std:$(CPP_STANDARD)) /W2 /D WIN32 /D UNICODE /D _UNICODE /D _WIN32_WINNT=$(WINNT_VERSION) /EHsc /utf-8
LD_FLAGS += /MANIFEST:EMBED /MACHINE:$(if $(filter %-64,$(PLATFORM)),X64,X86)
ifeq ($(MODE),normal)
C_FLAGS += /O2 /MT
DYN_C_FLAGS += /LD
else ifeq ($(MODE),release)
C_FLAGS += /O2 /GL /Gw /Gy /MT
DYN_C_FLAGS += /LD
LD_FLAGS += /OPT:REF /OPT:ICF
else ifeq ($(MODE),debug)
C_FLAGS += /Od /Z7 /MTd /RTC1 /D _DEBUG
DYN_C_FLAGS += /LDd
LD_FLAGS += /DEBUG
endif
else ifneq ($(filter macos-clang-%,$(PLATFORM)),)
ifneq ($(filter undefined default,$(origin CXX)),)
CXX = clang++
endif
C_FLAGS += -std=$(CPP_STANDARD) -W -Wall -mtune=generic -fvisibility=hidden -stdlib=libc++
DYN_LD_FLAGS += -dynamiclib
ifneq ($(filter %-64,$(PLATFORM)),)
C_FLAGS += -target x86_64-apple-macos$(if $(filter c++11 c++14,$(CPP_STANDARD)),10.9,$(if $(filter c++17,$(CPP_STANDARD)),10.15,14))
else ifneq ($(filter %-arm64,$(PLATFORM)),)
C_FLAGS += -target arm64-apple-macos$(if $(filter c++11 c++14 c++17,$(CPP_STANDARD)),11,14)
endif
ifeq ($(MODE),normal)
C_FLAGS += -O3
else ifeq ($(MODE),debug)
C_FLAGS += -g -DDEBUG
else ifeq ($(MODE),profile)
C_FLAGS += -O3 -gline-tables-only
else ifeq ($(MODE),release)
C_FLAGS += -O3 -flto
LD_FLAGS += -Wl,-x
endif
endif
# build commands
builtem_link_deps = @$(call echo,>.build/$(call builtem_mangle,$(1)).link.d,.PHONY: $$(if $$(filter $(PLATFORM)-$(MODE),$$(PLATFORM)-$$(MODE)),,$(1)))
builtem_link_objs = $(if $(2),$(call echo,>$(call builtem_link_objs,$(1)),$(2)),.build/$(call builtem_mangle,$(1)).$(PLATFORM)-$(MODE).objs)
ifneq ($(filter win-vs-%,$(PLATFORM)),)
compile = .build/cl_deps $(1) $(CXX) /Fo$(1) $(C_FLAGS) /c $(2)
compile_dyn = .build/cl_deps $(1) $(CXX) /Fo$(1) $(C_FLAGS) $(DYN_C_FLAGS) /c $(2)
define link_exe
@$(call builtem_link_deps,$(1))
@$(call builtem_link_objs,$(1),$(2))
$(CXX) /Fe$(1) $(C_FLAGS) @$(call builtem_link_objs,$(1)) /link $(LD_FLAGS) $(3)
endef
define link_dynlib
@$(call builtem_link_deps,$(1))
@$(call builtem_link_objs,$(1),$(2))
$(CXX) /Fe$(1) $(C_FLAGS) $(DYN_C_FLAGS) @$(call builtem_link_objs,$(1)) /link /IMPLIB:$(call lib,$(1)) $(LD_FLAGS) $(DYN_LD_FLAGS) $(3)
endef
define link_lib
@$(call builtem_link_deps,$(1))
@$(call builtem_link_objs,$(1),$(2))
lib /nologo /out:$(1) @$(call builtem_link_objs,$(1))
endef
else
compile = $(CXX) -o $(1) -MMD -MP $(C_FLAGS) -c $(2)
compile_dyn = $(CXX) -o $(1) -MMD -MP $(C_FLAGS) $(DYN_C_FLAGS) -c $(2)
define link_exe
@$(call builtem_link_deps,$(1))
@$(call builtem_link_objs,$(1),$(2))
$(if $(findstring -flto=jobserver,$(C_FLAGS)),+)$(CXX) -o $(1) $(C_FLAGS) @$(call builtem_link_objs,$(1)) $(LD_FLAGS) $(3)
endef
define link_dynlib
@$(call builtem_link_deps,$(1))
@$(call builtem_link_objs,$(1),$(2))
$(if $(findstring -flto=jobserver,$(C_FLAGS)),+)$(CXX) -o $(1) $(C_FLAGS) $(DYN_C_FLAGS) @$(call builtem_link_objs,$(1)) $(LD_FLAGS) $(DYN_LD_FLAGS) $(3)
endef
define link_lib
@$(call builtem_link_deps,$(1))
@$(call builtem_link_objs,$(1),$(2))
@$(call rm,$(1))
$(if $(filter macos-%,$(PLATFORM)),libtool -static -o,ar -rcs) $(1) @$(call builtem_link_objs,$(1))
endef
endif
# flag methods
ifneq ($(filter win-vs-%,$(PLATFORM)),)
include_dir = $(1:%=/I %)
use_library = $(1:%=%.lib)
define_macro = /D $(1)$(if $(2),=$(2))
disable_assert = /D NDEBUG
treat_warnings_as_errors = /WX
treat_warnings_as_no_errors = /WX:NO
default_warnings = /W2
disable_all_warnings = /w
else
include_dir = $(1:%=-I%)
use_library = $(1:%=-l%)
define_macro = -D$(1)$(if $(2),=$(2))
disable_assert = -DNDEBUG
treat_warnings_as_errors = -Werror
treat_warnings_as_no_errors = -Wno-error
default_warnings = -W -Wall
disable_all_warnings = -w
endif
ifneq ($(filter linux-%,$(PLATFORM)),)
version_script = -Wl,--version-script=$(1)
use_threads = -pthread
endif
ifneq ($(findstring -gcc-,$(PLATFORM)),)
use_linker = -fuse-ld=$(1)
endif
ifneq ($(filter win-vs-%,$(PLATFORM)),)
win_subsystem = /SUBSYSTEM:$(1),6 /ENTRY:$(if $(2),$(2),main)CRTStartup
else ifneq ($(filter win-gcc-%,$(PLATFORM)),)
win_subsystem = -Wl,--subsystem=$(1) $(if $(filter wmain,$(2)),-municode,)
endif
################
# DEPENDENCIES #
################
# add current Makefile.builtem to compile dependencies
BUILTEM_MAKEFILE_PATH := $(lastword $(MAKEFILE_LIST))
COMPILE_DEPS += $(BUILTEM_MAKEFILE_PATH)
# import existing dependencies
-include $(wildcard .build/*.d)
# make sure .build directory exists
.build:
@$(call mkdir,.build)
# compile and use cl_deps on win-vs
ifneq ($(filter win-vs-%,$(PLATFORM)),)
COMPILE_DEPS += .build/cl_deps.exe
.build/cl_deps.exe: .build/cl_deps.cpp
@$(info Compiling cl_deps.exe)
@$(CXX) /Fe$@ /Fo$@.obj /nologo /W2 /O1 /D WIN32 /D UNICODE /D _UNICODE /D _WIN32_WINNT=$(WINNT_VERSION) /EHsc /utf-8 /MT $< /link /MANIFEST:EMBED /SUBSYSTEM:console,6
.build/cl_deps.cpp: | .build
@$(info Generating cl_deps.cpp)
@$(call echo,>$@,#include <ctype.h>)
@$(call echo,>>$@,#include <fcntl.h>)
@$(call echo,>>$@,#include <io.h>)
@$(call echo,>>$@,#include <set>)
@$(call echo,>>$@,#include <stdio.h>)
@$(call echo,>>$@,#include <string>)
@$(call echo,>>$@,#include <windows.h>)
@$(call echo,>>$@,using namespace std;void e(const char* m,const char* a=NULL))
@${call echo,>>$@,{fprintf(stderr,"cl_deps error: %s %s!%c",m,a?a:"",char(10));exit(1);}}
@$(call echo,>>$@,bool n_name(const char* f,const char* c,string& nd))
@${call echo,>>$@,{char f_abs[MAX_PATH+1];if(!_fullpath(f_abs,f,sizeof(f_abs)))e("Cannot make absolute path from",f);f=f_abs;for(;*c && *f;c++,f++){char c_char=*c==char(92)?'/':tolower(*c);char f_char=*f==char(92)?'/':tolower(*f);if(c_char!=f_char)return false;}nd.clear();while(*f=='/'||*f==char(92))f++;for(;*f;f++)nd.push_back(*f==char(92)?'/':*f);return true;}}
@$(call echo,>>$@,int main(int argc,char* argv[]))
@${call echo,>>$@,{if(argc<=2)e("Usage: cl_deps output_obj cmd [args]");SetEnvironmentVariableA("VSLANG","1033");char c[MAX_PATH+1];GetCurrentDirectoryA(MAX_PATH,c);SECURITY_ATTRIBUTES sa;sa.nLength=sizeof(SECURITY_ATTRIBUTES);sa.lpSecurityDescriptor=NULL;sa.bInheritHandle=TRUE;HANDLE sr,sw;if(!CreatePipe(&sr,&sw,&sa,0))e("Cannot create pipe");string dn=argv[1];if(dn.size()>=4 && dn.compare(dn.size()-4,4,".obj")==0)dn.resize(dn.size()-4);dn.append(".d");FILE* deps=fopen(dn.c_str(),"wb");if(!deps)e("Cannot open file",dn.c_str());string cm=argv[2];cm.append(" /showIncludes");for(int i=3;i<argc;i++)cm.append(" ").append(argv[i]);STARTUPINFOA si;ZeroMemory(&si,sizeof(STARTUPINFOA));si.cb=sizeof(STARTUPINFOA);si.dwFlags=STARTF_USESTDHANDLES;si.hStdInput=GetStdHandle(STD_INPUT_HANDLE);si.hStdError=GetStdHandle(STD_ERROR_HANDLE);si.hStdOutput=sw;PROCESS_INFORMATION pi;if(!CreateProcessA(NULL,(LPSTR)cm.c_str(),NULL,NULL,TRUE,0,NULL,NULL,&si,&pi))e("Cannot start",cm.c_str());CloseHandle(sw);int p_c_descriptor=_open_osfhandle((intptr_t)sr,_O_RDONLY);if(p_c_descriptor==-1)e("Cannot convert pipe to fd");FILE* p=_fdopen(p_c_descriptor,"r");if(!p)e("Cannot convert pipe to FILE");set<string>d;char in_prefix[]="Note: including file:";char l[1<<16];while(fgets(l,sizeof(l),p)){if(strncmp(l,in_prefix,strlen(in_prefix))==0){char* h=l + strlen(in_prefix);while(*h && isspace(*h))h++;size_t h_len=strlen(h);if(h_len && h[h_len-1]==char(10))h[--h_len]=char(0);if(h_len && h[h_len-1]==char(13))h[--h_len]=char(0);string nd;if(n_name(h,c,nd))d.insert(nd);}else{fputs(l,stdout);}}fclose(p);fprintf(deps,"%s:",argv[1]);for(set<string>::iterator it=d.begin();it!=d.end();it++)fprintf(deps," %s",it->c_str());fputc(char(10),deps);for(set<string>::iterator it=d.begin();it!=d.end();it++)fprintf(deps,"%s:%c",it->c_str(),char(10));fputc(char(10),deps);fclose(deps);if(WaitForSingleObject(pi.hProcess,INFINITE)==WAIT_FAILED)e("Cannot wait for finished cmd");DWORD ec=0;if(!GetExitCodeProcess(pi.hProcess,&ec))e("Cannot obtain exit code of finished cmd");CloseHandle(pi.hProcess);CloseHandle(pi.hThread);return ec;}}
endif
################################
# OBJECT FILES COMPILING RULES #
################################
.SECONDEXPANSION:
$(call obj,%): $$(call builtem_demangle,$$*).cpp $$(COMPILE_DEPS) | .build
$(call compile,$@,$<)
ifneq ($(call dynobj,%),$(call obj,%))
$(call dynobj,%): $$(call builtem_demangle,$$*).cpp $$(COMPILE_DEPS) | .build
$(call compile_dyn,$@,$<)
endif
#################################
# DISABLE IMPLICIT SUFFIX RULES #
#################################
.SUFFIXES:
###################
# BUILTEM UPDATER #
###################
.PHONY: builtem_update_from_github
builtem_update_from_github:
curl -O https://raw.githubusercontent.com/ufal/cpp_builtem/stable/Makefile.builtem
############
# FINISHED #
############
# Reset the default goal
.DEFAULT_GOAL :=