-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 loc) · 803 Bytes
/
Makefile
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
# This makefile was automatically generated by maker
# Gitlab : https://gitlab.com/Breadleaf/maker
# Github : https://github.com/Breadleaf/maker
# Include all files that end in .c or .cpp
files = *.cpp
# Name of final executable
name = maker
# Source directory
source = src/
# Build directory
build = ./
# Compilers and flags
linux_compiler = clang++
linux_flags = -g -Wc++17-extensions -std=c++17
win_compiler = x86_64-w64-mingw32-g++
win_flags = -static -g -std=gnu++17
# Valid values: windows, linux
# Note: Both can be used (separate with a space)
target = linux windows
build: $(target)
linux:
$(linux_compiler) $(source)$(files) $(linux_flags) -o $(build)$(name).out
windows:
$(win_compiler) $(source)$(files) $(win_flags) -o $(build)$(name).exe
clean:
rm -i $(name).out $(name).exe