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