]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/Tupfile
include cleanup
[z180-stamp.git] / avr / Tupfile
index b7da73be6ec02e6d601ca43e7b662d6b45e1afa1..acb4aa54efca61dda0ee015afa1d2b8212da628a 100644 (file)
@@ -1,12 +1,12 @@
 include_rules
 
-PROG           = stamp-test
+PROG           = stamp-monitor
 SRC            = main.c
 SRC            += cli.c cli_readline.c command.c command_tbl.c
-SRC            += cmd_help.c cmd_echo.c cmd_mem.c cmd_boot.c
-SRC            += env.c xmalloc.c
-SRC            += timer.c con-utils.c serial.c
-SRC            += background.c z180-serv.c z80-if.c
+SRC            += cmd_help.c cmd_date.c cmd_mem.c cmd_boot.c cmd_pin.c cmd_misc.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
 
@@ -14,9 +14,11 @@ SRC_Z                = ../z180/hdrom.c
 
 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)