Use DEBUG instead of __NO_INLINE__ since this is not defined for -Os
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for bounce1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for bounce2
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for bounce3
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for bounce4
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for bounce5
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for chooser
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for demo1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for demo2
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for fonttest1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for hello1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../drivers/test -I../../drivers -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for hello2
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for hello3
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for hello4
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for ir_grab1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for ir_grab2
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for ir_grab3
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for ir_serial_test1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for ir_serial_test2
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for ir_serial_test3
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for ir_uart_test1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for ir_uart_test2
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for led1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for led2
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for led3
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for led4
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for led5
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for pio1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for pio2
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for pio3
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for scribble1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for snake1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for space10
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for space11
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ ledmat.o: ../../drivers/ledmat.c ../../drivers/avr/pio.h ../../drivers/avr/syste
|
||||
navswitch.o: ../../drivers/navswitch.c ../../drivers/avr/delay.h ../../drivers/avr/pio.h ../../drivers/avr/system.h ../../drivers/navswitch.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
mmelody.o: ../../extra/mmelody.c ../../drivers/avr/system.h ../../extra/mmelody.h ../../extra/ticker.h
|
||||
mmelody.o: ../../extra/mmelody.c ../../drivers/avr/system.h ../../extra/mmelody.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
squeaker.o: ../../extra/squeaker.c ../../drivers/avr/system.h ../../extra/squeaker.h ../../extra/ticker.h
|
||||
|
||||
@@ -50,7 +50,7 @@ system-test.o: ../../drivers/test/system.c ../../drivers/test/avrtest.h ../../dr
|
||||
timer-test.o: ../../drivers/test/timer.c ../../drivers/test/system.h ../../drivers/test/timer.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
mmelody-test.o: ../../extra/mmelody.c ../../drivers/test/system.h ../../extra/mmelody.h ../../extra/ticker.h
|
||||
mmelody-test.o: ../../extra/mmelody.c ../../drivers/test/system.h ../../extra/mmelody.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
squeaker-test.o: ../../extra/squeaker.c ../../drivers/test/system.h ../../extra/squeaker.h ../../extra/ticker.h
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for space9
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for spacey_remote1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ timer.o: ../../drivers/avr/timer.c ../../drivers/avr/system.h ../../drivers/avr/
|
||||
led.o: ../../drivers/led.c ../../drivers/avr/pio.h ../../drivers/avr/system.h ../../drivers/led.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
mmelody.o: ../../extra/mmelody.c ../../drivers/avr/system.h ../../extra/mmelody.h ../../extra/ticker.h
|
||||
mmelody.o: ../../extra/mmelody.c ../../drivers/avr/system.h ../../extra/mmelody.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
squeaker.o: ../../extra/squeaker.c ../../drivers/avr/system.h ../../extra/squeaker.h ../../extra/ticker.h
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for squeak1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../extra -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
@@ -32,7 +32,7 @@ system-test.o: ../../drivers/test/system.c ../../drivers/test/avrtest.h ../../dr
|
||||
timer-test.o: ../../drivers/test/timer.c ../../drivers/test/system.h ../../drivers/test/timer.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
mmelody-test.o: ../../extra/mmelody.c ../../drivers/test/system.h ../../extra/mmelody.h ../../extra/ticker.h
|
||||
mmelody-test.o: ../../extra/mmelody.c ../../drivers/test/system.h ../../extra/mmelody.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
squeaker-test.o: ../../extra/squeaker.c ../../drivers/test/system.h ../../extra/squeaker.h ../../extra/ticker.h
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
# Definitions.
|
||||
CC = avr-gcc
|
||||
CFLAGS = -mmcu=atmega32u2 -Os -finline -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/avr -I../../extra -I../../drivers -I../../utils
|
||||
CFLAGS = -mmcu=atmega32u2 -Os -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/avr -I../../extra -I../../drivers -I../../utils
|
||||
OBJCOPY = avr-objcopy
|
||||
SIZE = avr-size
|
||||
DEL = rm
|
||||
@@ -34,7 +34,7 @@ button.o: ../../drivers/button.c ../../drivers/avr/pio.h ../../drivers/avr/syste
|
||||
led.o: ../../drivers/led.c ../../drivers/avr/pio.h ../../drivers/avr/system.h ../../drivers/led.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
mmelody.o: ../../extra/mmelody.c ../../drivers/avr/system.h ../../extra/mmelody.h ../../extra/ticker.h
|
||||
mmelody.o: ../../extra/mmelody.c ../../drivers/avr/system.h ../../extra/mmelody.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
squeaker.o: ../../extra/squeaker.c ../../drivers/avr/system.h ../../extra/squeaker.h ../../extra/ticker.h
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for squeak2
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../extra -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
@@ -14,7 +14,10 @@ all: squeak2
|
||||
|
||||
|
||||
# Compile: create object files from C source files.
|
||||
squeak2-test.o: squeak2.c ../../drivers/led.h ../../drivers/test/avrtest.h ../../drivers/test/pio.h ../../drivers/test/system.h ../../drivers/test/timer.h ../../extra/mmelody.h ../../extra/squeaker.h ../../extra/ticker.h ../../extra/tweeter.h ../../utils/task.h
|
||||
squeak2-test.o: squeak2.c ../../drivers/button.h ../../drivers/led.h ../../drivers/test/avrtest.h ../../drivers/test/pio.h ../../drivers/test/system.h ../../drivers/test/timer.h ../../extra/mmelody.h ../../extra/squeaker.h ../../extra/ticker.h ../../extra/tweeter.h ../../utils/task.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
button-test.o: ../../drivers/button.c ../../drivers/button.h ../../drivers/test/avrtest.h ../../drivers/test/pio.h ../../drivers/test/system.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
led-test.o: ../../drivers/led.c ../../drivers/led.h ../../drivers/test/avrtest.h ../../drivers/test/pio.h ../../drivers/test/system.h
|
||||
@@ -32,7 +35,7 @@ system-test.o: ../../drivers/test/system.c ../../drivers/test/avrtest.h ../../dr
|
||||
timer-test.o: ../../drivers/test/timer.c ../../drivers/test/system.h ../../drivers/test/timer.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
mmelody-test.o: ../../extra/mmelody.c ../../drivers/test/system.h ../../extra/mmelody.h ../../extra/ticker.h
|
||||
mmelody-test.o: ../../extra/mmelody.c ../../drivers/test/system.h ../../extra/mmelody.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
squeaker-test.o: ../../extra/squeaker.c ../../drivers/test/system.h ../../extra/squeaker.h ../../extra/ticker.h
|
||||
@@ -51,14 +54,14 @@ task-test.o: ../../utils/task.c ../../drivers/test/system.h ../../drivers/test/t
|
||||
|
||||
|
||||
# Link: create executable file from object files.
|
||||
squeak2: squeak2-test.o led-test.o mgetkey-test.o pio-test.o system-test.o timer-test.o mmelody-test.o squeaker-test.o ticker-test.o tweeter-test.o task-test.o
|
||||
squeak2: squeak2-test.o button-test.o led-test.o mgetkey-test.o pio-test.o system-test.o timer-test.o mmelody-test.o squeaker-test.o ticker-test.o tweeter-test.o task-test.o
|
||||
$(CC) $(CFLAGS) $^ -o $@ -lrt
|
||||
|
||||
|
||||
# Clean: delete derived files.
|
||||
.PHONY: clean
|
||||
clean:
|
||||
-$(DEL) squeak2 squeak2-test.o led-test.o mgetkey-test.o pio-test.o system-test.o timer-test.o mmelody-test.o squeaker-test.o ticker-test.o tweeter-test.o task-test.o
|
||||
-$(DEL) squeak2 squeak2-test.o button-test.o led-test.o mgetkey-test.o pio-test.o system-test.o timer-test.o mmelody-test.o squeaker-test.o ticker-test.o tweeter-test.o task-test.o
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# File: Makefile
|
||||
# Author: M. P. Hayes, UCECE
|
||||
# Date: 11 Sep 2010
|
||||
# Descr: Makefile for squeak2 docs
|
||||
# Descr: Makefile for squeak3 docs
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
# Definitions.
|
||||
CC = avr-gcc
|
||||
CFLAGS = -mmcu=atmega32u2 -Os -finline -Wall -Wstrict-prototypes -Wextra -g -I../../drivers -I../../extra -I../../drivers/avr -I../../fonts -I../../utils
|
||||
CFLAGS = -mmcu=atmega32u2 -Os -Wall -Wstrict-prototypes -Wextra -g -I../../drivers -I../../extra -I../../drivers/avr -I../../fonts -I../../utils
|
||||
OBJCOPY = avr-objcopy
|
||||
SIZE = avr-size
|
||||
DEL = rm
|
||||
@@ -40,7 +40,7 @@ led.o: ../../drivers/led.c ../../drivers/avr/pio.h ../../drivers/avr/system.h ..
|
||||
ledmat.o: ../../drivers/ledmat.c ../../drivers/avr/pio.h ../../drivers/avr/system.h ../../drivers/ledmat.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
mmelody.o: ../../extra/mmelody.c ../../drivers/avr/system.h ../../extra/mmelody.h ../../extra/ticker.h
|
||||
mmelody.o: ../../extra/mmelody.c ../../drivers/avr/system.h ../../extra/mmelody.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
squeaker.o: ../../extra/squeaker.c ../../drivers/avr/system.h ../../extra/squeaker.h ../../extra/ticker.h
|
||||
|
||||
@@ -41,7 +41,7 @@ system-test.o: ../../drivers/test/system.c ../../drivers/test/avrtest.h ../../dr
|
||||
timer-test.o: ../../drivers/test/timer.c ../../drivers/test/system.h ../../drivers/test/timer.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
mmelody-test.o: ../../extra/mmelody.c ../../drivers/test/system.h ../../extra/mmelody.h ../../extra/ticker.h
|
||||
mmelody-test.o: ../../extra/mmelody.c ../../drivers/test/system.h ../../extra/mmelody.h
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
|
||||
squeaker-test.o: ../../extra/squeaker.c ../../drivers/test/system.h ../../extra/squeaker.h ../../extra/ticker.h
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# File: Makefile
|
||||
# Author: M. P. Hayes, UCECE
|
||||
# Date: 11 Sep 2010
|
||||
# Descr: Makefile for squeak2 docs
|
||||
# Descr: Makefile for squeak4 docs
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for steer1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for task1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for task2
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for tdmdemo1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for tdmdemo2
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for updown1
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Descr: Makefile for updown2
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I. -I../../utils -I../../drivers -I../../drivers/test -I../../extra
|
||||
CFLAGS = -Wall -Wstrict-prototypes -Wextra -g -I../../drivers/test -I../../drivers -I../../fonts -I../../utils
|
||||
|
||||
DEL = rm
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
#include "system.h"
|
||||
#include "pio.h"
|
||||
|
||||
#ifdef __NO_INLINE__
|
||||
#ifdef DEBUG
|
||||
|
||||
/** Configure pio.
|
||||
@param pio PIO to configure
|
||||
|
||||
+1
-1
@@ -130,7 +130,7 @@ typedef enum pio_config_enum
|
||||
#define PIO_DATA_(pio) (*PIO_PORT_ (pio))
|
||||
|
||||
|
||||
#ifdef __NO_INLINE__
|
||||
#ifdef DEBUG
|
||||
/** Configure pio.
|
||||
@param pio PIO to configure
|
||||
@param config PIO configuration type
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ docs: $(DOCMAKEFILES)
|
||||
(cd $(dir $@); ../../etc/makemake.py --cc="gcc" --cflags="" --relpath --objext=-test.o --template ../../etc/Makefile.test.template . . ../../utils ../../drivers ../../drivers/test ../../extra > Makefile.test)
|
||||
|
||||
../%/Makefile: Makefile.template Makefile makemake.py
|
||||
(cd $(dir $@); ../../etc/makemake.py --cc="avr-gcc" --cflags="-Os -mmcu=atmega32u2 -finline" --relpath --template ../../etc/Makefile.template . . ../../utils ../../fonts ../../drivers ../../drivers/avr ../../extra > Makefile)
|
||||
(cd $(dir $@); ../../etc/makemake.py --cc="avr-gcc" --cflags="-Os -mmcu=atmega32u2" --relpath --template ../../etc/Makefile.template . . ../../utils ../../fonts ../../drivers ../../drivers/avr ../../extra > Makefile)
|
||||
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -260,7 +260,7 @@ def maincfilename_find (dirname):
|
||||
|
||||
def functions_find (filepath, functiondeps, functions, options):
|
||||
|
||||
command = options.compile + ' -c ' + filepath + ' -fdump-tree-cfg-raw -fno-inline > /dev/null'
|
||||
command = options.compile + ' -c ' + filepath + ' -fdump-tree-cfg-raw -Ddebug > /dev/null'
|
||||
if options.debug:
|
||||
print >> sys.stderr, command
|
||||
os.system (command)
|
||||
|
||||
Reference in New Issue
Block a user