Add support for compilation modes
This commit is contained in:
parent
a79535107d
commit
1d3ae53c60
@ -6,6 +6,13 @@ subdirs=data,doc,include,src,tests
|
|||||||
targets=tests
|
targets=tests
|
||||||
dist=Makefile,COPYING,config.h,config.sh
|
dist=Makefile,COPYING,config.h,config.sh
|
||||||
|
|
||||||
|
#modes
|
||||||
|
[mode::debug]
|
||||||
|
title=Debug
|
||||||
|
|
||||||
|
[mode::release]
|
||||||
|
title=Release
|
||||||
|
|
||||||
#targets
|
#targets
|
||||||
[tests]
|
[tests]
|
||||||
type=command
|
type=command
|
||||||
|
@ -1,12 +1,19 @@
|
|||||||
targets=libcpp
|
targets=libcpp
|
||||||
cppflags_force=-I ../../include
|
cppflags_force=-I../../include
|
||||||
cppflags=
|
cppflags=
|
||||||
cflags_force=`pkg-config --cflags libSystem` -fPIC
|
cflags_force=`pkg-config --cflags libSystem` -fPIC
|
||||||
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
cflags=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||||
ldflags_force=`pkg-config --libs libSystem`
|
ldflags_force=`pkg-config --libs libSystem`
|
||||||
ldflags=
|
ldflags=
|
||||||
dist=Makefile,common.h,parser.h
|
dist=Makefile,common.h,parser.h
|
||||||
|
|
||||||
|
#modes
|
||||||
|
[mode::debug]
|
||||||
|
|
||||||
|
[mode::release]
|
||||||
|
cppflags_force=-I../../include -DNDEBUG
|
||||||
|
cflags=-W -Wall -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||||
|
|
||||||
#targets
|
#targets
|
||||||
[libcpp]
|
[libcpp]
|
||||||
type=library
|
type=library
|
||||||
|
@ -3,11 +3,18 @@ targets=cpp
|
|||||||
cppflags_force=-I ../include
|
cppflags_force=-I ../include
|
||||||
cppflags=
|
cppflags=
|
||||||
cflags_force=`pkg-config --cflags libSystem` -fPIE
|
cflags_force=`pkg-config --cflags libSystem` -fPIE
|
||||||
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||||
ldflags_force=`pkg-config --libs libSystem`
|
ldflags_force=`pkg-config --libs libSystem`
|
||||||
ldflags=-pie -Wl,-z,relro -Wl,-z,now
|
ldflags=-pie -Wl,-z,relro -Wl,-z,now
|
||||||
dist=Makefile
|
dist=Makefile
|
||||||
|
|
||||||
|
#modes
|
||||||
|
[mode::debug]
|
||||||
|
|
||||||
|
[mode::release]
|
||||||
|
cppflags_force=-I ../include -DNDEBUG
|
||||||
|
cflags=-W -Wall -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||||
|
|
||||||
#targets
|
#targets
|
||||||
[cpp]
|
[cpp]
|
||||||
type=binary
|
type=binary
|
||||||
|
Loading…
Reference in New Issue
Block a user