1 # Top-level makefile for BREXX V2
5 # Copyright (C) 1991-1998 Vassilis Vlachoudis (V.Vlachoudis@cern.ch)
7 # This interpreter is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 # The following variables are passed to each Makefile:
14 # REXX_EXE interpreter executable name usually (rexx)
15 # LSTR_LIB the name of the lstring "lstr" library file (usually liblstr.a)
16 # CC the C compiler (usually cc or gcc)
17 # CFLAGS flags to C compiler (usually -O)
18 # MAKELIB the command and flags to make a library file (usually "ar rcv")
19 # HAS_SETENV if the compiler has the setenv() function.
20 # ALIGN Normally this option should be set for faster results.
22 # To add a new system configuration just follow the examples below and update
23 # the top-level Makefile.
26 # The allowable defines can be found in the inc/os.h file
29 ############## Some COMMON macros ##################
34 # Support of Greek character set
36 # Remove the last new-line character of the output of a system command
40 RM=rm -f # For DOS32 it is overiden below
44 $(MAKE) $(MFLAGS) targets \
46 "LSTR_LIB = liblstr.a" \
48 "CFLAGS = -Aa -O3 -DALIGN" \
52 $(MAKE) $(MFLAGS) targets \
54 "LSTR_LIB = liblstr.a" \
56 "CFLAGS = -Aa -g -D__DEBUG__ -DALIGN" \
60 $(MAKE) $(MFLAGS) targets \
62 "LSTR_LIB = liblstr.a" \
64 "CFLAGS = -O3 -DALIGN -DHAS_SETENV" \
68 $(MAKE) $(MFLAGS) targets \
70 "LSTR_LIB = liblstr.a" \
72 "CFLAGS = -g -D__DEBUG__ -DALIGN -DHAS_SETENV" \
76 $(MAKE) $(MFLAGS) targets \
78 "LSTR_LIB = liblstr.a" \
80 "CFLAGS = -O6 -DALIGN -DINLINE" \
84 $(MAKE) $(MFLAGS) targets \
85 "REXX_EXE = rexx.exe" \
86 "LSTR_LIB = lstr.lib" \
88 "CFLAGS = -g -D__DEBUG__ -DALIGN" \
89 "MAKELIB = tlib lstr.lib -+"
92 $(MAKE) $(MFLAGS) targets \
93 "REXX_EXE = rexx.exe" \
94 "LSTR_LIB = liblstr.a" \
98 "CFLAGS = -O6 -DALIGN -DINLINE -DRXCONIO" \
102 $(MAKE) $(MFLAGS) targets \
104 "LSTR_LIB = liblstr.a" \
106 "CFLAGS = -O -DALIGN -DINLINE" \
110 $(MAKE) $(MFLAGS) targets \
112 "LSTR_LIB = liblstr.a" \
114 "CFLAGS = -g -pg -Wall -DALIGN -D__DEBUG__" \
118 $(MAKE) $(MFLAGS) targets \
120 "LSTR_LIB = liblstr.a" \
122 "CFLAGS = -O6 -DALIGN -DINLINE -DHAS_SETENV" \
126 $(MAKE) $(MFLAGS) targets \
128 "LSTR_LIB = liblstr.a" \
130 "CFLAGS = -g -pg -Wall -DALIGN -D__DEBUG__ -DHAS_SETENV" \
134 $(MAKE) $(MFLAGS) targets \
136 "LSTR_LIB = liblstr.a" \
138 "CFLAGS = -O6 -DINLINE -DHAS_SETENV" \
142 $(MAKE) $(MFLAGS) targets \
144 "LSTR_LIB = liblstr.a" \
146 "CFLAGS = -g -pg -Wall -D__DEBUG__ -DHAS_SETENV" \
150 $(MAKE) $(MFLAGS) targets \
152 "LSTR_LIB = liblstr.a" \
154 "CFLAGS = -Aa +O2 -D_HPUX_SOURCE -DALIGN" \
158 $(MAKE) $(MFLAGS) targets \
160 "LSTR_LIB = liblstr.a" \
162 "CFLAGS = -Aa -g -D__DEBUG__ -D_HPUX_SOURCE -DALIGN" \
166 $(MAKE) $(MFLAGS) targets \
168 "LSTR_LIB = liblstr.a" \
170 "CFLAGS = -O6 -DALIGN" \
174 $(MAKE) $(MFLAGS) targets \
176 "LSTR_LIB = liblstr.a" \
178 "CFLAGS = -g -pg -Wall -D__DEBUG__ -DALIGN" \
182 $(MAKE) $(MFLAGS) targets \
184 "LSTR_LIB = liblstr.a" \
186 "MAIN = maintest.c" \
187 "CFLAGS = -O6 -DALIGN -DINLINE -DHAS_SETENV" \
191 $(MAKE) $(MFLAGS) targets \
193 "LSTR_LIB = liblstr.a" \
195 "MAIN = maintest.c" \
196 "CFLAGS = -g -pg -Wall -DALIGN -D__DEBUG__ -DHAS_SETENV" \