8120272324e4eb1239ca87c1cfd370032e2d3f58
[openssl.git] / engines / afalg / Makefile.in
1 #
2 # OpenSSL/engines/afalg/Makefile
3 #
4
5 DIR=    afalg
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I../../include
9 CFLAG=-g
10 MAKEFILE=       Makefile
11 AR=             ar r
12
13 CFLAGS= $(INCLUDES) $(CFLAG)
14 LIB=$(TOP)/libcrypto.a
15
16 LIBNAME=afalg
17 LIBSRC= e_afalg.c
18 LIBOBJ= e_afalg.o e_afalg_err.o
19
20 SRC= $(LIBSRC)
21
22 top:
23         (cd $(TOP); $(MAKE) DIRS=engines sub_all)
24
25 all: errors lib
26
27 errors:
28         $(PERL) $(TOP)/util/mkerr.pl -conf e_afalg.ec -nostatic -write $(SRC)
29
30 lib: $(LIBOBJ)
31         @if [ -n "$(SHARED_LIBS)" ]; then \
32                 $(MAKE) -f $(TOP)/Makefile.shared -e \
33                         LIBNAME=$(LIBNAME) \
34                         LIBEXTRAS='$(LIBOBJ)' \
35                         LIBDEPS='-L$(TOP) -lcrypto' \
36                         link_o.$(SHLIB_TARGET); \
37         else \
38                 $(AR) $(LIB) $(LIBOBJ); \
39         fi
40         @touch lib
41
42 install:
43         [ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
44         if [ -n "$(SHARED_LIBS)" ]; then \
45                 set -e; \
46                 echo installing $(LIBNAME); \
47                 pfx=lib; \
48                 if expr "$(PLATFORM)" : "Cygwin" >/dev/null; then \
49                         sfx=".so"; \
50                         cp cyg$(LIBNAME).dll $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new; \
51                 else \
52                         case "$(CFLAGS)" in \
53                         *DSO_DLFCN*) sfx=`expr "$(SHLIB_EXT)" : '.*\(\.[a-z][a-z]*\)' \| ".so"`;; \
54                         *DSO_DL*) sfx=".sl";; \
55                         *DSO_WIN32*) sfx="eay32.dll"; pfx=;; \
56                         *) sfx=".bad";; \
57                         esac; \
58                         cp $${pfx}$(LIBNAME)$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new; \
59                 fi; \
60                 chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new; \
61                 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx; \
62         fi
63
64 depend: 
65         @[ -z "$(THIS)" ] || $(TOP)/util/domd $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) $(TESTLIBSRC)
66
67 files:
68         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
69
70 clean:
71         rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff *.so *.dll *.dylib
72
73 # DO NOT DELETE THIS LINE -- make depend depends on it.
74 e_afalg.o: e_afalg.c ../../include/openssl/engine.h \
75  ../../include/openssl/opensslconf.h ../../include/openssl/bn.h \
76  ../../include/openssl/e_os2.h ../../include/openssl/ossl_typ.h \
77  ../../include/openssl/crypto.h ../../include/openssl/stack.h \
78  ../../include/openssl/safestack.h ../../include/openssl/opensslv.h \
79  ../../include/openssl/symhacks.h ../../include/openssl/rsa.h \
80  ../../include/openssl/asn1.h ../../include/openssl/bio.h \
81  ../../include/openssl/dsa.h ../../include/openssl/dh.h \
82  ../../include/openssl/ec.h ../../include/openssl/rand.h \
83  ../../include/openssl/ui.h ../../include/openssl/err.h \
84  ../../include/openssl/lhash.h ../../include/openssl/x509.h \
85  ../../include/openssl/buffer.h ../../include/openssl/evp.h \
86  ../../include/openssl/objects.h ../../include/openssl/obj_mac.h \
87  ../../include/openssl/sha.h ../../include/openssl/x509_vfy.h \
88  ../../include/openssl/pkcs7.h ../../include/openssl/async.h e_afalg.h \
89  e_afalg_err.h