Further BUILDENV clean-up, 'make depend' is operational again.
This commit is contained in:
parent
9dd8405341
commit
7abbffc3fb
16
Makefile.org
16
Makefile.org
@ -147,11 +147,12 @@ HEADER= e_os.h
|
|||||||
all: Makefile build_all openssl.pc
|
all: Makefile build_all openssl.pc
|
||||||
|
|
||||||
BUILDENV= PLATFORM='${PLATFORM}' PROCESSOR='${PROCESSOR}' \
|
BUILDENV= PLATFORM='${PLATFORM}' PROCESSOR='${PROCESSOR}' \
|
||||||
SDIRS='$(SDIRS)' INSTALLTOP='${INSTALLTOP}' \
|
|
||||||
LIBRPATH='$(INSTALLTOP)/lib' \
|
|
||||||
CC='${CC}' CFLAG='${CFLAG}' \
|
CC='${CC}' CFLAG='${CFLAG}' \
|
||||||
AS='${CC}' ASFLAG='${CFLAG} -c' \
|
AS='${CC}' ASFLAG='${CFLAG} -c' \
|
||||||
AR='${AR}' PERL='${PERL}' RANLIB='${RANLIB}' \
|
AR='${AR}' PERL='${PERL}' RANLIB='${RANLIB}' \
|
||||||
|
SDIRS='$(SDIRS)' LIBRPATH='$(INSTALLTOP)/lib' \
|
||||||
|
INSTALLTOP='${INSTALLTOP}' OPENSSLDIR='${OPENSSLDIR}' \
|
||||||
|
DEPFLAG='${DEPFLAG}' MAKEDEPPROG='${MAKEDEPPROG}' \
|
||||||
LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
|
LDFLAGS="$(LDFLAGS)" SHARED_LDFLAGS="$(SHARED_LDFLAGS)" \
|
||||||
KRB5_INCLUDES='${KRB5_INCLUDES}' LIBKRB5='${LIBKRB5}' \
|
KRB5_INCLUDES='${KRB5_INCLUDES}' LIBKRB5='${LIBKRB5}' \
|
||||||
EXE_EXT='${EXE_EXT}' SHARED_LIBS='${SHARED_LIBS}' \
|
EXE_EXT='${EXE_EXT}' SHARED_LIBS='${SHARED_LIBS}' \
|
||||||
@ -164,7 +165,8 @@ BUILDENV= PLATFORM='${PLATFORM}' PROCESSOR='${PROCESSOR}' \
|
|||||||
RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' \
|
RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' \
|
||||||
SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' \
|
SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' \
|
||||||
MD5_ASM_OBJ='${MD5_ASM_OBJ}' \
|
MD5_ASM_OBJ='${MD5_ASM_OBJ}' \
|
||||||
RMD160_ASM_OBJ='${RMD160_ASM_OBJ}'
|
RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' \
|
||||||
|
THIS=$${THIS:-$@}
|
||||||
|
|
||||||
BUILD_CMD=if echo " $(DIRS) " | grep " $$dir " >/dev/null 2>/dev/null; then \
|
BUILD_CMD=if echo " $(DIRS) " | grep " $$dir " >/dev/null 2>/dev/null; then \
|
||||||
if [ -d "$$dir" ]; then \
|
if [ -d "$$dir" ]; then \
|
||||||
@ -245,12 +247,10 @@ do_$(SHLIB_TARGET):
|
|||||||
if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \
|
if [ "${SHLIBDIRS}" = "ssl" -a -n "$(LIBKRB5)" ]; then \
|
||||||
libs="$(LIBKRB5) $$libs"; \
|
libs="$(LIBKRB5) $$libs"; \
|
||||||
fi; \
|
fi; \
|
||||||
$(MAKE) -f Makefile.shared \
|
$(MAKE) -f Makefile.shared $(BUILDENV) \
|
||||||
$(BUILDENV) \
|
|
||||||
LIBNAME=$$i LIBVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
LIBNAME=$$i LIBVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||||
LIBCOMPATVERSIONS=";${SHLIB_VERSION_HISTORY}" \
|
LIBCOMPATVERSIONS=";${SHLIB_VERSION_HISTORY}" \
|
||||||
LIBDEPS="$$libs $(EX_LIBS)" \
|
LIBDEPS="$$libs $(EX_LIBS)" \
|
||||||
LIBRPATH="$(INSTALLTOP)/lib" \
|
|
||||||
link_a.$(SHLIB_TARGET); \
|
link_a.$(SHLIB_TARGET); \
|
||||||
libs="-l$$i $$libs"; \
|
libs="-l$$i $$libs"; \
|
||||||
done
|
done
|
||||||
@ -350,7 +350,7 @@ depend:
|
|||||||
do \
|
do \
|
||||||
if [ -d "$$i" ]; then \
|
if [ -d "$$i" ]; then \
|
||||||
(cd $$i && echo "making dependencies $$i..." && \
|
(cd $$i && echo "making dependencies $$i..." && \
|
||||||
$(MAKE) SDIRS='${SDIRS}' CFLAG='-DOPENSSL_NO_DEPRECATED ${CFLAG}' DEPFLAG='${DEPFLAG}' MAKEDEPPROG='${MAKEDEPPROG}' KRB5_INCLUDES='${KRB5_INCLUDES}' PERL='${PERL}' depend ) || exit 1; \
|
$(MAKE) $(BUILDENV) CFLAG='-DOPENSSL_NO_DEPRECATED ${CFLAG}' depend ) || exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
done;
|
done;
|
||||||
|
|
||||||
@ -450,7 +450,7 @@ install_sw:
|
|||||||
do \
|
do \
|
||||||
if [ -d "$$i" ]; then \
|
if [ -d "$$i" ]; then \
|
||||||
(cd $$i; echo "installing $$i..."; \
|
(cd $$i; echo "installing $$i..."; \
|
||||||
$(MAKE) $(BUILDENV) INSTALL_PREFIX='${INSTALL_PREFIX}' OPENSSLDIR='${OPENSSLDIR}' install ); \
|
$(MAKE) $(BUILDENV) install ); \
|
||||||
fi; \
|
fi; \
|
||||||
done
|
done
|
||||||
@set -e; for i in $(LIBS) ;\
|
@set -e; for i in $(LIBS) ;\
|
||||||
|
@ -6,6 +6,7 @@ DIR= crypto
|
|||||||
TOP= ..
|
TOP= ..
|
||||||
CC= cc
|
CC= cc
|
||||||
INCLUDE= -I. -I$(TOP) -I../include
|
INCLUDE= -I. -I$(TOP) -I../include
|
||||||
|
# INCLUDES targets sudbirs!
|
||||||
INCLUDES= -I.. -I../.. -I../../include
|
INCLUDES= -I.. -I../.. -I../../include
|
||||||
CFLAG= -g
|
CFLAG= -g
|
||||||
MAKEDEPPROG= makedepend
|
MAKEDEPPROG= makedepend
|
||||||
@ -72,10 +73,10 @@ ia64cpuid.s: ia64cpuid.S
|
|||||||
$(CC) $(CFLAGS) -E ia64cpuid.S > $@
|
$(CC) $(CFLAGS) -E ia64cpuid.S > $@
|
||||||
|
|
||||||
testapps:
|
testapps:
|
||||||
@if [ -z "(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
|
|
||||||
[ -z "$(THIS)" ] || ( if echo ${SDIRS} | fgrep ' des '; \
|
[ -z "$(THIS)" ] || ( if echo ${SDIRS} | fgrep ' des '; \
|
||||||
then cd des && $(MAKE) des; fi )
|
then cd des && $(MAKE) des; fi )
|
||||||
[ -z "$(THIS)" ] || ( cd pkcs7 && $(MAKE) testapps );
|
[ -z "$(THIS)" ] || ( cd pkcs7 && $(MAKE) testapps );
|
||||||
|
@if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
|
||||||
|
|
||||||
subdirs:
|
subdirs:
|
||||||
@for i in $(SDIRS) ;\
|
@for i in $(SDIRS) ;\
|
||||||
@ -89,7 +90,7 @@ files:
|
|||||||
@for i in $(SDIRS) ;\
|
@for i in $(SDIRS) ;\
|
||||||
do \
|
do \
|
||||||
(cd $$i && echo "making 'files' in crypto/$$i..." && \
|
(cd $$i && echo "making 'files' in crypto/$$i..." && \
|
||||||
$(MAKE) PERL='${PERL}' files ); \
|
$(MAKE) files ); \
|
||||||
done;
|
done;
|
||||||
|
|
||||||
links:
|
links:
|
||||||
@ -119,12 +120,12 @@ libs:
|
|||||||
done;
|
done;
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
@if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@ fi
|
|
||||||
@[ -z "$(THIS)" ] || (for i in $(SDIRS) ;\
|
@[ -z "$(THIS)" ] || (for i in $(SDIRS) ;\
|
||||||
do \
|
do \
|
||||||
(cd $$i && echo "making tests in crypto/$$i..." && \
|
(cd $$i && echo "making tests in crypto/$$i..." && \
|
||||||
$(MAKE) tests ); \
|
$(MAKE) tests ); \
|
||||||
done; )
|
done; )
|
||||||
|
@if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
|
@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
|
||||||
@ -147,14 +148,15 @@ lint:
|
|||||||
done;
|
done;
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
if [ ! -f buildinf.h ]; then touch buildinf.h; fi # fake buildinf.h if it does not exist
|
[ -z "$(THIS)" -o -f buildinf.h ] || touch buildinf.h # fake buildinf.h if it does not exist
|
||||||
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDE) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
[ -z "$(THIS)" ] || $(MAKEDEPEND) -- $(CFLAG) $(INCLUDE) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
||||||
if [ ! -s buildinf.h ]; then rm buildinf.h; fi
|
[ -z "$(THIS)" -o -s buildinf.h ] || rm buildinf.h
|
||||||
@for i in $(SDIRS) ;\
|
@[ -z "$(THIS)" ] || for i in $(SDIRS) ;\
|
||||||
do \
|
do \
|
||||||
(cd $$i && echo "making depend in crypto/$$i..." && \
|
(cd $$i && echo "making depend in crypto/$$i..." && \
|
||||||
$(MAKE) depend ); \
|
$(MAKE) INCLUDES='${INCLUDES}' depend ); \
|
||||||
done;
|
done;
|
||||||
|
@if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f buildinf.h *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
rm -f buildinf.h *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
||||||
|
Loading…
x
Reference in New Issue
Block a user