-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgcc.tup
53 lines (47 loc) · 1.8 KB
/
gcc.tup
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
# File created: 2012-02-06 11:53:26
# The compiler command to use.
#
# Can include flags that will be applied to every single command.
CC = gcc -fPIC
# The archiver command to use, when combining the object files into a static
# library. This is followed by the library's file name and then each object
# file as separate arguments.
AR = ar rcs
# Used when linking a shared library.
SHAREDLIBFLAGS = -shared
# Flags used when compiling .c files:
#
# SRCFLAGS - used for all .c files
# MUSHSRCFLAGS - used for mushspace's own .c files
# LIBSRCFLAGS - used for libraries' .c files (all those that are in lib/)
#
# As mushspace is written in C11, MUSHSRCFLAGS should enable that standard.
# Alternatively, it could enable whatever compiler-supported extensions to C99
# (or even C89/C90) make mushspace compile. (For example, -std=gnu99 on older
# GCC versions.)
SRCFLAGS = -Wall -Wextra -Wno-unknown-pragmas -pedantic
MUSHSRCFLAGS = -std=c11
LIBSRCFLAGS =
# Flags with very specific meanings, with data appended immediately following:
#
# DEFDIM - to #define MUSHSPACE_DIM
# DEF93 - to #define MUSHSPACE_93
# INCLUDE - to add paths searched for #include "foo"
#
# The #define flags are immediately followed by the value to which the
# corresponding variable is to be #defined.
#
# INCLUDE is immediately followed by a path to add to the list of paths to be
# searched.
DEFDIM = -DMUSHSPACE_DIM=
DEF93 = -DMUSHSPACE_93=
INCLUDE = -I
# NATIVEFLAGS - used when a native build is requested (CONFIG_NATIVE)
# OPTFLAGS - used when an optimized build is requested (CONFIG_OPTIMIZE)
# DEBFLAGS - used when a debug build is requested (CONFIG_DEBUG)
#
# These are all passed both when compiling individual .c files and when linking
# a shared library.
NATIVEFLAGS = -march=native
OPTFLAGS = -flto -O3
DEBFLAGS = -g