-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.mk
47 lines (38 loc) · 1.9 KB
/
settings.mk
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
# This is a template of configuration file for MXE. See
# docs/index.html for more extensive documentations.
# This variable controls the number of compilation processes
# within one package ("intra-package parallelism").
#JOBS :=
# This variable controls where intermediate files are created
# this is necessary when compiling inside a virtualbox shared
# directory. Some commands like strip fail in there with Protocol error
# default is the current directory
#MXE_TMP := /tmp
# Use ccache tool for speeding up re-builds.
MXE_USE_CCACHE := yes
# This variable controls the targets that will build.
MXE_TARGETS := x86_64-w64-mingw32.shared i686-w64-mingw32.shared \
x86_64-w64-mingw32.static i686-w64-mingw32.static
#MXE_TARGETS := x86_64-w64-mingw32.static i686-w64-mingw32.static
# Special flags for compiler.
CPPFLAGS := -D_FORTIFY_SOURCE=2
CFLAGS := -s -Os -fdata-sections -ffunction-sections \
-fPIC $(CPPFLAGS) -static-libgcc
CXXFLAGS := -s -Os -fdata-sections -ffunction-sections \
-fPIC $(CPPFLAGS) -static-libgcc -static-libstdc++
LDFLAGS := -Wl,--gc-sections -Wl,--strip-all -Wl,--as-needed
# This variable controls which plugins are in use.
# See plugins/README.md for further information.
#override MXE_PLUGIN_DIRS += plugins/apps plugins/native
MXE_PLUGIN_DIRS += plugins/gcc9
# This variable controls the download mirror for SourceForge,
# when it is used. Enabling the value below means auto.
#SOURCEFORGE_MIRROR := downloads.sourceforge.net
# The three lines below makes `make` build these "local
# packages" instead of all packages.
#LOCAL_PKG_LIST := boost curl file flac lzo pthreads vorbis wxwidgets
LOCAL_PKG_LIST := boost freeglut protobuf sdl2 qtbase qtconnectivity qtscript \
qtserialport qtsvg qttools qttranslations qtwebsockets qwt \
ffmpeg openscenegraph osgearth
.DEFAULT_GOAL := local-pkg-list
local-pkg-list: $(LOCAL_PKG_LIST)