2 include $(TOP)/config/make.cfg
4 USER_INCLUDES := -I$(GENDIR)/$(CURDIR)
5 USER_CFLAGS := -D__DOS_NOLIBBASE__
9 FILES := bcpl_support bstr_helper errorlist \
11 match_misc newcliproc rootnode fs_driver \
12 patternmatching internalseek internalflush \
13 packethelper namefrom internalloadseg_support
15 LOADSEG_FILES := internalloadseg \
16 $(foreach img, $(IMAGE_TYPES), internalloadseg_$(img))
18 FUNCTIONS := abortpkt addbuffers adddosentry addpart addsegment \
19 allocdosobject assignadd assignlate assignlock assignpath \
20 attemptlockdoslist changemode checksignal \
21 cli cliinit cliinitnewcli cliinitrun \
22 close comparedates createdir createnewproc \
23 createproc currentdir datestamp datetostr delay deletefile \
24 deletevar deviceproc displayerror dopkt dosgetstring \
25 duplock duplockfromfh endnotify errorreport \
26 exall exallend examine examinefh execute exit exnext \
27 fault fgetc fgets filepart findarg findcliproc finddosentry findsegment \
28 findvar flush format fputc fputs fread freeargs freedeviceproc \
29 freedosentry freedosobject fwrite getargstr getconsoletask \
30 getcurrentdirname getdeviceproc getfilesystask getprogramdir \
31 getprogramname getprompt getvar info inhibit input \
32 internalunloadseg ioerr isfilesystem \
33 isinteractive loadseg lock lockdoslist lockrecord lockrecords \
34 makedosentry makelink matchend matchfirst matchnext matchpattern \
35 matchpatternnocase maxcli namefromfh namefromlock newloadseg nextdosentry \
36 open openfromlock output parentdir parentoffh parsepattern \
37 parsepatternnocase pathpart printfault putstr read readargs \
38 readitem relabel readlink remassignlist remdosentry remsegment rename \
39 replypkt runcommand samedevice samelock scanvars seek \
40 selectinput selectoutput sendpkt setargstr setcomment setconsoletask \
41 setcurrentdirname setfiledate setfilesize setfilesystask \
42 setioerr setmode setowner setprogramdir setprogramname \
43 setprompt setprotection setvar setvbuf splitname startnotify \
44 strtodate strtolong systemtaglist ungetc unloadseg unlock \
45 unlockdoslist unlockrecord unlockrecords vfprintf vfwritef \
46 vprintf waitforchar waitpkt write writechars runhandler
48 #MM kernel-dos-linklib : workbench-libs-dos-catalogs
49 #MM kernel-dos-kobj : workbench-libs-dos-catalogs
50 #MM kernel-dos-pkg : workbench-libs-dos-catalogs
51 #MM kernel-dos : workbench-libs-dos-catalogs
53 #MM kernel-dos-includes : \
54 #MM kernel-utility-includes \
55 #MM kernel-exec-includes \
56 #MM kernel-timer-includes \
57 #MM kernel-intuition-includes
59 #MM- core-linklibs : linklibs-dos
61 USER_CFLAGS := -DAROS_CPU="\"$(AROS_TARGET_CPU)\""
63 %build_module mmake=kernel-dos \
64 modname=dos modtype=library \
65 files="dos_init $(FUNCTIONS) $(FILES) $(LOADSEG_FILES)" \
66 uselibs="arossupport rom"
68 $(GENDIR)/$(CURDIR)/errorlist.d : $(GENDIR)/$(CURDIR)/errorlist.h
70 $(GENDIR)/$(CURDIR)/errorlist.h : $(SRCDIR)/$(CURDIR)/catalogs/dos.cd $(SRCDIR)/$(CURDIR)/genstrings.py
71 @$(ECHO) Generating $@...
72 @$(PYTHON) $(SRCDIR)/$(CURDIR)/genstrings.py $< > $@
74 %build_linklib mmake=linklibs-loadseg libname=loadseg files="$(LOADSEG_FILES)" libdir=$(GENDIR)/lib