📄 makefile.h8s
字号:
cleandep:
$(REMOVE) Makefile.depend
realclean: cleandep clean
#
# 埶懚娭學僼傽僀儖偺惗惉
# (make depend偼巊梡偱偒側偄丅)
#
# 埶懚娭學僼傽僀儖偺惗惉
#
REMOVE = rm -f
#
# 僐儞僷僀儔僪儔僀僶偺掕媊
#
ifdef TARGET
TARGET_PREFIX = $(TARGET)/
else
TARGET_PREFIX =
endif
CC = $(TARGET_PREFIX)ch38
AS = $(TARGET_PREFIX)asm38
LD = lnk
AR = lbr
NM =
RANLIB =
OBJCOPY =
OBJDUMP =
#
# C僾儕僾儘僙僢僒偺僐儅儞僪柤偺掕媊
#
CPP = $(CC) -prep
#
# 僐儞僷僀儖儖乕儖偺掕媊
#
KERNEL_ALL_COBJS = $(KERNEL_COBJS) $(KERNEL_ADD_COBJS) $(KERNEL_AUX_COBJS)
$(START_OBJS): %.obj: %.src
echo rule 1
echo $(ASMFLAGS) $(KERNEL_ASMFLAGS) | perl $(H8SDIR)/make_sub.pl > tmp.sub
echo -i=$(INCLUDES)$(KERNEL_ASMFLAGS_INC) >> tmp.sub
perl -i.bak $(H8SDIR)/make_asm_path.pl tmp.sub
echo $(AS) $< -O=$@ -sub=tmp.sub > tmp.sh
perl -i.bak $(H8SDIR)/make_asm_path.pl tmp.sh
sh tmp.sh
$(KERNEL_ALL_COBJS): %.obj: %.c
echo rule a
echo $(CFLAGS) $(KERNEL_CFLAGS) | perl $(H8SDIR)/make_sub.pl > tmp.sub
echo -i=$(INCLUDES)$(KERNEL_CFLAGS_INC) >> tmp.sub
$(CC) -sub=tmp.sub $<
$(KERNEL_ALL_COBJS:.obj=.src): %.src: %.c
echo $(CFLAGS) $(KERNEL_CFLAGS) | perl $(H8SDIR)/make_sub.pl > tmp.sub
echo -i=$(INCLUDES)$(KERNEL_CFLAGS_INC) >> tmp.sub
$(CC) -c=asmcode -sub=tmp.sub $<
$(KERNEL_ASMOBJS): %.obj: %.src
echo rule 2
echo $(ASMFLAGS) $(KERNEL_ASMFLAGS) | perl $(H8SDIR)/make_sub.pl > tmp.sub
echo -i=$(INCLUDES)$(KERNEL_ASMFLAGS_INC) >> tmp.sub
perl -i.bak $(H8SDIR)/make_asm_path.pl tmp.sub
echo $(AS) $< -O=$@ -sub=tmp.sub > tmp.sh
perl -i.bak $(H8SDIR)/make_asm_path.pl tmp.sh
sh tmp.sh
$(STASK_COBJS): %.obj: %.c
echo rule b
echo $(CFLAGS) $(STASK_CFLAGS) | perl $(H8SDIR)/make_sub.pl > tmp.sub
echo -i=$(INCLUDES)$(STASK_CFLAGS_INC) >> tmp.sub
$(CC) -sub=tmp.sub $<
$(STASK_COBJS:.obj=.src): %.src: %.c
echo $(CFLAGS) $(STASK_CFLAGS) | perl $(H8SDIR)/make_sub.pl > tmp.sub
echo -i=$(INCLUDES)$(STASK_CFLAGS_INC) >> tmp.sub
$(CC) -c=asmcode -sub=tmp.sub $<
$(STASK_ASMOBJS): %.obj: %.src
echo rule 3
echo $(ASMFLAGS) $(STASK_ASMFLAGS) | perl $(H8SDIR)/make_sub.pl > tmp.sub
echo -i=$(INCLUDES)$(STASK_ASMFLAGS_INC) >> tmp.sub
perl -i.bak $(H8SDIR)/make_asm_path.pl tmp.sub
echo $(AS) $< -O=$@ -sub=tmp.sub > tmp.sh
perl -i.bak $(H8SDIR)/make_asm_path.pl tmp.sh
sh tmp.sh
$(UTASK_COBJS): %.obj: %.c
echo rule c
echo $(CFLAGS) $(UTASK_CFLAGS) | perl $(H8SDIR)/make_sub.pl > tmp.sub
echo -i=$(INCLUDES)$(UTASK_CFLAGS_INC) >> tmp.sub
$(CC) -sub=tmp.sub $<
$(UTASK_COBJS:.obj=.src): %.src: %.c
echo $(CFLAGS) $(UTASK_CFLAGS) | perl $(H8SDIR)/make_sub.pl > tmp.sub
echo -i=$(INCLUDES)$(UTASK_CFLAGS_INC) >> tmp.sub
$(CC) -c=asmcode -sub=tmp.sub $<
$(UTASK_ASMOBJS): %.obj: %.src
echo rule 4
echo $(ASMFLAGS) $(UTASK_ASMFLAGS) | perl $(H8SDIR)/make_sub.pl > tmp.sub
echo -i=$(INCLUDES)$(UTASK_ASMFLAGS_INC) >> tmp.sub
perl -i.bak $(H8SDIR)/make_asm_path.pl tmp.sub
echo $(AS) $< -O=$@ -sub=tmp.sub > tmp.sh
perl -i.bak $(H8SDIR)/make_asm_path.pl tmp.sh
sh tmp.sh
#
# 僨僼僅儖僩僐儞僷僀儖儖乕儖傪忋彂偒
#
%.obj: %.c
@echo "*** Default compile rules should not be used."
$(CC) $(CFLAGS) $<
%.src: %.c
@echo "*** Default compile rules should not be used."
$(CC) $(CFLAGS) $<
%.obj: %.src
@echo "*** Default compile rules should not be used."
$(CC) $(CFLAGS) $<
#
# 僼傽僀儖偺埶懚娭學
#
int_hdler.obj: kernel_cfg.c \
$(H8SDIR)/int_header.txt
int_hdler.src: kernel_cfg.c
kernel_cfg.c kernel_id.h kernel_chk.c : \
$(JSPDIR)/include/../systask/timer.cfg \
$(H8SDIR)/$(SYS)/sys_config.h \
$(H8SDIR)/$(SYS)/sys_config_asm.h \
$(H8SDIR)/$(SYS)/h8s_2350.h \
$(H8SDIR)/$(SYS)/h8s_2350_asm.h \
$(H8SDIR)/cpu_defs.h \
$(JSPDIR)/include/../systask/serial.cfg \
$(H8SDIR)/$(SYS)/sys_defs.h ./sample1.cfg \
$(JSPDIR)/include/../systask/logtask.cfg \
$(H8SDIR)/cpu_config.h sample1.h \
$(H8SDIR)/cpu_config_asm.h
cpu_support.obj: offset.h $(H8SDIR)/$(SYS)/sys_config.h \
$(H8SDIR)/$(SYS)/sys_config_asm.h \
$(H8SDIR)/$(SYS)/h8s_2350.h \
$(H8SDIR)/$(SYS)/h8s_2350_asm.h \
$(H8SDIR)/cpu_defs.h $(JSPDIR)/include/kernel.h \
$(H8SDIR)/$(SYS)/sys_defs.h \
$(JSPDIR)/kernel/jsp_rename.h $(H8SDIR)/cpu_support.src \
$(JSPDIR)/include/itron.h $(JSPDIR)/include/jsp_stddef.h \
$(JSPDIR)/kernel/jsp_kernel.h $(H8SDIR)/cpu_config.h \
$(H8SDIR)/cpu_config_asm.h
sys_support.obj: $(H8SDIR)/$(SYS)/sys_config.h \
$(H8SDIR)/$(SYS)/sys_config_asm.h \
$(H8SDIR)/$(SYS)/h8s_2350.h \
$(H8SDIR)/$(SYS)/h8s_2350_asm.h \
$(H8SDIR)/cpu_defs.h $(JSPDIR)/include/kernel.h \
$(H8SDIR)/$(SYS)/sys_defs.h \
$(JSPDIR)/kernel/jsp_rename.h $(JSPDIR)/include/itron.h \
$(JSPDIR)/include/jsp_stddef.h \
$(H8SDIR)/$(SYS)/sys_support.src \
$(JSPDIR)/kernel/jsp_kernel.h $(H8SDIR)/cpu_config.h \
$(H8SDIR)/cpu_config_asm.h
banner.obj: $(H8SDIR)/$(SYS)/sys_config.h \
$(H8SDIR)/$(SYS)/sys_config_asm.h \
$(H8SDIR)/$(SYS)/h8s_2350.h \
$(H8SDIR)/$(SYS)/h8s_2350_asm.h \
$(H8SDIR)/cpu_defs.h $(H8SDIR)/cpu_insn.h \
$(JSPDIR)/include/kernel.h $(JSPDIR)/kernel/banner.c \
$(JSPDIR)/include/syslog.h \
$(H8SDIR)/$(SYS)/sys_defs.h \
$(JSPDIR)/kernel/jsp_rename.h $(JSPDIR)/include/itron.h \
$(JSPDIR)/include/jsp_stddef.h $(JSPDIR)/kernel/jsp_kernel.h \
$(H8SDIR)/cpu_config_asm.h \
$(H8SDIR)/cpu_config.h
kernel_cfg.obj: $(JSPDIR)/kernel/semaphore.h $(JSPDIR)/kernel/dataqueue.h \
$(JSPDIR)/kernel/exception.h \
$(H8SDIR)/$(SYS)/h8s_2350.h \
$(H8SDIR)/$(SYS)/h8s_2350_asm.h \
$(H8SDIR)/cpu_defs.h $(JSPDIR)/kernel/task.h \
$(JSPDIR)/kernel/time_event.h $(JSPDIR)/kernel/queue.h \
$(JSPDIR)/kernel/jsp_rename.h $(JSPDIR)/include/itron.h \
$(JSPDIR)/include/serial.h $(JSPDIR)/kernel/mempfix.h \
$(JSPDIR)/include/logtask.h ./kernel_cfg.c sample1.h \
$(JSPDIR)/kernel/cyclic.h \
$(H8SDIR)/$(SYS)/sys_config.h \
$(H8SDIR)/$(SYS)/sys_config_asm.h \
$(JSPDIR)/kernel/eventflag.h $(JSPDIR)/include/kernel.h \
$(H8SDIR)/cpu_insn.h $(H8SDIR)/hw_serial.h \
$(H8SDIR)/$(SYS)/sys_defs.h \
$(JSPDIR)/include/syslog.h $(H8SDIR)/hw_timer.h \
$(JSPDIR)/kernel/interrupt.h kernel_id.h \
$(JSPDIR)/include/jsp_stddef.h $(JSPDIR)/kernel/mailbox.h \
$(JSPDIR)/kernel/jsp_kernel.h $(H8SDIR)/cpu_config.h \
$(H8SDIR)/cpu_config_asm.h \
$(JSPDIR)/include/timer.h
startup.obj: $(H8SDIR)/$(SYS)/h8s_2350.h \
$(H8SDIR)/$(SYS)/h8s_2350_asm.h \
$(H8SDIR)/cpu_defs.h $(JSPDIR)/kernel/time_event.h \
$(JSPDIR)/kernel/jsp_rename.h $(JSPDIR)/include/itron.h \
$(JSPDIR)/kernel/startup.c \
$(H8SDIR)/$(SYS)/sys_config.h \
$(H8SDIR)/$(SYS)/sys_config_asm.h \
$(H8SDIR)/cpu_insn.h $(JSPDIR)/include/kernel.h \
$(JSPDIR)/include/syslog.h \
$(H8SDIR)/$(SYS)/sys_defs.h \
$(JSPDIR)/include/jsp_stddef.h $(JSPDIR)/kernel/jsp_kernel.h \
$(H8SDIR)/cpu_config_asm.h \
$(H8SDIR)/cpu_config.h
cpu_config.obj: $(H8SDIR)/$(SYS)/h8s_2350.h \
$(H8SDIR)/$(SYS)/h8s_2350_asm.h \
$(H8SDIR)/cpu_defs.h $(JSPDIR)/kernel/task.h \
$(JSPDIR)/kernel/time_event.h $(JSPDIR)/kernel/queue.h \
$(JSPDIR)/kernel/jsp_rename.h $(JSPDIR)/include/itron.h \
$(H8SDIR)/$(SYS)/sys_config.h \
$(H8SDIR)/$(SYS)/sys_config_asm.h \
$(H8SDIR)/cpu_insn.h $(JSPDIR)/include/kernel.h \
$(JSPDIR)/include/syslog.h \
$(H8SDIR)/$(SYS)/sys_defs.h \
$(H8SDIR)/cpu_config.c $(JSPDIR)/include/jsp_stddef.h \
$(JSPDIR)/kernel/jsp_kernel.h $(H8SDIR)/cpu_config.h \
$(H8SDIR)/cpu_config_asm.h \
$(JSPDIR)/kernel/check.h
sys_config.obj: $(H8SDIR)/$(SYS)/h8s_2350.h \
$(H8SDIR)/$(SYS)/h8s_2350_asm.h \
$(H8SDIR)/cpu_defs.h $(JSPDIR)/kernel/jsp_rename.h \
$(JSPDIR)/include/itron.h \
$(H8SDIR)/$(SYS)/sys_config.c \
$(H8SDIR)/$(SYS)/sys_config.h \
$(H8SDIR)/$(SYS)/sys_config_asm.h \
$(H8SDIR)/cpu_insn.h $(JSPDIR)/include/kernel.h \
$(H8SDIR)/hw_serial.h $(JSPDIR)/include/syslog.h \
$(H8SDIR)/$(SYS)/sys_defs.h \
$(JSPDIR)/include/jsp_stddef.h $(JSPDIR)/kernel/jsp_kernel.h \
$(H8SDIR)/cpu_config_asm.h \
$(H8SDIR)/cpu_config.h
task.obj: $(H8SDIR)/$(SYS)/h8s_2350.h \
$(H8SDIR)/$(SYS)/h8s_2350_asm.h \
$(H8SDIR)/cpu_defs.h $(JSPDIR)/kernel/task.h \
$(JSPDIR)/kernel/time_event.h $(JSPDIR)/kernel/queue.h \
$(JSPDIR)/kernel/jsp_rename.h $(JSPDIR)/include/itron.h \
$(H8SDIR)/cpu_context.h \
$(H8SDIR)/$(SYS)/sys_config.h \
$(H8SDIR)/$(SYS)/sys_config_asm.h \
$(H8SDIR)/cpu_insn.h $(JSPDIR)/include/kernel.h \
$(JSPDIR)/include/syslog.h \
$(H8SDIR)/$(SYS)/sys_defs.h \
$(JSPDIR)/include/jsp_stddef.h $(JSPDIR)/kernel/jsp_kernel.h \
$(H8SDIR)/cpu_config_asm.h \
$(H8SDIR)/cpu_config.h $(JSPDIR)/kernel/task.c
wait.obj: $(H8SDIR)/$(SYS)/h8s_2350.h \
$(H8SDIR)/$(SYS)/h8s_2350_asm.h \
$(H8SDIR)/cpu_defs.h $(JSPDIR)/kernel/wait.c \
$(JSPDIR)/kernel/task.h $(JSPDIR)/kernel/time_event.h \
$(JSPDIR)/kernel/queue.h $(JSPDIR)/kernel/jsp_rename.h \
$(JSPDIR)/include/itron.h $(JSPDIR)/kernel/wait.h \
$(H8SDIR)/$(SYS)/sys_config.h \
$(H8SDIR)/$(SYS)/sys_config_asm.h \
$(H8SDIR)/cpu_insn.h $(JSPDIR)/include/kernel.h \
$(JSPDIR)/include/syslog.h \
$(H8SDIR)/$(SYS)/sys_defs.h \
$(JSPDIR)/include/jsp_stddef.h $(JSPDIR)/kernel/jsp_kernel.h \
$(H8SDIR)/cpu_config_asm.h \
$(H8SDIR)/cpu_config.h
time_event.obj: $(JSPDIR)/kernel/time_event.c \
$(H8SDIR)/$(SYS)/h8s_2350.h \
$(H8SDIR)/$(SYS)/h8s_2350_asm.h \
$(H8SDIR)/cpu_defs.h $(JSPDIR)/kernel/time_event.h \
$(JSPDIR)/kernel/jsp_rename.h $(JSPDIR)/include/itron.h \
$(H8SDIR)/$(SYS)/sys_config.h \
$(H8SDIR)/$(SYS)/sys_config_asm.h \
$(H8SDIR)/cpu_insn.h $(JSPDIR)/include/kernel.h \
$(JSPDIR)/include/syslog.h \
$(H8SDIR)/$(SYS)/sys_defs.h \
$(JSPDIR)/include/jsp_stddef.h $(JSPDIR)/kernel/jsp_kernel.h \
$(H8SDIR)/cpu_config.h $(JSPDIR)/kernel/check.h
syslog.obj: $(H8SDIR)/$(SYS)/h8s_2350.h \
$(H8SDIR)/$(SYS)/h8s_2350_asm.h \
$(H8SDIR)/cpu_defs.h $(JSPDIR)/kernel/time_event.h \
$(JSPDIR)/kernel/jsp_rename.h $(JSPDIR)/include/itron.h \
$(H8SDIR)/$(SYS)/sys_config.h \
$(H8SDIR)/$(SYS)/sys_config_asm.h \
$(JSPDIR)/kernel/syslog.c $(H8SDIR)/cpu_insn.h \
$(JSPDIR)/include/kernel.h $(JSPDIR)/include/syslog.h \
$(H8SDIR)/$(SYS)/sys_defs.h \
$(JSPDIR)/include/jsp_stddef.h $(JSPDIR)/kernel/jsp_kernel.h \
$(H8SDIR)/cpu_config_asm.h \
$(H8SDIR)/cpu_config.h
task_manage.obj: $(H8SDIR)/$(SYS)/h8s_2350.h \
$(H8SDIR)/$(SYS)/h8s_2350_asm.h \
$(H8SDIR)/cpu_defs.h $(JSPDIR)/kernel/task.h \
$(JSPDIR)/kernel/time_event.h $(JSPDIR)/kernel/queue.h \
$(JSPDIR)/kernel/task_manage.c $(JSPDIR)/kernel/jsp_rename.h \
$(JSPDIR)/include/itron.h $(JSPDIR)/kernel/wait.h \
$(H8SDIR)/$(SYS)/sys_config.h \
$(H8SDIR)/$(SYS)/sys_config_asm.h \
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -