3 # Makefile to make Rexx.
5 include $(TOP)/config/make.cfg
7 include $(SRCDIR)/$(CURDIR)/regina.ver
9 #MM- AROS : contrib-regina
11 #MM- contrib-regina : contrib-regina-exes contrib-regina-module \
12 #MM contrib-regina-test
13 #MM- contrib-regina-quick : contrib-regina-exes-quick contrib-regina-module-quick
15 #MM- contrib-regina-exes : contrib-regina-module \
16 #MM contrib-regina-rexx \
17 #MM contrib-regina-regina
19 #MM contrib-regina-module : includes linklibs
21 contrib-regina-module-quick : contrib-regina-module
23 EXEDIR := $(CONTRIBDIR)/Regina
25 # At the moment don't support threads.
26 # Files shared by executables and shared library
28 funcs builtin error variable interprt debug dbgfuncs \
29 memory parsing files misc unxfuncs cmsfuncs os2funcs \
30 shell rexxext stack tracing interp cmath convert \
31 strings library strmath signals macros envir expr \
32 instore yaccsrc lexsrc wrappers options \
33 rexxbif arxfuncs amifuncs os_amiga
35 USER_INCLUDES := -I$(SRCDIR)/$(CURDIR)
36 USER_CFLAGS := -DNO_EXTERNAL_QUEUES \
37 -DREGINA_VERSION_DATE=\"$(VER_DATE)\" \
38 -DREGINA_VERSION_MAJOR=\"$(VER_MAJOR)\" \
39 -DREGINA_VERSION_MINOR=\"$(VER_MINOR)\" \
40 -DREGINA_VERSION_SUPP=\"$(VER_SUPP)\"
42 FILES := $(OFILES) rexx nosaa mt_notmt
43 %build_prog mmake=contrib-regina-rexx \
44 progname=rexx targetdir=$(EXEDIR) objdir=$(GENDIR)/$(CURDIR)/static \
45 files=$(FILES) uselibs="arossupport amiga arosc m"
48 %build_prog mmake=contrib-regina-regina \
49 progname=regina targetdir=$(EXEDIR) \
50 files=$(FILES) uselibs="regina_shared arossupport amiga arosc m"
55 USER_CFLAGS := -DRXLIB -DINCL_REXXSAA -DAPIENTRY= \
56 -DNO_EXTERNAL_QUEUES \
57 -DREGINA_VERSION_DATE=\"$(VER_DATE)\" \
58 -DREGINA_VERSION_MAJOR=\"$(VER_MAJOR)\" \
59 -DREGINA_VERSION_MINOR=\"$(VER_MINOR)\" \
60 -DREGINA_VERSION_SUPP=\"$(VER_SUPP)\" \
71 %build_module mmake=contrib-regina-module \
72 modname=regina modtype=library \
73 files=$(FILES) uselibs="arosc_rel" \
74 objdir=$(GENDIR)/$(CURDIR)/shared linklibname=regina_shared
76 %copy_includes includes=rexxsaa.h
78 TEST_FILES := addsupport typepkt forbid1 forbid2 ptrarith ados
79 TESTS := $(addsuffix .rexx,$(TEST_FILES))
81 %copy_files_q mmake=contrib-regina-test files=$(TESTS) src=arexx_test dst=$(EXEDIR)/arexx_test