#
# ----------------------------------------------------------------------
#     T-Kernel 2.0 Software Package
#
#     Copyright 2011 by Ken Sakamura.
#     This software is distributed under the T-License 2.0.
# ----------------------------------------------------------------------
#
#     Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17.
#     Modified by T-Engine Forum at 2012/02/14.
#
# ----------------------------------------------------------------------
#

ifndef BD
  BD = /usr/local/tef_em1d/tkernel_source
endif

ifndef GNU_BD
  GNU_BD = /usr/local/tef_em1d/tool/$(shell $(BD)/etc/platform)
endif

ifndef GNUarm_2
  GNUarm_2 = $(GNU_BD)/arm_2-unknown-tkernel
endif

override TARGET_CRT0=icrt0_ram.o

#
#	Makefile for gmake
#	sysmain (system-dependent description)
#

# T-Engine type
MACHINE = em1d
TETYPE	= tef

# default rules
include ../../../../etc/makerules

# source files (system-dependent)
SRC	=

# Manager and Driver objects (links to the kernel)
K_OBJ	=

# include main makefile (common description)
include ../Makefile.common

usermain.o: CFLAGS := $(subst -O2,, $(CFLAGS)) -g
display.o:  CFLAGS := $(subst -O2,, $(CFLAGS)) -g
drawTask.o: CFLAGS := $(subst -O2,, $(CFLAGS)) -g
inputDevice.o: CFLAGS := $(subst -O2,, $(CFLAGS)) -g
