Added general ctk support to the cc65 build.

This commit is contained in:
oliverschmidt 2007-12-16 17:03:27 +00:00
parent f55b3cfe0e
commit 333ad36a4a
2 changed files with 14 additions and 7 deletions

View file

@ -30,12 +30,14 @@
*
* Author: Oliver Schmidt <ol.sc@web.de>
*
* @(#)$Id: 6502def.h,v 1.3 2007/12/15 00:06:27 oliverschmidt Exp $
* @(#)$Id: 6502def.h,v 1.4 2007/12/16 17:03:27 oliverschmidt Exp $
*/
#ifndef __6502DEF_H__
#define __6502DEF_H__
#include <ctype.h>
#include <conio.h>
#include <stdint.h>
/* These names are deprecated, use C99 names. */
@ -44,8 +46,6 @@ typedef uint16_t u16_t;
typedef uint32_t u32_t;
typedef int32_t s32_t;
typedef unsigned short uip_stats_t;
#define CC_CONF_REGISTER_ARGS 1
#define CC_CONF_FASTCALL __fastcall__
@ -55,7 +55,13 @@ typedef unsigned short uip_stats_t;
#define CLOCK_CONF_SECOND 2
typedef unsigned short clock_time_t;
typedef unsigned short uip_stats_t;
#define UIP_ARCH_ADD32 1
#define UIP_ARCH_CHKSUM 1
#define ctk_arch_keyavail kbhit
#define ctk_arch_getkey cgetc
#define ctk_arch_isprint isprint
#endif /* __6502DEF_H__ */

View file

@ -30,7 +30,7 @@
#
# Author: Oliver Schmidt <ol.sc@web.de>
#
# $Id: Makefile.6502,v 1.21 2007/12/15 11:05:38 oliverschmidt Exp $
# $Id: Makefile.6502,v 1.22 2007/12/16 17:03:27 oliverschmidt Exp $
#
ifndef CONTIKI
@ -55,13 +55,14 @@ CONTIKI_TARGET_DIRS = . lib sys
CONTIKI_CPU_DIRS = . lib sys net
CONTIKI_TARGET_MAIN = ${addprefix $(OBJECTDIR)/,contiki-main.o}
CONTIKI_TARGET_SOURCEFILES = contiki-main.c error.c cfs-posix.c petsciiconv.c
CONTIKI_TARGET_SOURCEFILES = contiki-main.c error.c
CONTIKI_CPU_SOURCEFILES = log.c config.c clock.c lc-asm.S \
mtarch.c mtarch-asm.S \
uip_arch.c ethernet-drv.c ethernet.c
CONTIKI_SOURCEFILES += $(CONTIKI_CPU_SOURCEFILES) $(CONTIKI_TARGET_SOURCEFILES)
CONTIKI_SOURCEFILES += $(CTK) ctk-conio.c cfs-posix.c petsciiconv.c \
$(CONTIKI_TARGET_SOURCEFILES) $(CONTIKI_CPU_SOURCEFILES)
TARGET_STARTFILES = $(TARGET).o --start-group
TARGET_LIBFILES = $(TARGET).lib --end-group