/
makefile.link
59 lines (52 loc) · 1.82 KB
/
makefile.link
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
################################################################################
#
# makefile.link
#
################################################################################
#
# common settings and link to the bmptk/makefile.inc
#
# This file is used by demos and tests as the last step
# in the chain to bmptk.
#
################################################################################
#
# This file is part of godafoss (https://github.com/wovo/godafoss),
# a C++ library for close-to-the-hardware programming.#
#
# Copyright
# Wouter van Ooijen 2017-2020
#
# Distributed under the Boost Software License, Version 1.0.
# (See the accompanying LICENSE_1_0.txt in the root directory of this
# library, or a copy at http://www.boost.org/LICENSE_1_0.txt)
#
################################################################################
# add ourselves
GODAFOSS ?= $(RELATIVE)
include $(GODAFOSS)/makefile.inc
# C++20 required
# moved to the inc file: also for external users!
# CPP_LANGUAGE := -std=c++20 -fconcepts-diagnostics-depth=3
# add SFML
SFML ?= $(RELATIVE)/../SFML-2.5.1-32
ifeq ($(TARGET),native)
ifeq ($(OS),Windows_NT)
GCC-WIN := C:\ti-software\mingw32
SEARCH += $(SFML)/include
LINKER_FLAGS += -L$(SFML)/lib
LINKER_FLAGS += -lsfml-graphics-s -lsfml-window-s -lsfml-system-s
LINKER_FLAGS += -lopengl32 -lgdi32 -lws2_32 -lwinmm
DEFINES += -DSFML_STATIC
else
LINKER_FLAGS += -lsfml-graphics -lsfml-window -lsfml-system
DEFINES += -DSFML_STATIC
GPP-LINUX ?= g++-10
endif
endif
# disable sudo
SUDO ?=
# set BMPTK to the bmptk subdirectory
BMPTK ?= $(RELATIVE)/../bmptk
# Defer to the bmptk/Makefile.inc to do the real work
include $(BMPTK)/Makefile.inc