8 "Dispatcher", # comment
9 "\$(COMMON_HEADERS)", # depend
10 "\$(KERNEL_CORE_DIR)/dsp", # path
26 "\$(KERNEL_CORE_DIR)/que",
40 "\$(KERNEL_CORE_DIR)/rdq",
52 "\$(KERNEL_CORE_DIR)/tim",
59 "\$(KERNEL_CORE_DIR)/toq",
68 "\$(KERNEL_CORE_DIR)/tmq",
77 "\$(KERNEL_CORE_DIR)/hep",
84 "Deferrable procedure call",
86 "\$(KERNEL_CORE_DIR)/dpc",
93 "Asyncronous data-queue",
95 "\$(KERNEL_CORE_DIR)/adtq",
106 "\$(COMMON_HEADERS)",
107 "\$(KERNEL_OBJ_DIR)/sys",
121 "\$(COMMON_HEADERS)",
122 "\$(KERNEL_OBJ_DIR)/tsk",
157 "\$(COMMON_HEADERS) \$(SEMOBJ_HEADERS)",
158 "\$(KERNEL_OBJ_DIR)/sem",
173 "\$(COMMON_HEADERS) \$(FLGOBJ_HEADERS)",
174 "\$(KERNEL_OBJ_DIR)/flg",
191 "\$(COMMON_HEADERS) \$(DTQOBJ_HEADERS)",
192 "\$(KERNEL_OBJ_DIR)/dtq",
206 "\$(COMMON_HEADERS) \$(MBXOBJ_HEADERS)",
207 "\$(KERNEL_OBJ_DIR)/mbx",
222 "\$(COMMON_HEADERS) \$(MTXOBJ_HEADERS)",
223 "\$(KERNEL_OBJ_DIR)/mtx",
237 "Fixed-sized Memory Pools",
238 "\$(COMMON_HEADERS) \$(MPFOBJ_HEADERS)",
239 "\$(KERNEL_OBJ_DIR)/mpf",
248 "System Time Management",
249 "\$(COMMON_HEADERS)",
250 "\$(KERNEL_OBJ_DIR)/tim",
258 "\$(COMMON_HEADERS) \$(CYCOBJ_HEADERS)",
259 "\$(KERNEL_OBJ_DIR)/cyc",
271 "Interrupt handlers",
272 "\$(COMMON_HEADERS) \$(INHOBJ_HEADERS)",
273 "\$(KERNEL_OBJ_DIR)/inh",
281 "Interrupt Service Routines",
282 "\$(COMMON_HEADERS) \$(ISROBJ_HEADERS)",
283 "\$(KERNEL_OBJ_DIR)/isr",
293 $headers = <<END_OF_HEADERS;
295 ITRON_HEADERS = \$(KERNEL_INC_DIR)/itron.h \\
296 \$(KERNEL_INC_DIR)/kernel.h
298 CFG_HEADERS = \$(KERNEL_INC_DIR)/parser/parssys.h \\
299 \$(KERNEL_INC_DIR)/parser/parsknl.h \\
300 \$(KERNEL_INC_DIR)/parser/parserr.h \\
301 \$(KERNEL_INC_DIR)/parser/parshok.h
303 PARS_HEADERS = \$(KERNEL_INC_DIR)/config/cfgsys.h \\
304 \$(KERNEL_INC_DIR)/config/cfgknl.h \\
305 \$(KERNEL_INC_DIR)/config/cfgerr.h \\
306 \$(KERNEL_INC_DIR)/config/cfghok.h
308 CORE_HEADERS = \$(KERNEL_INC_DIR)/core/adtq.h \\
309 \$(KERNEL_INC_DIR)/core/basetyp.h \\
310 \$(KERNEL_INC_DIR)/core/chkptr.h \\
311 \$(KERNEL_INC_DIR)/core/cmpl.h \\
312 \$(KERNEL_INC_DIR)/core/core.h \\
313 \$(KERNEL_INC_DIR)/core/dsp.h \\
314 \$(KERNEL_INC_DIR)/core/hep.h \\
315 \$(KERNEL_INC_DIR)/core/objhdl.h \\
316 \$(KERNEL_INC_DIR)/core/objid.h \\
317 \$(KERNEL_INC_DIR)/core/que.h \\
318 \$(KERNEL_INC_DIR)/core/rdq.h \\
319 \$(KERNEL_INC_DIR)/core/sys.h \\
320 \$(KERNEL_INC_DIR)/core/tmq.h \\
321 \$(KERNEL_INC_DIR)/core/toq.h \\
322 \$(KERNEL_INC_DIR)/core/dpc.h
324 ARCH_HEADERS = \$(INC_PROC_DIR)/proc.h \\
325 \$(INC_PROC_DIR)/procatr.h \\
326 \$(INC_IRC_DIR)/irc.h \\
327 \$(INC_IRC_DIR)/ircatr.h
329 TSKOBJ_HEADERS = \$(KERNEL_INC_DIR)/object/tskobj.h
331 SEMOBJ_HEADERS = \$(KERNEL_INC_DIR)/object/semobj.h
333 FLGOBJ_HEADERS = \$(KERNEL_INC_DIR)/object/flgobj.h
335 DTQOBJ_HEADERS = \$(KERNEL_INC_DIR)/object/dtqobj.h
337 MBXOBJ_HEADERS = \$(KERNEL_INC_DIR)/object/mbxobj.h
339 MTXOBJ_HEADERS = \$(KERNEL_INC_DIR)/object/mtxobj.h
341 MPFOBJ_HEADERS = \$(KERNEL_INC_DIR)/object/mpfobj.h
343 CYCOBJ_HEADERS = \$(KERNEL_INC_DIR)/object/cycobj.h
345 INHOBJ_HEADERS = \$(KERNEL_INC_DIR)/object/inhobj.h
347 ISROBJ_HEADERS = \$(KERNEL_INC_DIR)/object/isrobj.h
349 COMMON_HEADERS = \$(ITRON_HEADERS) \\
354 \$(TSKOBJ_HEADERS) \\
360 # --------------------------------------------------
362 # --------------------------------------------------
364 open(OUT, "> ../gmake/knlsrc.inc");
366 print(OUT "# ----------------------------------------------------------------------------\n");
367 print(OUT "# Hyper Operating System V4 Advance\n");
368 print(OUT "# common include file for GNU make\n");
370 print(OUT "# Copyright (C) 1998-2007 by Project HOS\n");
371 print(OUT "# http://sourceforge.jp/projects/hos/\n");
372 print(OUT "# ----------------------------------------------------------------------------\n");
376 print(OUT "# Directories\n");
377 print(OUT "KERNEL_SRC_DIR = \$(KERNEL_DIR)/source\n");
378 print(OUT "KERNEL_INC_DIR = \$(KERNEL_DIR)/include\n");
379 print(OUT "KERNEL_CORE_DIR = \$(KERNEL_SRC_DIR)/core\n");
380 print(OUT "KERNEL_OBJ_DIR = \$(KERNEL_SRC_DIR)/object\n");
384 print(OUT "# Kernel include directorys\n");
385 print(OUT "INC_DIRS += \$(KERNEL_INC_DIR)\n");
392 foreach $s ( @sources )
395 $comment = shift(@list);
396 $depend = shift(@list);
397 $path = shift(@list);
398 $def_dir = shift(@list);
401 print(OUT "# $comment\n");
402 print(OUT "$def_dir = $path\n");
403 print(OUT "SRC_DIRS += \$($def_dir)\n");
404 foreach $file ( @list )
406 print(OUT "CSRCS += \$($def_dir)/$file\n");
413 print(OUT "# end of file\n");
419 # --------------------------------------------------
421 # --------------------------------------------------
423 open(OUT, "> ../gmake/knldep.inc");
425 print(OUT "# ----------------------------------------------------------------------------\n");
426 print(OUT "# Hyper Operating System V4 Advance\n");
427 print(OUT "# common depend file for GNU make\n");
429 print(OUT "# Copyright (C) 1998-2007 by Project HOS\n");
430 print(OUT "# http://sourceforge.jp/projects/hos/\n");
431 print(OUT "# ----------------------------------------------------------------------------\n");
435 foreach $s ( @sources )
438 $comment = shift(@list);
439 $depend = shift(@list);
440 $path = shift(@list);
441 $def_dir = shift(@list);
444 foreach $file ( @list )
447 $objfile =~ s/\.c/\./;
448 print(OUT "\$(OBJS_DIR)/$objfile\$(EXT_OBJ):\t\$($def_dir)/$file\t$depend\n");
455 print(OUT "# end of file\n");
462 # --------------------------------------------------
464 # --------------------------------------------------
466 open(OUT, "> ../nmake/knlsrc.inc");
468 print(OUT "# ----------------------------------------------------------------------------\n");
469 print(OUT "# Hyper Operating System V4 Advance\n");
470 print(OUT "# common include file for nmake\n");
472 print(OUT "# Copyright (C) 1998-2007 by Project HOS\n");
473 print(OUT "# http://sourceforge.jp/projects/hos/\n");
474 print(OUT "# ----------------------------------------------------------------------------\n");
478 print(OUT "# Directories\n");
479 print(OUT "KERNEL_SRC_DIR = \$(KERNEL_DIR)\\source\n");
480 print(OUT "KERNEL_INC_DIR = \$(KERNEL_DIR)\\include\n");
481 print(OUT "KERNEL_CORE_DIR = \$(KERNEL_SRC_DIR)\\core\n");
482 print(OUT "KERNEL_OBJ_DIR = \$(KERNEL_SRC_DIR)\\object\n");
486 print(OUT "# Kernel include directorys\n");
487 print(OUT "INC_DIRS = \$(INC_DIRS) \$(KERNEL_INC_DIR)\n");
496 foreach $s ( @sources )
499 $comment = shift(@list);
500 $depend = shift(@list);
501 $path = shift(@list);
502 $def_dir = shift(@list);
507 print(OUT "# $comment\n");
508 print(OUT "$def_dir = $path\n");
509 foreach $file ( @list )
511 print(OUT "CSRCS = \$(CSRCS) \$($def_dir)\\$file\n");
513 foreach $file ( @list )
516 print(OUT "OBJS = \$(OBJS) \$(OBJS_DIR)\\$file\.\$(EXT_OBJ)\n");
523 print(OUT "# end of file\n");
529 # --------------------------------------------------
531 # --------------------------------------------------
533 open(OUT, "> ../nmake/knldep.inc");
535 print(OUT "# ----------------------------------------------------------------------------\n");
536 print(OUT "# Hyper Operating System V4 Advance\n");
537 print(OUT "# common depend file for nmake\n");
539 print(OUT "# Copyright (C) 1998-2007 by Project HOS\n");
540 print(OUT "# http://sourceforge.jp/projects/hos/\n");
541 print(OUT "# ----------------------------------------------------------------------------\n");
545 print(OUT "# ----------------------------------\n");
546 print(OUT "# source copy\n");
547 print(OUT "# ----------------------------------\n");
549 print(OUT "makelib_srcobjcp:\n\n");
551 foreach $s ( @sources )
554 $comment = shift(@list);
555 $depend = shift(@list);
556 $path = shift(@list);
557 $def_dir = shift(@list);
562 foreach $file ( @list )
564 print(OUT "\$(OBJS_DIR)\\$file : \$($def_dir)\\$file\n");
565 print(OUT "\t\$(CMD_CP) \$($def_dir)\\$file \$(OBJS_DIR)\\\n");
573 print(OUT "# ----------------------------------\n");
574 print(OUT "# depend\n");
575 print(OUT "# ----------------------------------\n");
577 foreach $s ( @sources )
580 $comment = shift(@list);
581 $depend = shift(@list);
582 $path = shift(@list);
583 $def_dir = shift(@list);
588 foreach $file ( @list )
590 $objfile =~ s/\.c//g;
591 print(OUT "\$(OBJS_DIR)\\$objfile.\$(EXT_OBJ):\t\$(OBJS_DIR)\\$file\t$depend\n");
599 print(OUT "# end of file\n");