]>
Commit | Line | Data |
---|---|---|
88d31d11 L |
1 | # Fill BUILD_ARCH with appropriate value automatically (with some |
2 | # cosmetics in case of Cygwin/MinGW :)). | |
3 | BUILD_ARCH := $(patsubst MINGW32_%,MinGW,$(patsubst CYGWIN_%,Cygwin,$(shell uname -s)))-$(shell uname -m) | |
4 | ||
5 | # Target platform (where the code will be executed). I'm not using | |
6 | # TARGET_ARCH for this since this variable is already used in builtin | |
7 | # make rules and I want to be able to use those built in rules. By | |
8 | # default we are running on the same machine we are building. | |
9 | HOST_ARCH := $(BUILD_ARCH) | |
10 | ||
11 | # Build mode e.g. debug, profile, release. Build specific mode flags | |
12 | # can be entered in $(MK)/build-$(BUILD_MODE).mk file e.g. for debug | |
13 | # following seems to be a reasonable contents | |
14 | #CFLAGS += -ggdb | |
15 | #CXXFLAGS += -ggdb | |
16 | #CPPFLAGS += -DDEBUG | |
17 | #LDFLAGS += -ggdb | |
18 | # If you don't plan on having different build modes then just comment | |
19 | # below or set it to empty. | |
20 | #BUILD_MODE := $(or $(BUILD_MODE),debug) | |
21 | ||
22 | # To have some per directory setting automatically propagated to all | |
23 | # subdirs then uncomment below. That way you can have all project | |
24 | # compiled with "global" settings and easily switch flags for some | |
25 | # subtree just by setting per directory settings at the top dir of the | |
26 | # subtree. You may of course overwrite inherited values and you can | |
27 | # turn inheritance in some part by just clearing INHERIT_DIR_VARS_$(d) | |
28 | # This is a global inheritance flag - you might want to turn it on only | |
29 | # in some directory (just set INHERIT_DIR_VARS_$(d) there). | |
30 | #INHERIT_DIR_VARS := CPPFLAGS INCLUDES CFLAGS CXXFLAGS | |
31 | ||
32 | # Again, by default we are running on the same architecture we are | |
33 | # building - if you're cross compiling then you should set this manually | |
34 | ENDIAN := $(shell perl -le 'print unpack(N,pack(L,0x01020304)) == 0x01020304 ? big : little') | |
35 | ||
36 | # Make the compiler invocation lines verbose - if it is not defined or | |
37 | # set to value other then "true" you'll see just indication of what is | |
38 | # being compiled (without details about options) | |
39 | #VERBOSE := true | |
40 | ||
41 | # Uncomment if you don't like coloring of the output | |
42 | #COLOR_TTY := false | |
43 | ||
44 | # Any additional settings should go here |