include_rules
-PROG = z180-stamp-avr
-SRC = z180-stamp-avr.c serial.c z80-if.c
+PROG = stamp-test
+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_Z = ../z180/hdrom.c
+
#TARGETS = $(PROG).elf
MCU_TARGET = atmega1281
-F_CPU = 16000000UL
-DEFS = -DF_CPU=$(F_CPU) -DBAUD=115200
+F_CPU = 18432000UL
+DEFS = -DF_CPU=$(F_CPU) -DBAUD=115200UL
-INCLUDES += ../z180
+#INCLUDES += ../z180
###############################################################################
###############################################################################
ifdef DEBUG
+SRC += debug.c
DEFS += -DDEBUG=2
endif
CFLAGS = -g -Os
CFLAGS += -mmcu=$(MCU_TARGET)
CFLAGS += -std=gnu99
-CFLAGS += -Wall -Wextra -Wimplicit-function-declaration
+CFLAGS += -Wall -Wextra
CFLAGS += -Wredundant-decls
#CFLAGS += -fno-common -ffunction-sections -fdata-sections
#CFLAGS += -I $(INCLUDES)