2 include $(TOP)/config/make.cfg
4 USER_INCLUDES := -I$(TOP)/rom/devs
5 USER_CFLAGS := -D__DOS_NOLIBBASE__
7 IMAGE_TYPES := aos aout elf elf64 elf_aros
8 FILES := errorlist lddemon runprocess \
9 filesystem_support match_misc newcliproc rootnode dosdoio\
10 patternmatching internalseek internalflush \
11 $(foreach img, $(IMAGE_TYPES), internalloadseg_$(img))
13 FUNCTIONS := abortpkt addbuffers adddosentry addpart addprocess addsegment \
14 allocdosobject assignadd assignlate assignlock assignpath \
15 attemptlockdoslist changemode checksignal cli cliinitnewcli \
16 cliinitrun close comparedates createdir createnewproc \
17 createproc currentdir datestamp datetostr delay deletefile \
18 deletevar deviceproc displayerror dopkt dosgetstring dosgetlocalizedstring \
19 duplock endnotify error errorreport exall exallend examine execute exit exnext \
20 fault fgetc fgets filepart findarg findcliproc finddosentry findsegment \
21 findvar flush format fputc fputs fread freeargs freedeviceproc \
22 freedosentry freedosobject fwrite getargstr getconsoletask \
23 getcurrentdirname getdeviceproc getfilesystask getprogramdir \
24 getprogramname getprompt getvar info inhibit input \
25 internalloadseg internalunloadseg ioerr isfilesystem \
26 isinteractive loadseg lock lockdoslist lockrecord lockrecords \
27 makedosentry makelink matchend matchfirst matchnext matchpattern \
28 matchpatternnocase maxcli namefromlock newloadseg nextdosentry \
29 open openfromlock output parentdir parentoffh parsepattern \
30 parsepatternnocase pathpart pipe printfault putstr read readargs \
31 readitem relabel readlink remassignlist remdosentry remsegment rename \
32 replypkt runcommand samedevice samelock scanvars seek selecterror \
33 selectinput selectoutput sendpkt setargstr setcomment setconsoletask \
34 setcurrentdirname setfiledate setfilesize setfilesystask \
35 setioerr setmode setowner setprogramdir setprogramname \
36 setprompt setprotection setvar setvbuf splitname startnotify \
37 strtodate strtolong systemtaglist ungetc unloadseg \
38 unlockdoslist unlockrecord unlockrecords vfprintf vfwritef \
39 vprintf waitforchar waitpkt write writechars
41 #MM kernel-dos-linklib : kernel-dos-$(ARCH)-$(CPU) kernel-dos-$(ARCH)
42 #MM kernel-dos-kobj : kernel-bootmenu-includes kernel-dos-$(ARCH)-$(CPU) kernel-dos-$(ARCH)
43 #MM kernel-dos : kernel-bootmenu-includes kernel-dos-$(ARCH)-$(CPU) kernel-dos-$(ARCH)
45 #MM kernel-dos-includes : \
46 #MM kernel-utility-includes \
47 #MM kernel-exec-includes \
48 #MM kernel-timer-includes \
49 #MM kernel-intuition-includes
51 %build_module mmake=kernel-dos \
52 modname=dos modtype=library \
53 files="dos_init $(FUNCTIONS) $(FILES)" \
54 noref=lddemon uselibs="rom"
56 TESTS := datetostr runprocess strtodate splitname readargs
57 TEST_DEPLIBS := arossupport arosc amiga
58 TEST_DEPS := $(foreach f,$(TEST_DEPLIBS),$(LIBDIR)/lib$(f).a)
61 check : setup-check $(foreach f,$(TESTS),$(EXEDIR)/$(f))
64 $(TESTDIR)/% : %.c $(TEST_DEPS)
65 %link_q opt="$(ILDFLAGS) -DTEST $(COMMON_CFLAGS) $(LIBS)"
68 %mkdirs_q $(TESTOBJDIR) $(EXEDIR)
70 $(TESTDIR)/runprocess : runprocess.c ../../config/unix/exec/stackswap.c
71 $(CC) -DTEST -DNO_MAIN $(CFLAGS) -c ../../config/unix/exec/stackswap.c \
73 $(CC) -DTEST $(CFLAGS) $< $(TESTOBJDIR)/ss.o -o $@
74 $(RM) $(TESTOBJDIR)/ss.o