disable the unrecognized nls flag
[AROS-Contrib.git] / regina / makefile.dos.emx
blobff8966c4fc91709229ff9425fc4ef5c17b58ef04
2 # Makefile for Regina REXX Interpreter
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]
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
29 CC = gcc
30 LD = gcc
32 include $(SRCDIR)\regina.ver
33 VERDOT = $(VER_DOT)
34 VERDATE = $(VER_DATE)
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
48 ifeq ($(TRACEMEM),Y)
49 MEMTRACE = -DTRACEMEM
50 else
51 MEMTRACE =
52 endif
54 ifeq ($(FLISTS),N)
55 USEFLISTS = -DNOFLISTS
56 else
57 USEFLISTS =
58 endif
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
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
92 CC2O=-o $@
94 # Include the common rules for the interpreter
96 include $(SRCDIR)/makefile.com
98 # End of makefile