~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to Makefile.org

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2006-05-15 16:00:58 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20060515160058-pg6lnbkkpkwpdj2e
Tags: upstream-0.9.8b
ImportĀ upstreamĀ versionĀ 0.9.8b

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
KRB5_INCLUDES=
101
101
LIBKRB5=
102
102
 
 
103
# Zlib stuff
 
104
ZLIB_INCLUDE=
 
105
LIBZLIB=
 
106
 
103
107
DIRS=   crypto ssl engines apps test tools
104
108
SHLIBDIRS= crypto ssl
105
109
 
191
195
# MAKEOVERRIDES= effectively "equalizes" GNU-ish and SysV-ish make flavors,
192
196
# which in turn eliminates ambiguities in variable treatment with -e.
193
197
 
 
198
# BUILD_CMD is a generic macro to build a given target in a given
 
199
# subdirectory.  The target must be given through the shell variable
 
200
# `target' and the subdirectory to build in must be given through `dir'.
 
201
# This macro shouldn't be used directly, use RECURSIVE_BUILD_CMD or
 
202
# BUILD_ONE_CMD instead.
 
203
#
 
204
# BUILD_ONE_CMD is a macro to build a given target in a given
 
205
# subdirectory if that subdirectory is part of $(DIRS).  It requires
 
206
# exactly the same shell variables as BUILD_CMD.
 
207
#
 
208
# RECURSIVE_BUILD_CMD is a macro to build a given target in all
 
209
# subdirectories defined in $(DIRS).  It requires that the target
 
210
# is given through the shell variable `target'.
194
211
BUILD_CMD=  if [ -d "$$dir" ]; then \
195
212
            (   cd $$dir && echo "making $$target in $$dir..." && \
196
213
                $(CLEARENV) && $(MAKE) -e $(BUILDENV) TOP=.. DIR=$$dir $$target \
197
214
            ) || exit 1; \
198
215
            fi
199
216
RECURSIVE_BUILD_CMD=for dir in $(DIRS); do $(BUILD_CMD); done
 
217
BUILD_ONE_CMD=\
 
218
        if echo " $(DIRS) " | grep " $$dir " >/dev/null 2>/dev/null; then \
 
219
                $(BUILD_CMD); \
 
220
        fi
200
221
 
201
222
reflect:
202
223
        @[ -n "$(THIS)" ] && $(CLEARENV) && $(MAKE) $(THIS) -e $(BUILDENV)
207
228
build_libs: build_crypto build_ssl build_engines
208
229
 
209
230
build_crypto:
210
 
        @dir=crypto; target=all; $(BUILD_CMD)
 
231
        @dir=crypto; target=all; $(BUILD_ONE_CMD)
211
232
build_ssl:
212
 
        @dir=ssl; target=all; $(BUILD_CMD)
 
233
        @dir=ssl; target=all; $(BUILD_ONE_CMD)
213
234
build_engines:
214
 
        @dir=engines; target=all; $(BUILD_CMD)
 
235
        @dir=engines; target=all; $(BUILD_ONE_CMD)
215
236
build_apps:
216
 
        @dir=apps; target=all; $(BUILD_CMD)
 
237
        @dir=apps; target=all; $(BUILD_ONE_CMD)
217
238
build_tests:
218
 
        @dir=test; target=all; $(BUILD_CMD)
 
239
        @dir=test; target=all; $(BUILD_ONE_CMD)
219
240
build_tools:
220
 
        @dir=tools; target=all; $(BUILD_CMD)
 
241
        @dir=tools; target=all; $(BUILD_ONE_CMD)
221
242
 
222
243
all_testapps: build_libs build_testapps
223
244
build_testapps:
224
 
        @dir=crypto; target=testapps; $(BUILD_CMD)
 
245
        @dir=crypto; target=testapps; $(BUILD_ONE_CMD)
225
246
 
226
247
libcrypto$(SHLIB_EXT): libcrypto.a
227
248
        @if [ "$(SHLIB_TARGET)" != "" ]; then \
255
276
 
256
277
link-shared:
257
278
        @ set -e; for i in ${SHLIBDIRS}; do \
258
 
                $(MAKE) -f $(HERE)/Makefile.shared \
 
279
                $(MAKE) -f $(HERE)/Makefile.shared -e $(BUILDENV) \
259
280
                        LIBNAME=$$i LIBVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} \
260
281
                        LIBCOMPATVERSIONS=";${SHLIB_VERSION_HISTORY}" \
261
282
                        symlink.$(SHLIB_TARGET); \