X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/d684c21619905153eff68c43927207248925f6c2..89adce76dd02f2076ec6de1c6b434bc1f29512f4:/avr/Tupfile diff --git a/avr/Tupfile b/avr/Tupfile index d90f225..91562b4 100644 --- a/avr/Tupfile +++ b/avr/Tupfile @@ -1,22 +1,24 @@ include_rules -PROG = stamp-bootc -SRC = bootc.c +PROG = stamp-monitor +SRC = main.c SRC += cli.c cli_readline.c command.c command_tbl.c -SRC += cmd_help.c cmd_echo.c -SRC += env.c xmalloc.c -SRC += timer.c con-utils.c serial.c -SRC += z80-if.c +SRC += cmd_help.c cmd_echo.c cmd_date.c cmd_mem.c cmd_boot.c cmd_pin.c +SRC += env.c xmalloc.c date.c con-utils.c print-utils.c getopt-min.c +SRC += timer.c serial.c i2c.c pcf8583.c +SRC += background.c z180-serv.c z80-if.c pin.c -#SRC_Z = ../z180/hdrom.c +SRC_Z = ../z180/hdrom.c #TARGETS = $(PROG).elf MCU_TARGET = atmega1281 F_CPU = 18432000UL -DEFS = -DF_CPU=$(F_CPU) -DBAUD=115200UL +DEFS = -DF_CPU=$(F_CPU) -#INCLUDES += ../z180 +INCLUDES += -I$(TOP)/include + +#INCLUDES += -I../z180 ############################################################################### @@ -35,6 +37,7 @@ GDB = $(TOOLCHAIN)-gdb ############################################################################### ifdef DEBUG +SRC += debug.c DEFS += -DDEBUG=2 endif @@ -43,8 +46,22 @@ CFLAGS += -mmcu=$(MCU_TARGET) CFLAGS += -std=gnu99 CFLAGS += -Wall -Wextra CFLAGS += -Wredundant-decls -#CFLAGS += -fno-common -ffunction-sections -fdata-sections -#CFLAGS += -I $(INCLUDES) +CFLAGS += -mrelax +CFLAGS += -fno-common +CFLAGS += -ffunction-sections +CFLAGS += -fdata-sections +CFLAGS += -fno-tree-loop-optimize +CFLAGS += -fno-move-loop-invariants +CFLAGS += -fno-split-wide-types +#CFLAGS += -flto +CFLAGS += -fshort-enums + +#CFLAGS += -fdiagnostics-color=always + +#CFLAGS += -save-temps + + +CFLAGS += $(INCLUDES) CPPFLAGS += $(DEFS)