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