1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
#
# Makefile for Regina REXX Interpreter
#
# Using gcc/emx on DOS or OS/2 with GNU make
# Usage:
# make -f makefile.dos.emx [DEBUG=Y [TRACEMEM=Y]] [FLISTS=N]
#
# generated files without giving a target on the command line:
# rexx.exe statically bounded REXX interpreter
# regina.a static link library of the REXX interpreter, place anywhere
# in a directory of your LIBRARY_PATH-variable.
#
# WARNING: If you really like to produce debugging code, you must either
# disable the bounds checking (simply comment out "-fbounds-checking"
# and "-lcheck") or you have to modify the file yaccsrc.c. Look at
# yaccsrc.bound for an instruction guide.
# TRACEMEM and FLISTS will both be disabled in case of bounds
# checking inside rexx.h.
#
SRCDIR=$(REGINA_SRCDIR)
#
# USER CONFIGURABLE VARIABLES
#
# Please specify the current directory of the sources:
#
#SRCDIR=path_to_this_file
CC = gcc
ifeq ($(DEBUG),Y)
OPTIMIZE = -g -fbounds-checking -Wall
LIBS = -lcheck
SHLIBS = -lcheck
else
OPTIMIZE = -O3 -fomit-frame-pointer -Wall -DNDEBUG
LIBS =
SHLIBS =
endif
ifeq ($(TRACEMEM),Y)
MEMTRACE = -DTRACEMEM
else
MEMTRACE =
endif
ifeq ($(FLISTS),N)
USEFLISTS = -DNOFLISTS
else
USEFLISTS =
endif
CEXTRA = -DDOS -DEMX -DNO_EXTERNAL_QUEUES
EXTQUEUE_OBJS = #extstack.$(OBJ) rexxbif.$(OBJ)
EXTQUEUE_SHOBJS = #extstack.sho rexxbif.sho
EEXTRA =
DYN_COMP =
THREADING =
MT_FILE = mt_notmt
SHL = dll
OBJ=o
LD_RXLIB1=ld
LD_RXLIB2=-lc -L. -lregina
SHL_LD=ld -o $(LIBPRE)$(LIBFILE).$(SHL).$(VERDOT) -rpath . -shared -no_archive $(SHOFILES) -lc
SHL_TARGETS =
LDEXTRA=emxbind $@ -acm
LIBPRE =
LIBFILE = regina
LIBEXE = ar
LIBPST = a
LIBFLAGS = cr $(LIBFILE).$(LIBPST)
LIBLINK = $(LIBFILE).$(LIBPST)
OBJECTS = $(OFILES)
OSAVE = .o.save
MV=-ren
RM=-del
RANLIB_LIB=#ranlib $(LIBFILE).a
#
# If your compiler can handle the combination of: -c -o file.sho, then
# uncomment the macro CC2O and comment out the 3 macros before CC2O
#
CC2O=-o $@
#
# Include the common rules for the interpreter
#
include $(SRCDIR)/makefile.com
#
# End of makefile
#
|