# ----------------------------------------------------------------------------
# Hyper Operating System V4 Advance
#  makefile for H8/300H
#
# Copyright (C) 1998-2011 by Project HOS
# http://sourceforge.jp/projects/hos/
# ----------------------------------------------------------------------------



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

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


# %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 += $(HOSAPLFW_DIR) $(KERNEL_DIR)/include
SRC_DIRS += 


# %jp{IvVtO}%en{option flags}
CFLAGS  = -CPu=300HA:24
AFLAGS  = -CPu=300HA:24
ARFLAGS = 

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

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



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

# %jp{NΏې}
LINK_RENESASSCI = Yes

# %jp{ʃ\[X̒ǉ}%en{common sources}
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
	$(RM) -f *.lst

.PHONY : depend
depend: makelib_depend

.PHONY : srccpy
srccpy: makelib_srccpy


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

# %jp{ch38p̃[`Ǎ}
include $(KERNEL_MAKINC_DIR)/ch38_r.inc



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

# %jp{ˑ֌W`Ǎ}{dependency list of sources}
include $(HOSAPLFW_MKINK_DIR)/aplfwdep.inc


# end of file
