mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-26 15:54:15 +01:00
Define DEBUG in debug-builds
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@306 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
c932e131f0
commit
a30f682a1e
@ -73,6 +73,7 @@ OPUAVOBJ = ./UAVObjects
|
||||
OPUAVOBJINC = $(OPUAVOBJ)/inc
|
||||
OPSETTINGS = ./Settings
|
||||
OPSETTINGSINC = $(OPSETTINGS)/inc
|
||||
OPTESTS = ./Tests
|
||||
OPMODULEDIR = ./Modules
|
||||
MODTELEMETRY = $(OPMODULEDIR)/Telemetry
|
||||
MODTELEMETRYINC = $(MODTELEMETRY)/inc
|
||||
@ -112,6 +113,10 @@ SRC += $(OPUAVOBJ)/uavobjectmanager.c
|
||||
SRC += $(OPUAVOBJ)/uavobjectsinit.c
|
||||
SRC += $(OPUAVOBJ)/eventdispatcher.c
|
||||
|
||||
## OPENPILOT Testcode
|
||||
#SRC += $(OPTESTS)/test_I2c_PCF8570.c
|
||||
|
||||
|
||||
## UAVOBJECTS
|
||||
|
||||
|
||||
@ -320,7 +325,7 @@ CSTANDARD = -std=gnu99
|
||||
# Flags for C and C++ (arm-elf-gcc/arm-elf-g++)
|
||||
|
||||
ifeq ($(DEBUG),YES)
|
||||
CFLAGS = -g$(DEBUGF)
|
||||
CFLAGS = -g$(DEBUGF) -DDEBUG
|
||||
endif
|
||||
|
||||
CFLAGS += -O$(OPT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user