makefile: improve a bit more
- add make targets for coverage creation - don't enable optimization when requesting a debug build
This commit is contained in:
parent
91df2129ec
commit
d32e7a3dd0
2
.gitignore
vendored
2
.gitignore
vendored
@ -10,6 +10,8 @@ Debug/
|
|||||||
Release/
|
Release/
|
||||||
.libs/
|
.libs/
|
||||||
.coveralls.yml
|
.coveralls.yml
|
||||||
|
coverage/
|
||||||
|
coverage.info
|
||||||
|
|
||||||
# suppress output of build process and *nix/windows test executables
|
# suppress output of build process and *nix/windows test executables
|
||||||
ltmtest
|
ltmtest
|
||||||
|
7
makefile
7
makefile
@ -88,6 +88,13 @@ coverage: LFLAGS += -lgcov
|
|||||||
coverage: test_standalone
|
coverage: test_standalone
|
||||||
./test
|
./test
|
||||||
|
|
||||||
|
lcov: coverage
|
||||||
|
lcov --capture --no-external --no-recursion --directory . --output-file coverage.info -q
|
||||||
|
genhtml coverage.info --output-directory coverage -q
|
||||||
|
|
||||||
|
coveralls: coverage
|
||||||
|
cpp-coveralls
|
||||||
|
|
||||||
#make a profiled library (takes a while!!!)
|
#make a profiled library (takes a while!!!)
|
||||||
#
|
#
|
||||||
# This will build the library with profile generation
|
# This will build the library with profile generation
|
||||||
|
@ -26,6 +26,16 @@ CFLAGS += -Wsystem-headers -Wdeclaration-after-statement -Wbad-function-cast -Wc
|
|||||||
CFLAGS += -Wstrict-prototypes -Wpointer-arith
|
CFLAGS += -Wstrict-prototypes -Wpointer-arith
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef COMPILE_DEBUG
|
||||||
|
#debug
|
||||||
|
CFLAGS += -g3
|
||||||
|
else
|
||||||
|
|
||||||
|
ifdef COMPILE_SIZE
|
||||||
|
#for size
|
||||||
|
CFLAGS += -Os
|
||||||
|
else
|
||||||
|
|
||||||
ifndef IGNORE_SPEED
|
ifndef IGNORE_SPEED
|
||||||
#for speed
|
#for speed
|
||||||
CFLAGS += -O3 -funroll-loops
|
CFLAGS += -O3 -funroll-loops
|
||||||
@ -34,15 +44,8 @@ CFLAGS += -O3 -funroll-loops
|
|||||||
CFLAGS += -fomit-frame-pointer
|
CFLAGS += -fomit-frame-pointer
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef COMPILE_SIZE
|
endif # COMPILE_SIZE
|
||||||
#for size
|
endif # COMPILE_DEBUG
|
||||||
CFLAGS += -Os
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef COMPILE_DEBUG
|
|
||||||
#debug
|
|
||||||
CFLAGS += -g3
|
|
||||||
endif
|
|
||||||
|
|
||||||
HEADERS=tommath.h tommath_class.h tommath_superclass.h
|
HEADERS=tommath.h tommath_class.h tommath_superclass.h
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user