mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
- Added automatic debug flags to CFLAGS if DEBUG is set in shell
This commit is contained in:
parent
f9964abe7c
commit
c7ffd36a97
3 changed files with 13 additions and 1 deletions
|
|
@ -4,6 +4,10 @@
|
|||
CFLAGS += -I../include -D_FILE_OFFSET_BITS=64 -Wall -W -Wdeclaration-after-statement
|
||||
OFLAGS = -O
|
||||
|
||||
ifdef DEBUG
|
||||
CFLAGS += -g3
|
||||
endif
|
||||
|
||||
# MicroBlaze specific options:
|
||||
# CFLAGS += -mno-xl-soft-mul -mxl-barrel-shift
|
||||
|
||||
|
|
@ -65,7 +69,7 @@ libpolarssl.dll: libpolarssl.a
|
|||
$(CC) -shared -Wl,-soname,$@ -o $@ $(OBJS) -lws2_32 -lwinmm -lgdi32
|
||||
|
||||
.c.o:
|
||||
echo " CC $<"
|
||||
echo " CC $< $(CFLAGS)"
|
||||
$(CC) $(CFLAGS) $(OFLAGS) -c $<
|
||||
|
||||
clean:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue