mirror of https://gerrit.osmocom.org/osmo-tetra
Makefile: -O3 and debug build
Build standard builds with -O3. Add a "debug" target with -Og and asan. Change-Id: Ie943babb808ffdb1d807bcd7ce4ace54723b49a9
This commit is contained in:
parent
9514389ef5
commit
05fa2d54bb
|
@ -1,8 +1,12 @@
|
|||
CFLAGS=-g -O0 -Wall `pkg-config --cflags libosmocore 2> /dev/null` -I.
|
||||
CFLAGS=-g -O3 -Wall `pkg-config --cflags libosmocore 2> /dev/null` -I.
|
||||
LDLIBS=`pkg-config --libs libosmocore 2> /dev/null` -losmocore
|
||||
|
||||
all: conv_enc_test crc_test tetra-rx float_to_bits tunctl
|
||||
|
||||
debug: CFLAGS := -lasan $(CFLAGS) -fsanitize=address -fno-omit-frame-pointer -g -Og
|
||||
debug: LDLIBS := -lasan $(LDLIBS)
|
||||
debug: all
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $^ -o $@
|
||||
|
||||
|
|
Loading…
Reference in New Issue