mirror of
https://github.com/sjlongland/cluster-powerctl.git
synced 2025-09-13 20:13:16 +10:00
Makefile: Pass -DDEBUG if DEBUG=y
This commit is contained in:
parent
3db2e03807
commit
3341fcefdf
6
Makefile
6
Makefile
@ -17,9 +17,13 @@
|
||||
|
||||
-include local.mk
|
||||
|
||||
ifeq ($(DEBUG),y)
|
||||
DEBUGFLAGS = -DDEBUG
|
||||
endif
|
||||
|
||||
CFLAGS = -Os -g -mmcu=attiny24a -Wall -Werror
|
||||
LDFLAGS = -mmcu=attiny24a -Wall -Werror
|
||||
CPPFLAGS = -DF_CPU=1000000UL
|
||||
CPPFLAGS = -DF_CPU=1000000UL $(DEBUGFLAGS)
|
||||
CROSS_COMPILE ?= avr-
|
||||
CC = $(CROSS_COMPILE)gcc
|
||||
OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||
|
Loading…
Reference in New Issue
Block a user