File: Makefile_Settings.gcc

package info (click to toggle)
libjpeg 0.0~git20241105.c719010-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,904 kB
  • sloc: cpp: 36,434; makefile: 618; ansic: 275; sh: 54; python: 39; perl: 11
file content (35 lines) | stat: -rwxr-xr-x 1,819 bytes parent folder | download | duplicates (3)
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
#! make
##
## Specific GCC project settings.
##
## $Id: Makefile_Settings.gcc,v 1.5 2020/04/08 10:05:29 thor Exp $
##

CXX		= $(COMPILER_CMD)
DEFINES		= 
CC		= $(CXX)
MAKEOBJS	= -x c++ -c
CFLAGS		= $(BITSIZE) -Wall -W -Wunused -Wpointer-arith -pedantic -Wcast-qual -Wwrite-strings -Wno-long-long -Wredundant-decls -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -fno-exceptions -Wno-char-subscripts -Wno-shift-negative-value $(INCLUDEOPTS) $(DEFINES) $(ADDOPTS) $(WARNOPTS) $(CPU) $(TUNE)
OPTIMIZER	= -O3 -DDEBUG_LEVEL=0 -DCHECK_LEVEL=0 -funroll-loops -fstrict-aliasing -Wno-redundant-decls -ffast-math #-mfpmath=387 #-maccumulate-outgoing-args -minline-all-stringops -fno-rtti 
		  #-fschedule-insns # These give "register spill" errors.
		  #-fschedule-insns2 #-fomit-frame-pointer breaks exception handling for 3.2
                  # 387 legacy FPU code is faster than SSE for gcc. Wierd.
                  # -Wconversion is unusable for gcc 4.3 and above.
#
# Additional tuning of the template generation by means of -frepo or the like did not at all change the
# size of the final executable. Thus, it's not done.
#
PROFILER	= -O3 -pg -ggdb3 -pg -fno-omit-frame-pointer #-fno-inline
LDPROF		= -pg
DEBUGGER	= -ggdb3 -fno-omit-frame-pointer -fno-inline -DDEBUG_LEVEL=2 -DCHECK_LEVEL=3
VERBOSE		= -ggdb3 -fno-inline -DDEBUG_LEVEL=3 -DCHECK_LEVEL=3
DEBUGINFO	= -ggdb3 -fno-omit-frame-pointer -fno-inline
TOASM           = -S -fverbose-asm #-fno-unroll-loops
DBLIBS          = #-lefence # does also break exception handling
LD		= $(CXX)
LDFLAGS		= $(BITSIZE) 
LDLIBS		= -lc -lm $(EXTRA_LIBS) #gcc_s required for long division/multiplication on 32bit
PROFGEN		= $(OPTIMIZER) -fprofile-arcs
PROFUSE		= $(OPTIMIZER) -fbranch-probabilities
COVERAGE	= -ftest-coverage -fprofile-arcs
LDCOVERAGE	= -lgcov -fprofile-arcs