OSDN Git Service

(none)
[hos/hos-v4a.git] / aplfw / build / common / tmp_mkinc / mk_inc.pl
1 #! /usr/bin/perl
2
3
4 # sources
5 @sources =
6 (
7         [
8                 "System",
9                 [
10                         "System",                                                                       # comment
11                         "\$(COMMON_HEADERS) \$(SYSTEM_HEADERS)",        # depend
12                         "\$(HOSAPLFW_DIR)/system/system",                       # path
13                         "SYSTEM",                                                                       # def_name
14                         "Yes",                                                                          # link
15                         [
16                                 "system.h",
17                                 "system_local.h",
18                         ],
19                         [
20                                 "system_initialize.c",
21                                 "system_requestproc.c",
22                                 "system_process.c",
23                                 "system_getnextprocess.c",
24                         ],
25                 ],
26                 [
27                         "System API",
28                         "\$(COMMON_HEADERS) \$(SYSTEM_HEADERS)",
29                         "\$(HOSAPLFW_DIR)/system/sysapi",
30                         "SYSAPI",
31                         "Yes",
32                         [
33                                 "sysapi.h",
34                                 "sysapi_local.h",
35                         ],
36                         [
37                                 "sysapi_initialize.c",
38                                 "sysctx_isisr.c",
39                                 "sysloc_lock.c",
40                                 "sysloc_unlock.c",
41                                 "sysevt_clear.c",
42                                 "sysevt_create.c",
43                                 "sysevt_delete.c",
44                                 "sysevt_set.c",
45                                 "sysevt_wait.c",
46                                 "sysint_clear.c",
47                                 "sysint_disable.c",
48                                 "sysint_enable.c",
49                                 "sysisr_create.c",
50                                 "sysisr_delete.c",
51                                 "sysmem_alloc.c",
52                                 "sysmem_free.c",
53                                 "sysmem_getmemif.c",
54                                 "sysmem_getsize.c",
55                                 "sysmem_realloc.c",
56                                 "sysmtx_create.c",
57                                 "sysmtx_delete.c",
58                                 "sysmtx_lock.c",
59                                 "sysmtx_unlock.c",
60                                 "sysprc_create.c",
61                                 "sysprc_delete.c",
62                                 "sysprc_terminate.c",
63                                 "sysprc_suspend.c",
64                                 "sysprc_resume.c",
65                                 "sysprc_getparam.c",
66                                 "sysprc_getcurrenthandle.c",
67                                 "systim_wait.c",
68                                 "systim_getsystemtime.c",
69                                 "systim_getcputime.c",
70                                 "systim_cputimetosecond.c",
71                                 "systim_cputimetonanosecond.c",
72                                 "syshos_hook.c",
73                         ],
74                 ],
75                 [
76                         "Handle Object",
77                         "\$(COMMON_HEADERS) \$(SYSTEM_HEADERS)",
78                         "\$(HOSAPLFW_DIR)/system/handle",
79                         "HANDLE",
80                         "Yes",
81                         [
82                                 "handle.h",
83                                 "handleobj.h",
84                                 "handleobj_local.h",
85                         ],
86                         [
87                                 "handle_close.c",
88                                 "handleobj_create.c",
89                                 "handleobj_delete.c",
90                                 "handleobj_constructor.c",
91                                 "handleobj_destructor.c",
92                         ]
93                 ],
94                 [
95                         "Memory",
96                         "\$(COMMON_HEADERS) \$(SYSTEM_HEADERS)",
97                         "\$(HOSAPLFW_DIR)/system/memory",
98                         "MEMORY",
99                         "Yes",
100                         [
101                                 "memory.h",
102                         ],
103                         [
104                                 "memory.c",
105                         ]
106                 ],
107                 [
108                         "Time",
109                         "\$(COMMON_HEADERS) \$(SYSTEM_HEADERS)",
110                         "\$(HOSAPLFW_DIR)/system/time",
111                         "TIME",
112                         "Yes",
113                         [
114                                 "time.h",
115                         ],
116                         [
117                                 "time_getsystemtime.c",
118                                 "time_wait.c",
119                         ],
120                 ],
121                 [
122                         "Process",
123                         "\$(COMMON_HEADERS) \$(SYSTEM_HEADERS)",
124                         "\$(HOSAPLFW_DIR)/system/process",
125                         "PROCESS",
126                         "Yes",
127                         [
128                                 "process.h",
129                                 "process_local.h",
130                         ],
131                         [
132                                 "process_create.c",
133                                 "process_delete.c",
134                                 "process_constructor.c",
135                                 "process_destructor.c",
136                                 "process_getcurrenthandle.c",
137                                 "process_exit.c",
138                                 "process_waitexit.c",
139                                 "process_getexitcode.c",
140                                 "process_setcurrentdir.c",
141                                 "process_getcurrentdir.c",
142                                 "process_getparentprocess.c",
143                                 "process_getexecutiontime.c",
144                                 "process_getcommandline.c",
145                                 "process_setterminal.c",
146                                 "process_getterminal.c",
147                                 "process_setconsole.c",
148                                 "process_getconsole.c",
149                                 "process_setstdin.c",
150                                 "process_getstdin.c",
151                                 "process_setstdout.c",
152                                 "process_getstdout.c",
153                                 "process_setstderr.c",
154                                 "process_getstderr.c",
155                         ],
156                 ],
157                 [
158                         "Event",
159                         "\$(COMMON_HEADERS) \$(SYSTEM_HEADERS)",
160                         "\$(HOSAPLFW_DIR)/system/event",
161                         "EVENT",
162                         "Yes",
163                         [
164                                 "event.h",
165                                 "event_local.h",
166                         ],
167                         [
168                                 "event_create.c",
169                                 "event_delete.c",
170                                 "event_set.c",
171                                 "event_wait.c",
172                         ]
173                 ],
174                 [
175                         "File",
176                         "\$(COMMON_HEADERS) \$(SYSTEM_HEADERS)",
177                         "\$(HOSAPLFW_DIR)/system/file",
178                         "FILE",
179                         "Yes",
180                         [
181                                 "console.h",
182                                 "drvobj.h",
183                                 "drvobj_local.h",
184                                 "file.h",
185                                 "fileobj.h",
186                                 "fileobj_local.h",
187                                 "file_local.h",
188                                 "stdfile.h",
189                                 "syncdrv.h",
190                                 "syncdrv_local.h",
191                                 "syncfile.h",
192                                 "syncfile_local.h",
193                                 "sysvol.h",
194                                 "sysvolfile.h",
195                                 "sysvolfile_local.h",
196                                 "sysvol_local.h",
197                                 "volume.h",
198                                 "volumeobj.h",
199                                 "volumeobj_local.h",
200                         ],
201                         [
202                                 "console_getch.c",
203                                 "drvobj_close.c",
204                                 "drvobj_constructor.c",
205                                 "drvobj_destructor.c",
206                                 "drvobj_flush.c",
207                                 "drvobj_iocontrol.c",
208                                 "drvobj_open.c",
209                                 "drvobj_read.c",
210                                 "drvobj_seek.c",
211                                 "drvobj_write.c",
212                                 "filefmt.c",
213                                 "fileobj_constructor.c",
214                                 "fileobj_create.c",
215                                 "fileobj_delete.c",
216                                 "fileobj_destructor.c",
217                                 "file_adddevice.c",
218                                 "file_addvolume.c",
219                                 "file_close.c",
220                                 "file_getchar.c",
221                                 "file_getstring.c",
222                                 "file_initialize.c",
223                                 "file_iocontrol.c",
224                                 "file_open.c",
225                                 "file_putchar.c",
226                                 "file_putstring.c",
227                                 "file_read.c",
228                                 "file_readdir.c",
229                                 "file_seek.c",
230                                 "file_write.c",
231                                 "stdfile.c",
232                                 "syncdrv_constructor.c",
233                                 "syncdrv_destructor.c",
234                                 "syncdrv_endprocess.c",
235                                 "syncdrv_iocontrol.c",
236                                 "syncdrv_sendsignal.c",
237                                 "syncdrv_startprocess.c",
238                                 "syncfile_constructor.c",
239                                 "syncfile_create.c",
240                                 "syncfile_delete.c",
241                                 "syncfile_destructor.c",
242                                 "syncfile_setsignal.c",
243                                 "sysvolfile_constructor.c",
244                                 "sysvolfile_create.c",
245                                 "sysvolfile_delete.c",
246                                 "sysvolfile_destructor.c",
247                                 "sysvol_adddevice.c",
248                                 "sysvol_close.c",
249                                 "sysvol_constructor.c",
250                                 "sysvol_create.c",
251                                 "sysvol_delete.c",
252                                 "sysvol_destructor.c",
253                                 "sysvol_iocontrol.c",
254                                 "sysvol_open.c",
255                                 "volumeobj_constructor.c",
256                                 "volumeobj_create.c",
257                                 "volumeobj_delete.c",
258                                 "volumeobj_destructor.c",
259                                 "volumeobj_makedir.c",
260                                 "volumeobj_remove.c",
261                         ],
262                 ],
263                 [
264                         "Command",
265                         "\$(COMMON_HEADERS) \$(SYSTEM_HEADERS)",
266                         "\$(HOSAPLFW_DIR)/system/command",
267                         "COMMAND",
268                         "Yes",
269                         [
270                                 "command.h",
271                         ],
272                         [
273                                 "command.c",
274                         ]
275                 ],
276         ],
277         [
278                 "Librarys",
279                 [
280                         "Memory Pool",
281                         "\$(COMMON_HEADERS)",
282                         "\$(HOSAPLFW_DIR)/library/container/mempol",
283                         "MEMPOL",
284                         "Yes",
285                         [
286                                 "mempol.h",
287                         ],
288                         [
289                                 "mempol.c",
290                         ]
291                 ],
292                 [
293                         "Association Array",
294                         "\$(COMMON_HEADERS)",
295                         "\$(HOSAPLFW_DIR)/library/container/assoc",
296                         "ASSOC",
297                         "Yes",
298                         [
299                                 "assoc.h",
300                         ],
301                         [
302                                 "assoc.c",
303                         ]
304                 ],
305                 [
306                         "List",
307                         "\$(COMMON_HEADERS)",
308                         "\$(HOSAPLFW_DIR)/library/container/list",
309                         "LIST",
310                         "Yes",
311                         [
312                                 "list.h",
313                                 "list_local.h",
314                         ],
315                         [
316                                 "list_create.c",
317                                 "list_createex.c",
318                                 "list_addtail.c",
319                                 "list_getat.c",
320                                 "list_getheadpos.c",
321                                 "list_getnextpos.c",
322                                 "list_getprevpos.c",
323                                 "list_gettailpos.c",
324                                 "list_remove.c",
325                         ]
326                 ],
327                 [
328                         "Stream Buffer",
329                         "\$(COMMON_HEADERS)",
330                         "\$(HOSAPLFW_DIR)/library/container/streambuf",
331                         "STREAMBUF",
332                         "Yes",
333                         [
334                                 "streambuf.h",
335                                 "streambuf_local.h",
336                         ],
337                         [
338                                 "streambuf_create.c",
339                                 "streambuf_getbuf.c",
340                                 "streambuf_sendbuf.c",
341                                 "streambuf_senddata.c",
342                                 "streambuf_sendchar.c",
343                                 "streambuf_recvbuf.c",
344                                 "streambuf_relbuf.c",
345                                 "streambuf_recvdata.c",
346                                 "streambuf_recvchar.c",
347                                 "streambuf_clear.c",
348                                 "streambuf_refdatasize.c",
349                                 "streambuf_reffreesize.c",
350                         ],
351                 ],
352                 [
353                         "Packet Buffer",
354                         "\$(COMMON_HEADERS)",
355                         "\$(HOSAPLFW_DIR)/library/container/packetbuf",
356                         "PACKETBUF",
357                         "Yes",
358                         [
359                                 "packetbuf.h",
360                                 "packetbuf_local.h",
361                         ],
362                         [
363                                 "packetbuf_create.c",
364                                 "packetbuf_getbuf.c",
365                                 "packetbuf_sendbuf.c",
366                                 "packetbuf_senddata.c",
367                                 "packetbuf_recvbuf.c",
368                                 "packetbuf_relbuf.c",
369                                 "packetbuf_recvdata.c",
370                                 "packetbuf_clear.c",
371                         ],
372                 ],
373                 [
374                         "IP check-sum",
375                         "\$(COMMON_HEADERS)",
376                         "\$(HOSAPLFW_DIR)/library/algorithm/ipchecksum",
377                         "IPCHECKSUM",
378                         "Yes",
379                         [
380                                 "ipchecksum.h",
381                                 "ipchecksum_local.h",
382                         ],
383                         [
384                                 "ipchecksum_getdigest.c",
385                                 "ipchecksum_update.c",
386                         ],
387                 ],
388                 [
389                         "16bit CRC",
390                         "\$(COMMON_HEADERS)",
391                         "\$(HOSAPLFW_DIR)/library/algorithm/crc16",
392                         "CRC16",
393                         "Yes",
394                         [
395                                 "crc16.h",
396                                 "crc16_local.h",
397                         ],
398                         [
399                                 "crc16_getdigest.c",
400                                 "crc16_update.c",
401                                 "crc16_reset.c",
402                                 "crc16_table.c",
403                         ],
404                 ],
405         ],
406         [
407                 "Device Drivers",
408                 [
409                         "VT100",
410                         "\$(COMMON_HEADERS)",
411                         "\$(HOSAPLFW_DIR)/driver/console/vt100",
412                         "VT100",
413                         "Yes",
414                         [
415                                 "vt100drv.h",
416                                 "vt100drv_local.h",
417                         ],
418                         [
419                                 "vt100drv_create.c",
420                                 "vt100drv_delete.c",
421                                 "vt100drv_constructor.c",
422                                 "vt100drv_destructor.c",
423                                 "vt100drv_open.c",
424                                 "vt100drv_close.c",
425                                 "vt100drv_iocontrol.c",
426                                 "vt100drv_seek.c",
427                                 "vt100drv_read.c",
428                                 "vt100drv_write.c",
429                                 "vt100drv_flush.c",
430                                 "vt100drv_getch.c",
431                         ],
432                 ],
433                 [
434                         "TCP/IP",
435                         "\$(COMMON_HEADERS)",
436                         "\$(HOSAPLFW_DIR)/driver/tcpip/tcpip",
437                         "TCPIP",
438                         "Yes",
439                         [
440                                 "tcpip.h",
441                                 "tcpip_local.h",
442                                 "tcpipfile.h",
443                                 "tcpipfile_local.h",
444                         ],
445                         [
446                                 "tcpip_create.c",
447                                 "tcpip_delete.c",
448                                 "tcpip_constructor.c",
449                                 "tcpip_destructor.c",
450                                 "tcpip_open.c",
451                                 "tcpip_close.c",
452                                 "tcpip_iocontrol.c",
453                                 "tcpip_seek.c",
454                                 "tcpip_read.c",
455                                 "tcpip_write.c",
456                                 "tcpip_flush.c",
457                                 "tcpip_recv.c",
458                                 "tcpipfile_create.c",
459                                 "tcpipfile_delete.c",
460                                 "tcpipfile_constructor.c",
461                                 "tcpipfile_destructor.c",
462                         ],
463                 ],
464                 [
465                         "IpEther",
466                         "\$(COMMON_HEADERS)",
467                         "\$(HOSAPLFW_DIR)/driver/tcpip/ipether",
468                         "IPETHER",
469                         "Yes",
470                         [
471                                 "ipether.h",
472                                 "ipether_local.h",
473                         ],
474                         [
475                                 "ipether_create.c",
476                                 "ipether_delete.c",
477                                 "ipether_constructor.c",
478                                 "ipether_destructor.c",
479                                 "ipether_open.c",
480                                 "ipether_close.c",
481                                 "ipether_iocontrol.c",
482                                 "ipether_seek.c",
483                                 "ipether_read.c",
484                                 "ipether_write.c",
485                                 "ipether_recv.c",
486                                 "ipether_flush.c",
487                                 "ipether_getmacaddr.c",
488                         ],
489                 ],
490                 [
491                         "NE2000",
492                         "\$(COMMON_HEADERS)",
493                         "\$(HOSAPLFW_DIR)/driver/ether/ne2000",
494                         "NE2000",
495                         "No",
496                         [
497                                 "ne2000drv.h",
498                                 "ne2000hal.h",
499                         ],
500                         [
501                                 "ne2000drv.c",
502                                 "ne2000hal.c",
503                         ],
504                 ],
505                 [
506                         "LAN91C111",
507                         "\$(COMMON_HEADERS)",
508                         "\$(HOSAPLFW_DIR)/driver/ether/lan9000",
509                         "LAN9000",
510                         "No",
511                         [
512                                 "lan9000drv.h",
513                                 "lan9000drv_local.h",
514                                 "lan9000hal.h",
515                                 "lan9000hal_local.h",
516                         ],
517                         [
518                                 "lan9000drv_close.c",
519                                 "lan9000drv_create.c",
520                                 "lan9000drv_delete.c",
521                                 "lan9000drv_constructor.c",
522                                 "lan9000drv_destructor.c",
523                                 "lan9000drv_flush.c",
524                                 "lan9000drv_iocontrol.c",
525                                 "lan9000drv_isr.c",
526                                 "lan9000drv_open.c",
527                                 "lan9000drv_read.c",
528                                 "lan9000drv_seek.c",
529                                 "lan9000drv_write.c",
530                                 "lan9000hal_create.c",
531                                 "lan9000hal_delete.c",
532                                 "lan9000hal_getinterruptstatus.c",
533                                 "lan9000hal_getphysicaladdr.c",
534                                 "lan9000hal_mii.c",
535                                 "lan9000hal_phyregread.c",
536                                 "lan9000hal_phyregwrite.c",
537                                 "lan9000hal_recv.c",
538                                 "lan9000hal_send.c",
539                                 "lan9000hal_setinterruptmask.c",
540                                 "lan9000hal_setup.c",
541                                 "lan9000hal_stop.c",
542                         ]
543                 ],
544                 [
545                         "LAN91C111",
546                         "\$(COMMON_HEADERS)",
547                         "\$(HOSAPLFW_DIR)/driver/ether/lan9118",
548                         "LAN9118",
549                         "No",
550                         [
551                                 "lan9118drv.h",
552                         ],
553                         [
554                                 "lan9118drv_create.c",
555                                 "lan9118drv_delete.c",
556                                 "lan9118drv_open.c",
557                                 "lan9118drv_close.c",
558                                 "lan9118drv_iocontrol.c",
559                                 "lan9118drv_seek.c",
560                                 "lan9118drv_read.c",
561                                 "lan9118drv_write.c",
562                                 "lan9118drv_flush.c",
563                                 "lan9118drv_isr.c",
564                         ],
565                 ],
566                 [
567                         "16550A",
568                         "\$(COMMON_HEADERS)",
569                         "\$(HOSAPLFW_DIR)/driver/serial/pc16550",
570                         "PC16550",
571                         "Yes",
572                         [
573                                 "pc16550drv.h",
574                                 "pc16550drv_local.h",
575                                 "pc16550hal.h",
576                                 "pc16550hal_local.h",
577                         ],
578                         [
579                                 "pc16550drv_create.c",
580                                 "pc16550drv_delete.c",
581                                 "pc16550drv_constructor.c",
582                                 "pc16550drv_destructor.c",
583                                 "pc16550drv_open.c",
584                                 "pc16550drv_close.c",
585                                 "pc16550drv_iocontrol.c",
586                                 "pc16550drv_seek.c",
587                                 "pc16550drv_read.c",
588                                 "pc16550drv_write.c",
589                                 "pc16550drv_flush.c",
590                                 "pc16550drv_isr.c",
591                                 "pc16550hal_create.c",
592                                 "pc16550hal_delete.c",
593                                 "pc16550hal_setup.c",
594                                 "pc16550hal_stop.c",
595                                 "pc16550hal_setspeed.c",
596                                 "pc16550hal_recvchar.c",
597                                 "pc16550hal_sendchar.c",
598                                 "pc16550hal_enableinterrupt.c",
599                                 "pc16550hal_getinterruptstatus.c",
600                                 "pc16550hal_getstatus.c",
601                         ],
602                 ],
603                 [
604                         "Atmel AT91 USART",
605                         "\$(COMMON_HEADERS)",
606                         "\$(HOSAPLFW_DIR)/driver/serial/at91",
607                         "AT91USART",
608                         "No",
609                         [
610                                 "at91usartdrv.h",
611                                 "at91usartdrv_local.h",
612                         ],
613                         [
614                                 "at91usartdrv_create.c",
615                                 "at91usartdrv_delete.c",
616                                 "at91usartdrv_constructor.c",
617                                 "at91usartdrv_destructor.c",
618                                 "at91usartdrv_open.c",
619                                 "at91usartdrv_close.c",
620                                 "at91usartdrv_iocontrol.c",
621                                 "at91usartdrv_seek.c",
622                                 "at91usartdrv_read.c",
623                                 "at91usartdrv_write.c",
624                                 "at91usartdrv_flush.c",
625                                 "at91usartdrv_isr.c",
626                         ],
627                 ],
628                 [
629                         "Renesas SCI",
630                         "\$(COMMON_HEADERS)",
631                         "\$(HOSAPLFW_DIR)/driver/serial/renesas",
632                         "RENESASSCI",
633                         "No",
634                         [
635                                 "scidrv.h",
636                                 "scidrv_local.h",
637                                 "scihal.h",
638                                 "scihal_local.h",
639                         ],
640                         [
641                                 "scidrv_create.c",
642                                 "scidrv_delete.c",
643                                 "scidrv_constructor.c",
644                                 "scidrv_destructor.c",
645                                 "scidrv_open.c",
646                                 "scidrv_close.c",
647                                 "scidrv_iocontrol.c",
648                                 "scidrv_seek.c",
649                                 "scidrv_read.c",
650                                 "scidrv_write.c",
651                                 "scidrv_flush.c",
652                                 "scidrv_isrrxerr.c",
653                                 "scidrv_isrrx.c",
654                                 "scidrv_isrtx.c",
655                                 "scidrv_isrtxend.c",
656                                 "scihal_create.c",
657                                 "scihal_delete.c",
658                                 "scihal_enableinterrupt.c",
659                                 "scihal_recvchar.c",
660                                 "scihal_sendchar.c",
661                                 "scihal_setspeed.c",
662                                 "scihal_setup.c",
663                                 "scihal_stop.c",
664                         ]
665                 ],
666                 [
667                         "Freescale MX1 UART",
668                         "\$(COMMON_HEADERS)",
669                         "\$(HOSAPLFW_DIR)/driver/serial/mx1",
670                         "MX1UART",
671                         "No",
672                         [
673                                 "mx1uartdrv.h",
674                                 "mx1uartdrv_local.h",
675                         ],
676                         [
677                                 "mx1uartdrv_create.c",
678                                 "mx1uartdrv_delete.c",
679                                 "mx1uartdrv_constructor.c",
680                                 "mx1uartdrv_destructor.c",
681                                 "mx1uartdrv_open.c",
682                                 "mx1uartdrv_close.c",
683                                 "mx1uartdrv_iocontrol.c",
684                                 "mx1uartdrv_seek.c",
685                                 "mx1uartdrv_read.c",
686                                 "mx1uartdrv_write.c",
687                                 "mx1uartdrv_flush.c",
688                                 "mx1uartdrv_isr.c",
689                         ],
690                 ],
691                 [
692                         "Panasonic MN103 SC",
693                         "\$(COMMON_HEADERS)",
694                         "\$(HOSAPLFW_DIR)/driver/serial/mn103",
695                         "MN103SC",
696                         "No",
697                         [
698                                 "mn103scdrv.h",
699                                 "mn103scdrv_local.h",
700                         ],
701                         [
702                                 "mn103scdrv_create.c",
703                                 "mn103scdrv_delete.c",
704                                 "mn103scdrv_constructor.c",
705                                 "mn103scdrv_destructor.c",
706                                 "mn103scdrv_open.c",
707                                 "mn103scdrv_close.c",
708                                 "mn103scdrv_iocontrol.c",
709                                 "mn103scdrv_seek.c",
710                                 "mn103scdrv_read.c",
711                                 "mn103scdrv_write.c",
712                                 "mn103scdrv_flush.c",
713                                 "mn103scdrv_isrtx.c",
714                                 "mn103scdrv_isrrx.c",
715                         ],
716                 ],
717                 [
718                         "WinSock",
719                         "\$(COMMON_HEADERS)",
720                         "\$(HOSAPLFW_DIR)/driver/serial/winsock",
721                         "WINSOCK",
722                         "No",
723                         [
724                                 "winsockdrv.h",
725                         ],
726                         [
727                                 "winsockdrv.c",
728                         ],
729                 ],
730                 [
731                         "FAT volume",
732                         "\$(COMMON_HEADERS)",
733                         "\$(HOSAPLFW_DIR)/driver/volume/fat",
734                         "FATVOL",
735                         "Yes",
736                         [
737                                 "fatvol.h",
738                                 "fatvol_local.h",
739                                 "fatfile.h",
740                                 "fatfile_local.h",
741                         ],
742                         [
743                                 "fatvol_create.c",
744                                 "fatvol_delete.c",
745                                 "fatvol_constructor.c",
746                                 "fatvol_destructor.c",
747                                 "fatvol_open.c",
748                                 "fatvol_close.c",
749                                 "fatvol_iocontrol.c",
750                                 "fatvol_seek.c",
751                                 "fatvol_read.c",
752                                 "fatvol_write.c",
753                                 "fatvol_flush.c",
754                                 "fatvol_makedir.c",
755                                 "fatvol_remove.c",
756                                 "fatvol_clusterread.c",
757                                 "fatvol_clusterwrite.c",
758                                 "fatvol_flushclusterbuf.c",
759                                 "fatvol_flushfat.c",
760                                 "fatvol_getclusterbuf.c",
761                                 "fatvol_relclusterbuf.c",
762                                 "fatvol_getnewcluster.c",
763                                 "fatvol_getnextcluster.c",
764                                 "fatvol_setnextcluster.c",
765                                 "fatvol_syncfilesize.c",
766                                 "fatfile_create.c",
767                                 "fatfile_delete.c",
768                                 "fatfile_constructor.c",
769                                 "fatfile_destructor.c",
770                         ],
771                 ],
772         ],
773         [
774                 "Applications",
775                 [
776                         "Shell",
777                         "\$(COMMON_HEADERS) \$(SYSTEM_HEADERS)",
778                         "\$(HOSAPLFW_DIR)/application/syscmd/shell",
779                         "SHELL",
780                         "Yes",
781                         [
782                                 "shell.h",
783                                 "shell_local.h",
784                         ],
785                         [
786                                 "shell_main.c",
787                                 "shell_create.c",
788                                 "shell_delete.c",
789                                 "shell_executecommand.c",
790                                 "shell_executescript.c",
791                                 "shell_inputline.c",
792                                 "shell_interactive.c",
793                                 "shell_putchar.c",
794                                 "shell_curright.c",
795                                 "shell_curleft.c",
796                                 "shell_replaceline.c",
797                         ]
798                 ],
799                 [
800                         "Process List",
801                         "\$(COMMON_HEADERS)",
802                         "\$(HOSAPLFW_DIR)/application/syscmd/processlist",
803                         "PROCESSLIST",
804                         "Yes",
805                         [
806                                 "processlist.h",
807                         ],
808                         [
809                                 "processlist_main.c",
810                         ],
811                 ],
812                 [
813                         "Memory Dump",
814                         "\$(COMMON_HEADERS)",
815                         "\$(HOSAPLFW_DIR)/application/utility/memdump",
816                         "MEMDUMP",
817                         "Yes",
818                         [
819                                 "memdump.h",
820                         ],
821                         [
822                                 "memdump_main.c",
823                         ],
824                 ],
825                 [
826                         "Memory Write",
827                         "\$(COMMON_HEADERS)",
828                         "\$(HOSAPLFW_DIR)/application/utility/memwrite",
829                         "MEMWRITE",
830                         "Yes",
831                         [
832                                 "memwrite.h",
833                         ],
834                         [
835                                 "memwrite_main.c",
836                         ]
837                 ],
838                 [
839                         "Memory Test",
840                         "\$(COMMON_HEADERS)",
841                         "\$(HOSAPLFW_DIR)/application/utility/memtest",
842                         "MEMTEST",
843                         "Yes",
844                         [
845                                 "memtest.h",
846                         ],
847                         [
848                                 "memtest_main.c",
849                         ],
850                 ],
851                 [
852                         "Key Test",
853                         "\$(COMMON_HEADERS)",
854                         "\$(HOSAPLFW_DIR)/application/utility/keytest",
855                         "KEYTEST",
856                         "Yes",
857                         [
858                                 "keytest.h",
859                         ],
860                         [
861                                 "keytest_main.c",
862                         ],
863                 ],
864                 [
865                         "Time Command",
866                         "\$(COMMON_HEADERS)",
867                         "\$(HOSAPLFW_DIR)/application/utility/timecmd",
868                         "TIMECMD",
869                         "Yes",
870                         [
871                                 "timecmd.h",
872                         ],
873                         [
874                                 "timecmd_main.c",
875                         ],
876                 ],
877                 [
878                         "File List",
879                         "\$(COMMON_HEADERS)",
880                         "\$(HOSAPLFW_DIR)/application/filecmd/filelist",
881                         "FILELIST",
882                         "Yes",
883                         [
884                                 "filelist.h",
885                         ],
886                         [
887                                 "filelist_main.c",
888                         ],
889                 ],
890                 [
891                         "File Cat",
892                         "\$(COMMON_HEADERS)",
893                         "\$(HOSAPLFW_DIR)/application/filecmd/filecat",
894                         "FILECAT",
895                         "Yes",
896                         [
897                                 "filecat.h",
898                         ],
899                         [
900                                 "filecat_main.c",
901                         ],
902                 ],
903                 [
904                         "File Copy",
905                         "\$(COMMON_HEADERS)",
906                         "\$(HOSAPLFW_DIR)/application/filecmd/filecopy",
907                         "FILECOPY",
908                         "Yes",
909                         [
910                                 "filecopy.h",
911                         ],
912                         [
913                                 "filecopy_main.c",
914                         ],
915                 ],
916                 [
917                         "File Dump",
918                         "\$(COMMON_HEADERS)",
919                         "\$(HOSAPLFW_DIR)/application/filecmd/filedump",
920                         "FILEDUMP",
921                         "Yes",
922                         [
923                                 "filedump.h",
924                         ],
925                         [
926                                 "filedump_main.c",
927                         ],
928                 ],
929                 [
930                         "Flash Command",
931                         "\$(COMMON_HEADERS)",
932                         "\$(HOSAPLFW_DIR)/application/flashcmd/norflashcmd",
933                         "FLASHCMD",
934                         "Yes",
935                         [
936                                 "norflashcmd.h",
937                         ],
938                         [
939                                 "norflashcmd_main.c",
940                         ],
941                 ],
942                 [
943                         "Ether Snoopt",
944                         "\$(COMMON_HEADERS)",
945                         "\$(HOSAPLFW_DIR)/application/netcmd/ethersnoop",
946                         "ETHERSNOOP",
947                         "Yes",
948                         [
949                                 "ethersnoop.h",
950                         ],
951                         [
952                                 "ethersnoop_main.c",
953                         ],
954                 ],
955                 [
956                         "Hello World",
957                         "\$(COMMON_HEADERS)",
958                         "\$(HOSAPLFW_DIR)/application/example/hello",
959                         "HELLO",
960                         "Yes",
961                         [
962                                 "hello.h",
963                         ],
964                         [
965                                 "hello_main.c",
966                         ],
967                 ],
968         ],
969 );
970
971
972
973 # --------------------------------------------------
974 #  gmake source
975 # --------------------------------------------------
976
977 open(OUT, "> ../gmake/aplfwsrc.inc");
978
979 print(OUT "# ----------------------------------------------------------------------------\n");
980 print(OUT "#  Hyper Operating System V4 Advance  Application Framework\n");
981 print(OUT "#    common include file for GNU make\n");
982 print(OUT "#\n");
983 print(OUT "#  Copyright (C) 1998-2007 by Project HOS\n");
984 print(OUT "#  http://sourceforge.jp/projects/hos/\n");
985 print(OUT "# ----------------------------------------------------------------------------\n");
986 print(OUT "\n");
987 print(OUT "\n");
988 print(OUT "\n");
989
990
991 print(OUT "# --------------------------------------------------\n");
992 print(OUT "#  Default setting\n");
993 print(OUT "# --------------------------------------------------\n");
994 foreach $s ( @sources )
995 {
996         @sys_list = @{$s};
997         $subsystem = shift(@sys_list);
998         
999         print(OUT "\n");
1000         print(OUT "# $subsystem\n");
1001         
1002         foreach $s ( @sys_list )
1003         {
1004                 @list = @{$s};
1005                 
1006                 $comment  = shift(@list);
1007                 $depend   = shift(@list);
1008                 $path     = shift(@list);
1009                 $def_name = shift(@list);
1010                 $link     = shift(@list);
1011                 
1012                 printf(OUT "LINK_%-16s ?= %s\n", $def_name, $link);
1013         }
1014 }
1015
1016
1017 print(OUT "\n");
1018 print(OUT "\n");
1019 print(OUT "\n");
1020 print(OUT "# --------------------------------------------------\n");
1021 print(OUT "#  Include\n");
1022 print(OUT "# --------------------------------------------------\n");
1023 print(OUT "\n");
1024 print(OUT "# Include directories\n");
1025 print(OUT "INC_DIRS += \$(HOSAPLFW_DIR)\n");
1026
1027
1028 foreach $s ( @sources )
1029 {
1030         @sys_list = @{$s};
1031         $subsystem = shift(@sys_list);
1032         
1033         print(OUT "\n");
1034         print(OUT "\n");
1035         print(OUT "\n");
1036         print(OUT "# --------------------------------------------------\n");
1037         print(OUT "#  $subsystem\n");
1038         print(OUT "# --------------------------------------------------");
1039         
1040         foreach $s ( @sys_list )
1041         {
1042                 @list = @{$s};
1043                 
1044                 $comment  = shift(@list);
1045                 $depend   = shift(@list);
1046                 $path     = shift(@list);
1047                 $def_name = shift(@list);
1048                 $link     = shift(@list);
1049                 @hdrs     = @{shift(@list)};
1050                 @srcs     = @{shift(@list)};
1051                 
1052                 $dir_name = $def_name . "_DIR";
1053                 
1054                 print(OUT "\n\n");
1055                 print(OUT "# $comment\n");
1056                 print(OUT "ifeq (\$(LINK_$def_name),Yes)\n");
1057                 print(OUT "$dir_name = $path\n");
1058                 print(OUT "SRC_DIRS += \$($dir_name)\n");
1059                 foreach $file ( @srcs )
1060                 {
1061                         print(OUT "CSRCS += \$($dir_name)/$file\n");
1062                 }
1063                 print(OUT "endif\n");
1064         }
1065 }
1066
1067
1068 print(OUT "\n");
1069 print(OUT "\n");
1070 print(OUT "# end of file\n");
1071
1072 close(OUT);
1073
1074
1075
1076 # --------------------------------------------------
1077 #  gmake depend
1078 # --------------------------------------------------
1079
1080 open(OUT, "> ../gmake/aplfwdep.inc");
1081
1082 print(OUT "# ----------------------------------------------------------------------------\n");
1083 print(OUT "#  Hyper Operating System V4 Advance  Application Framework\n");
1084 print(OUT "#    common depend file for GNU make\n");
1085 print(OUT "#\n");
1086 print(OUT "#  Copyright (C) 1998-2007 by Project HOS\n");
1087 print(OUT "#  http://sourceforge.jp/projects/hos/\n");
1088 print(OUT "# ----------------------------------------------------------------------------\n");
1089 print(OUT "\n");
1090 print(OUT "\n");
1091 print(OUT "\n");
1092
1093 foreach $s ( @sources )
1094 {
1095         @sys_list = @{$s};
1096         $subsystem = shift(@sys_list);
1097         
1098         foreach $s ( @sys_list )
1099         {
1100                 @list = @{$s};
1101                 
1102                 $comment  = shift(@list);
1103                 $depend   = shift(@list);
1104                 $path     = shift(@list);
1105                 $def_name = shift(@list);
1106                 $link     = shift(@list);
1107                 @hdrs     = @{shift(@list)};
1108                 @srcs     = @{shift(@list)};
1109                 
1110                 $dir_name = $def_name . "_DIR";
1111                 
1112                 foreach $file ( @srcs )
1113                 {
1114                         $objfile = $file;
1115                         $objfile =~ s/\.c/\./;
1116                         print(OUT "\$(OBJS_DIR)/$objfile\$(EXT_OBJ):\t\$($dir_name)/$file\t$depend\n");
1117                 }
1118         }
1119 }
1120
1121
1122 print(OUT "\n");
1123 print(OUT "\n");
1124 print(OUT "# end of file\n");
1125
1126 close(OUT);
1127
1128
1129
1130 # --------------------------------------------------
1131 #  nmake source
1132 # --------------------------------------------------
1133
1134 open(OUT, "> ../nmake/aplfwsrc.inc");
1135
1136 print(OUT "# ----------------------------------------------------------------------------\n");
1137 print(OUT "#  Hyper Operating System V4 Advance  Application Framework\n");
1138 print(OUT "#    common include file for nmake\n");
1139 print(OUT "#\n");
1140 print(OUT "#  Copyright (C) 1998-2007 by Project HOS\n");
1141 print(OUT "#  http://sourceforge.jp/projects/hos/\n");
1142 print(OUT "# ----------------------------------------------------------------------------\n");
1143 print(OUT "\n");
1144 print(OUT "\n");
1145 print(OUT "\n");
1146
1147
1148 print(OUT "# --------------------------------------------------\n");
1149 print(OUT "#  Default setting\n");
1150 print(OUT "# --------------------------------------------------\n");
1151 foreach $s ( @sources )
1152 {
1153         @sys_list = @{$s};
1154         $subsystem = shift(@sys_list);
1155         
1156         print(OUT "\n");
1157         print(OUT "# $subsystem\n");
1158         
1159         foreach $s ( @sys_list )
1160         {
1161                 @list = @{$s};
1162                 
1163                 $comment  = shift(@list);
1164                 $depend   = shift(@list);
1165                 $path     = shift(@list);
1166                 $def_name = shift(@list);
1167                 $link     = shift(@list);
1168                 @hdrs     = @{shift(@list)};
1169                 @srcs     = @{shift(@list)};
1170                 
1171                 print(OUT  "!ifndef LINK_$def_name\n");
1172                 printf(OUT "LINK_%-16s = %s\n", $def_name, $link);
1173                 print(OUT  "!endif\n");
1174         }
1175 }
1176
1177
1178 print(OUT "\n");
1179 print(OUT "\n");
1180 print(OUT "\n");
1181 print(OUT "# --------------------------------------------------\n");
1182 print(OUT "#  Include\n");
1183 print(OUT "# --------------------------------------------------\n");
1184 print(OUT "\n");
1185 print(OUT "# Include directories\n");
1186 print(OUT "INC_DIRS = \$(INC_DIRS) \$(HOSAPLFW_DIR)\n");
1187
1188
1189 foreach $s ( @sources )
1190 {
1191         @sys_list = @{$s};
1192         $subsystem = shift(@sys_list);
1193         
1194         print(OUT "\n");
1195         print(OUT "\n");
1196         print(OUT "\n");
1197         print(OUT "# --------------------------------------------------\n");
1198         print(OUT "#  $subsystem\n");
1199         print(OUT "# --------------------------------------------------");
1200         
1201         foreach $s ( @sys_list )
1202         {
1203                 @list = @{$s};
1204                 
1205                 $comment  = shift(@list);
1206                 $depend   = shift(@list);
1207                 $path     = shift(@list);
1208                 $def_name = shift(@list);
1209                 $link     = shift(@list);
1210                 @hdrs     = @{shift(@list)};
1211                 @srcs     = @{shift(@list)};
1212                 
1213                 $path   =~ s/\//\\/g;
1214                 
1215                 $dir_name = $def_name . "_DIR";
1216                 
1217                 print(OUT "\n\n");
1218                 print(OUT "# $comment\n");
1219                 print(OUT "!if \"\$(LINK_$def_name)\" == \"Yes\"\n");
1220                 print(OUT "$dir_name = $path\n");
1221                 foreach $file ( @hdrs )
1222                 {
1223                         print(OUT "HEADERS = \$(HEADERS) \$(OBJS_DIR)\\$file\n");
1224                 }
1225                 foreach $file ( @srcs )
1226                 {
1227                         $file_base = $file;
1228                         $file_base =~ s/\.c//g;
1229                         print(OUT "CSRCS = \$(CSRCS) \$($dir_name)\\$file\n");
1230                         print(OUT "OBJS  = \$(OBJS)  \$(OBJS_DIR)\\$file_base\.\$(EXT_OBJ)\n");
1231                 }
1232                 print(OUT "!endif\n");
1233         }
1234 }
1235
1236
1237 print(OUT "\n");
1238 print(OUT "\n");
1239 print(OUT "# end of file\n");
1240
1241 close(OUT);
1242
1243
1244
1245 # --------------------------------------------------
1246 #  nmake depend
1247 # --------------------------------------------------
1248
1249 open(OUT, "> ../nmake/aplfwdep.inc");
1250
1251 print(OUT "# ----------------------------------------------------------------------------\n");
1252 print(OUT "#  Hyper Operating System V4 Advance  Application Framework\n");
1253 print(OUT "#    common depend file for nmake\n");
1254 print(OUT "#\n");
1255 print(OUT "#  Copyright (C) 1998-2007 by Project HOS\n");
1256 print(OUT "#  http://sourceforge.jp/projects/hos/\n");
1257 print(OUT "# ----------------------------------------------------------------------------\n");
1258 print(OUT "\n");
1259 print(OUT "\n");
1260 print(OUT "\n");
1261 print(OUT "# ----------------------------------\n");
1262 print(OUT "#  source copy\n");
1263 print(OUT "# ----------------------------------\n");
1264 print(OUT "makelib_srcobjcp: \$(HEADERS)\n\n");
1265
1266
1267 foreach $s ( @sources )
1268 {
1269         @sys_list = @{$s};
1270         $subsystem = shift(@sys_list);
1271         foreach $s ( @sys_list )
1272         {
1273                 @list = @{$s};
1274                 
1275                 $comment  = shift(@list);
1276                 $depend   = shift(@list);
1277                 $path     = shift(@list);
1278                 $def_name = shift(@list);
1279                 $link     = shift(@list);
1280                 @hdrs     = @{shift(@list)};
1281                 @srcs     = @{shift(@list)};
1282                 
1283                 $depend =~ s/\//\\/g;
1284                 $path   =~ s/\//\\/g;
1285                 
1286                 $dir_name = $def_name . "_DIR";
1287                 
1288                 print(OUT "\n");
1289                 foreach $file ( @hdrs )
1290                 {
1291                         print(OUT "\$(OBJS_DIR)\\$file : \$($dir_name)\\$file\n");
1292                         print(OUT "\t\$(CMD_CP) \$($dir_name)\\$file \$(OBJS_DIR)\\\n");
1293                         print(OUT "\n");
1294                 }
1295                 foreach $file ( @srcs )
1296                 {
1297                         print(OUT "\$(OBJS_DIR)\\$file : \$($dir_name)\\$file\n");
1298                         print(OUT "\t\$(CMD_CP) \$($dir_name)\\$file \$(OBJS_DIR)\\\n");
1299                         print(OUT "\n");
1300                 }
1301         }
1302 }
1303
1304 print(OUT "\n");
1305 print(OUT "\n");
1306 print(OUT "\n");
1307 print(OUT "# ----------------------------------\n");
1308 print(OUT "#  depend\n");
1309 print(OUT "# ----------------------------------\n");
1310
1311 foreach $s ( @sources )
1312 {
1313         @sys_list = @{$s};
1314         $subsystem = shift(@sys_list);
1315         foreach $s ( @sys_list )
1316         {
1317                 @list = @{$s};
1318                 
1319                 $comment  = shift(@list);
1320                 $depend   = shift(@list);
1321                 $path     = shift(@list);
1322                 $def_name = shift(@list);
1323                 $link     = shift(@list);
1324                 @hdrs     = @{shift(@list)};
1325                 @srcs     = @{shift(@list)};
1326                 
1327                 $depend =~ s/\//\\/g;
1328                 $path   =~ s/\//\\/g;
1329                 
1330                 $dir_name = $def_name . "_DIR";
1331                 
1332                 print(OUT "\n");
1333                 foreach $file ( @srcs )
1334                 {
1335                         $objfile = $file;
1336                         $objfile =~ s/\.c//g;
1337                         print(OUT "\$(OBJS_DIR)\\$objfile.\$(EXT_OBJ):\t\$(OBJS_DIR)\\$file\t$depend\n");
1338                 }
1339         }
1340 }
1341
1342 print(OUT "\n");
1343 print(OUT "\n");
1344 print(OUT "\n");
1345 print(OUT "# end of file\n");
1346
1347 close(OUT);
1348
1349 exit(0);
1350