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