# ----------------------------------------------------------------------------
# Hyper Operating System  Application Framework
#  makefile for MN103S
#
# Copyright (C) 1998-2008 by Project HOS
# http://sourceforge.jp/projects/hos/
# ----------------------------------------------------------------------------



# --------------------------------------
#  %jp{eݒ}{setting}
# --------------------------------------

# %jp{^[QbgCu}%en{target library name}
TARGET ?= hosaplfw


# %jp{A[LeN``}%en{architecture}
ARCH_NAME ?= mn103s
ARCH_CC   ?= cc103


# %jp{fBNg`}%en{directories}
TOP_DIR            = ../../../../..
KERNEL_DIR         = $(TOP_DIR)/kernel
KERNEL_MAKINC_DIR  = $(KERNEL_DIR)/build/common/gmake
HOSAPLFW_DIR       = $(TOP_DIR)/aplfw
HOSAPLFW_MKINK_DIR = $(HOSAPLFW_DIR)/build/common/gmake


# %jp{ʒ`Ǎ}%en{common setting}
include $(KERNEL_MAKINC_DIR)/common.inc


# %jp{pXݒ}%en{add source directories}
INC_DIRS += $(APLFW_DIR) $(KERNEL_DIR)/include
SRC_DIRS += 


# %jp{IvVtO}%en{option flags}
AFLAGS  =
CFLAGS  =
ARFLAGS =

# %jp{NΏې}
LINK_MN103SC = Yes


# %jp{RpCˑ̐ݒǍ}%en{compiler dependent definitions}
include $(KERNEL_MAKINC_DIR)/$(ARCH_CC)_d.inc

# %jp{CupݒǍ}%en{definitions for library}
include $(KERNEL_MAKINC_DIR)/maklib_d.inc




# --------------------------------------
#  %jp{\[Xt@C}%en{source files}
# --------------------------------------

# %jp{AZut@C̒ǉ}%en{assembry sources}
ASRCS +=

# %jp{Ct@C̒ǉ}%en{C sources}
CSRCS +=


# %jp{HOSAPLFWʃ\[Xt@C`}%en{HOSAPLFW common sorce files}
include $(HOSAPLFW_MKINK_DIR)/aplfwsrc.inc




# --------------------------------------
#  %jp{[`}%en{rules}
# --------------------------------------

# %jp{ALL}%en{all}
.PHONY : all
all: makelib_all

# %jp{N[}%en{clean}
.PHONY : clean
clean: makelib_clean

# %jp{ˑ֌WXV}%en{make depend}
.PHONY : depend
depend: makelib_depend

# %jp{\[XꊇRs[}%en{source files copy}
.PHONY : srccpy
srccpy: makelib_srccpy


# %jp{CupݒǍ}%en{rules for library}
include $(KERNEL_MAKINC_DIR)/maklib_r.inc

# %jp{RpCˑ̃[`Ǎ}%en{rules for compiler}
include $(KERNEL_MAKINC_DIR)/$(ARCH_CC)_r.inc



# --------------------------------------
#  %jp{ˑ֌W}%en{dependency}
# --------------------------------------


# %jp{HOSAPLFWʈˑ֌W`}%en{HOSAPLFW depend}
include $(HOSAPLFW_MKINK_DIR)/aplfwdep.inc


# end of file
