2 # Makefile for Regina REXX Interpreter
4 # Using gcc/emx on DOS or OS/2 with GNU make
6 # make -f makefile.dos.emx [DEBUG=Y [TRACEMEM=Y]] [FLISTS=N]
8 # generated files without giving a target on the command line:
9 # rexx.exe statically bounded REXX interpreter
10 # regina.a static link library of the REXX interpreter, place anywhere
11 # in a directory of your LIBRARY_PATH-variable.
13 # WARNING: If you really like to produce debugging code, you must either
14 # disable the bounds checking (simply comment out "-fbounds-checking"
15 # and "-lcheck") or you have to modify the file yaccsrc.c. Look at
16 # yaccsrc.bound for an instruction guide.
17 # TRACEMEM and FLISTS will both be disabled in case of bounds
18 # checking inside rexx.h.
21 SRCDIR=$(REGINA_SRCDIR)
23 # USER CONFIGURABLE VARIABLES
25 # Please specify the current directory of the sources:
27 #SRCDIR=path_to_this_file
32 include $(SRCDIR)\regina.ver
37 OPTIMIZE = -g -fbounds-checking -Wall -Wno-char-subscripts
42 OPTIMIZE = -O3 -fomit-frame-pointer -Wall -DNDEBUG -Wno-char-subscripts
55 USEFLISTS = -DNOFLISTS
60 CEXTRA = -DDOS -DEMX -DNO_EXTERNAL_QUEUES -funsigned-char -DREGINA_VERSION_DATE=\"$(VER_DATE)\" -DREGINA_VERSION_MAJOR=\"$(VER_MAJOR)\" -DREGINA_VERSION_MINOR=\"$(VER_MINOR)\" -DREGINA_VERSION_SUPP=\"$(VER_SUPP)\"
61 EXTQUEUE_OBJS = #extstack.$(OBJ) rexxbif.$(OBJ)
62 EXTQUEUE_SHOBJS = #extstack.sho rexxbif.sho
71 LD_RXLIB2=-lc -L. -lregina
72 SHL_LD=ld -o $(LIBPRE)$(LIBFILE).$(SHL).$(VERDOT) -rpath . -shared -no_archive $(SHOFILES) -lc
74 LDEXTRA=emxbind $@ -acm
79 LIBFLAGS = cr $(LIBFILE).$(LIBPST)
80 LIBLINK = $(LIBFILE).$(LIBPST)
86 RANLIB_LIB=#ranlib $(LIBFILE).a
89 # If your compiler can handle the combination of: -c -o file.sho, then
90 # uncomment the macro CC2O and comment out the 3 macros before CC2O
94 # Include the common rules for the interpreter
96 include $(SRCDIR)/makefile.com