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