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