| 1 |
# |
| 2 |
# Makefile for Regina REXX Interpreter |
| 3 |
# |
| 4 |
# Using gcc/emx on DOS or OS/2 with GNU make |
| 5 |
# Usage: |
| 6 |
# make -f makefile.dos.emx [DEBUG=Y [TRACEMEM=Y]] [FLISTS=N] |
| 7 |
# |
| 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. |
| 12 |
# |
| 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. |
| 19 |
# |
| 20 |
|
| 21 |
SRCDIR=$(REGINA_SRCDIR) |
| 22 |
# |
| 23 |
# USER CONFIGURABLE VARIABLES |
| 24 |
# |
| 25 |
# Please specify the current directory of the sources: |
| 26 |
# |
| 27 |
#SRCDIR=path_to_this_file |
| 28 |
|
| 29 |
CC = gcc |
| 30 |
LD = gcc |
| 31 |
|
| 32 |
include $(SRCDIR)\regina.ver |
| 33 |
VERDOT = $(VER_DOT) |
| 34 |
VERDATE = $(VER_DATE) |
| 35 |
|
| 36 |
ifeq ($(DEBUG),Y) |
| 37 |
OPTIMIZE = -g -fbounds-checking -Wall -Wno-char-subscripts |
| 38 |
LDOPT = -g |
| 39 |
LIBS = -lcheck |
| 40 |
SHLIBS = -lcheck |
| 41 |
else |
| 42 |
OPTIMIZE = -O3 -fomit-frame-pointer -Wall -DNDEBUG -Wno-char-subscripts |
| 43 |
LDOPT = -O3 |
| 44 |
LIBS = |
| 45 |
SHLIBS = |
| 46 |
endif |
| 47 |
|
| 48 |
ifeq ($(TRACEMEM),Y) |
| 49 |
MEMTRACE = -DTRACEMEM |
| 50 |
else |
| 51 |
MEMTRACE = |
| 52 |
endif |
| 53 |
|
| 54 |
ifeq ($(FLISTS),N) |
| 55 |
USEFLISTS = -DNOFLISTS |
| 56 |
else |
| 57 |
USEFLISTS = |
| 58 |
endif |
| 59 |
|
| 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 |
| 63 |
EEXTRA = |
| 64 |
DYN_COMP = |
| 65 |
THREADING = |
| 66 |
MT_FILE = mt_notmt |
| 67 |
OS_FILE = os_other |
| 68 |
SHL = dll |
| 69 |
OBJ=o |
| 70 |
LD_RXLIB1=ld |
| 71 |
LD_RXLIB2=-lc -L. -lregina |
| 72 |
SHL_LD=ld -o $(LIBPRE)$(LIBFILE).$(SHL).$(VERDOT) -rpath . -shared -no_archive $(SHOFILES) -lc |
| 73 |
SHL_TARGETS = |
| 74 |
LDEXTRA=emxbind $@ -acm |
| 75 |
LIBPRE = |
| 76 |
LIBFILE = regina |
| 77 |
LIBEXE = ar |
| 78 |
LIBPST = a |
| 79 |
LIBFLAGS = cr $(LIBFILE).$(LIBPST) |
| 80 |
LIBLINK = $(LIBFILE).$(LIBPST) |
| 81 |
OBJECTS = $(OFILES) |
| 82 |
OSAVE = .o.save |
| 83 |
MV=-ren |
| 84 |
RM=-del |
| 85 |
|
| 86 |
RANLIB_LIB=#ranlib $(LIBFILE).a |
| 87 |
|
| 88 |
# |
| 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 |
| 91 |
# |
| 92 |
CC2O=-o $@ |
| 93 |
# |
| 94 |
# Include the common rules for the interpreter |
| 95 |
# |
| 96 |
include $(SRCDIR)/makefile.com |
| 97 |
# |
| 98 |
# End of makefile |
| 99 |
# |