2 # OpenSSL/engines/Makefile
16 CFLAGS= $(INCLUDES) $(CFLAG)
18 GENERAL=Makefile engines.com install.com engine_vector.mar
22 LIB=$(TOP)/libcrypto.a
23 LIBNAMES= 4758cca aep atalla cswift gmp chil nuron sureware ubsec
47 HEADER= e_4758cca_err.c e_4758cca_err.h \
48 e_aep_err.c e_aep_err.h \
49 e_atalla_err.c e_atalla_err.h \
50 e_cswift_err.c e_cswift_err.h \
51 e_gmp_err.c e_gmp_err.h \
52 e_chil_err.c e_chil_err.h \
53 e_nuron_err.c e_nuron_err.h \
54 e_sureware_err.c e_sureware_err.h \
55 e_ubsec_err.c e_ubsec_err.h
57 ALL= $(GENERAL) $(SRC) $(HEADER)
60 (cd ..; $(MAKE) DIRS=$(DIR) all)
65 @if [ -n "$(SHARED_LIBS)" ]; then \
67 for l in $(LIBNAMES); do \
68 $(MAKE) -f ../Makefile.shared -e \
69 LIBNAME=$$l LIBEXTRAS=e_$$l.o \
70 LIBDEPS='-L.. -lcrypto $(EX_LIBS)' \
71 link_o.$(SHLIB_TARGET); \
74 $(AR) $(LIB) $(LIBOBJ); \
75 $(RANLIB) $(LIB) || echo Never mind.; \
80 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
84 # XXXXX This currently only works on systems that use .so as suffix
85 # for shared libraries as well as for Cygwin which uses the
86 # dlfcn_name_converter and therefore stores the engines with .so suffix, too.
87 # XXXXX This was extended to HP-UX dl targets, which use .sl suffix.
89 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
90 @if [ -n "$(SHARED_LIBS)" ]; then \
92 for l in $(LIBNAMES); do \
93 ( echo installing $$l; \
94 if [ "$(PLATFORM)" != "Cygwin" ]; then \
96 *DSO_DLFCN*) sfx="so";; \
97 *DSO_DL*) sfx="sl";; \
100 cp lib$$l.$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \
103 cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \
105 chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new; \
106 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines/lib$$l.$$sfx ); \
114 set -e; for l in $(LIBNAMES); do \
115 $(PERL) ../util/mkerr.pl -conf e_$$l.ec \
116 -nostatic -staticloader -write e_$$l.c; \
122 lint -DLINT $(INCLUDES) $(SRC)>fluff
125 @if [ -z "$(THIS)" ]; then \
126 $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; \
128 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC); \
132 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
133 mv -f Makefile.new $(MAKEFILE)
136 rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
138 # DO NOT DELETE THIS LINE -- make depend depends on it.