Build sqlite3.library.
[AROS-Contrib.git] / rexx / make_cnf
blob8293ba711902a59b381cf2732c26e9ba78d128e6
1 # Top-level makefile for BREXX V2
3 # BREXX interpreter
4 # Version:  2.0
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 ##################
30 BINDIR = ../bin
31 INCDIR = ../inc
32 LIBDIR = ../lib
34 # Support of Greek character set
35 #GREEK=-DGREEK
36 # Remove the last new-line character of the output of a system command
37 # like  say 'date'()
38 RMLAST=-DRMLAST
39 MAIN=main.c
40 RM=rm -f                # For DOS32 it is overiden below
41 EXTRA=
43 aix:
44         $(MAKE) $(MFLAGS) targets \
45         "REXX_EXE = rexx" \
46         "LSTR_LIB = liblstr.a" \
47         "CC = cc" \
48         "CFLAGS = -Aa -O3 -DALIGN" \
49         "MAKELIB = ar ruv"
51 aix_debug:
52         $(MAKE) $(MFLAGS) targets \
53         "REXX_EXE = rexx" \
54         "LSTR_LIB = liblstr.a" \
55         "CC = cc" \
56         "CFLAGS = -Aa -g -D__DEBUG__ -DALIGN" \
57         "MAKELIB = ar ruv"
59 alpha:
60         $(MAKE) $(MFLAGS) targets \
61         "REXX_EXE = rexx" \
62         "LSTR_LIB = liblstr.a" \
63         "CC = cc" \
64         "CFLAGS = -O3 -DALIGN -DHAS_SETENV" \
65         "MAKELIB = ar ruv"
67 alpha_debug:
68         $(MAKE) $(MFLAGS) targets \
69         "REXX_EXE = rexx" \
70         "LSTR_LIB = liblstr.a" \
71         "CC = cc" \
72         "CFLAGS = -g -D__DEBUG__ -DALIGN -DHAS_SETENV" \
73         "MAKELIB = ar ruv"
75 amiga:
76         $(MAKE) $(MFLAGS) targets \
77         "REXX_EXE = rexx" \
78         "LSTR_LIB = liblstr.a" \
79         "CC = gcc" \
80         "CFLAGS = -O6 -DALIGN -DINLINE" \
81         "MAKELIB = ar ruv"
83 bc:
84         $(MAKE) $(MFLAGS) targets \
85         "REXX_EXE = rexx.exe" \
86         "LSTR_LIB = lstr.lib" \
87         "CC = bcc" \
88         "CFLAGS = -g -D__DEBUG__ -DALIGN" \
89         "MAKELIB = tlib lstr.lib -+"
91 dos32:
92         $(MAKE) $(MFLAGS) targets \
93         "REXX_EXE = rexx.exe" \
94         "LSTR_LIB = liblstr.a" \
95         "CC = gcc" \
96         "RM = del" \
97         "EXTRA = rxconio.c" \
98         "CFLAGS = -O6 -DALIGN -DINLINE -DRXCONIO" \
99         "MAKELIB = ar ruv"
101 gcc:
102         $(MAKE) $(MFLAGS) targets \
103         "REXX_EXE = rexx" \
104         "LSTR_LIB = liblstr.a" \
105         "CC = gcc" \
106         "CFLAGS = -O -DALIGN -DINLINE" \
107         "MAKELIB = ar ruv"
109 gcc_debug:
110         $(MAKE) $(MFLAGS) targets \
111         "REXX_EXE = rexx" \
112         "LSTR_LIB = liblstr.a" \
113         "CC = gcc" \
114         "CFLAGS = -g -pg -Wall -DALIGN -D__DEBUG__" \
115         "MAKELIB = ar ruv"
117 linux:
118         $(MAKE) $(MFLAGS) targets \
119         "REXX_EXE = rexx" \
120         "LSTR_LIB = liblstr.a" \
121         "CC = gcc" \
122         "CFLAGS = -O6 -DALIGN -DINLINE -DHAS_SETENV" \
123         "MAKELIB = ar ruv"
125 linux_debug:
126         $(MAKE) $(MFLAGS) targets \
127         "REXX_EXE = rexx" \
128         "LSTR_LIB = liblstr.a" \
129         "CC = gcc" \
130         "CFLAGS = -g -pg -Wall -DALIGN -D__DEBUG__ -DHAS_SETENV" \
131         "MAKELIB = ar ruv"
133 linux_noalign:
134         $(MAKE) $(MFLAGS) targets \
135         "REXX_EXE = rexx" \
136         "LSTR_LIB = liblstr.a" \
137         "CC = gcc" \
138         "CFLAGS = -O6 -DINLINE -DHAS_SETENV" \
139         "MAKELIB = ar ruv"
141 linux_noalign_debug:
142         $(MAKE) $(MFLAGS) targets \
143         "REXX_EXE = rexx" \
144         "LSTR_LIB = liblstr.a" \
145         "CC = gcc" \
146         "CFLAGS = -g -pg -Wall -D__DEBUG__ -DHAS_SETENV" \
147         "MAKELIB = ar ruv"
149 hpux:
150         $(MAKE) $(MFLAGS) targets \
151         "REXX_EXE = rexx" \
152         "LSTR_LIB = liblstr.a" \
153         "CC = cc" \
154         "CFLAGS = -Aa +O2 -D_HPUX_SOURCE -DALIGN" \
155         "MAKELIB = ar ruv"
157 hpux_debug:
158         $(MAKE) $(MFLAGS) targets \
159         "REXX_EXE = rexx" \
160         "LSTR_LIB = liblstr.a" \
161         "CC = cc" \
162         "CFLAGS = -Aa -g -D__DEBUG__ -D_HPUX_SOURCE -DALIGN" \
163         "MAKELIB = ar ruv"
165 hpux-gcc:
166         $(MAKE) $(MFLAGS) targets \
167         "REXX_EXE = rexx" \
168         "LSTR_LIB = liblstr.a" \
169         "CC = gcc" \
170         "CFLAGS = -O6 -DALIGN" \
171         "MAKELIB = ar ruv"
173 hpux-gcc_debug:
174         $(MAKE) $(MFLAGS) targets \
175         "REXX_EXE = rexx" \
176         "LSTR_LIB = liblstr.a" \
177         "CC = gcc" \
178         "CFLAGS = -g -pg -Wall -D__DEBUG__ -DALIGN" \
179         "MAKELIB = ar ruv" 
181 test:
182         $(MAKE) $(MFLAGS) targets \
183         "REXX_EXE = rexx" \
184         "LSTR_LIB = liblstr.a" \
185         "CC = gcc" \
186         "MAIN = maintest.c" \
187         "CFLAGS = -O6 -DALIGN -DINLINE -DHAS_SETENV" \
188         "MAKELIB = ar ruv"
190 test_debug:
191         $(MAKE) $(MFLAGS) targets \
192         "REXX_EXE = rexx" \
193         "LSTR_LIB = liblstr.a" \
194         "CC = gcc" \
195         "MAIN = maintest.c" \
196         "CFLAGS = -g -pg -Wall -DALIGN -D__DEBUG__ -DHAS_SETENV" \
197         "MAKELIB = ar ruv"