mirror of
https://github.com/BertoldVdb/ZoneDetect.git
synced 2026-04-06 10:45:52 +00:00
Compile with debug info and do not strip if DEBUG is set (not evaluating its value...).
This commit is contained in:
parent
1c16caf956
commit
dc2311d87d
1 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,7 @@
|
|||
CC?=$(CCARCH)gcc
|
||||
STRIP?=$(CCARCH)strip
|
||||
|
||||
CFLAGS=-fPIC -O3 -std=gnu99 -pedantic -Wall -Wextra -Wconversion -Werror -c -fmessage-length=0 -ffunction-sections -fdata-sections
|
||||
CFLAGS=-fPIC $(if $(DEBUG),-O0 -g,-O3) -std=gnu99 -pedantic -Wall -Wextra -Wconversion -Werror -c -fmessage-length=0 -ffunction-sections -fdata-sections
|
||||
LDFLAGS=-shared
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
|
|
@ -53,7 +53,7 @@ all: $(EXECUTABLE)
|
|||
|
||||
$(EXECUTABLE): $(OBJECTS_OBJ)
|
||||
$(CC) $(LDFLAGS) $(OBJECTS_OBJ) -o $@
|
||||
$(STRIP) $@
|
||||
$(if $(DEBUG),,$(STRIP) $@)
|
||||
|
||||
|
||||
obj/%.o: src/%.c $(INCLUDES_SRC)
|
||||
|
|
|
|||
Loading…
Reference in a new issue