Change the INSTALL documentation for unified builds
[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) $(SHARED_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 [ "$(DYNAMIC_ENGINES)" = 1 ]; then \
32                 $(MAKE) -f $(TOP)/Makefile.shared -e \
33                         LIBNAME=$(LIBNAME) \
34                         LIBEXTRAS='$(LIBOBJ)' \
35                         LIBDEPS='-L$(TOP) -lcrypto' \
36                         link_dso.$(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                 $(PERL) $(TOP)/util/mkdir-p.pl $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines; \
47                 cp $(LIBNAME)$(DSO_EXT) $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$(LIBNAME)$(DSO_EXT).new; \
48                 chmod 555 $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$(LIBNAME)$(DSO_EXT).new; \
49                 mv -f $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$(LIBNAME)$(DSO_EXT).new $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$(LIBNAME)$(DSO_EXT); \
50         fi
51
52
53 depend:
54         @[ -z "$(THIS)" ] || $(TOP)/util/domd $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) $(TESTLIBSRC)
55
56 files:
57         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
58
59 clean:
60         rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff *.so *.dll *.dylib
61
62 # DO NOT DELETE THIS LINE -- make depend depends on it.
63 e_afalg.o: e_afalg.c ../../include/openssl/engine.h \
64  ../../include/openssl/opensslconf.h ../../include/openssl/bn.h \
65  ../../include/openssl/e_os2.h ../../include/openssl/ossl_typ.h \
66  ../../include/openssl/crypto.h ../../include/openssl/stack.h \
67  ../../include/openssl/safestack.h ../../include/openssl/opensslv.h \
68  ../../include/openssl/symhacks.h ../../include/openssl/rsa.h \
69  ../../include/openssl/asn1.h ../../include/openssl/bio.h \
70  ../../include/openssl/dsa.h ../../include/openssl/dh.h \
71  ../../include/openssl/ec.h ../../include/openssl/rand.h \
72  ../../include/openssl/ui.h ../../include/openssl/err.h \
73  ../../include/openssl/lhash.h ../../include/openssl/x509.h \
74  ../../include/openssl/buffer.h ../../include/openssl/evp.h \
75  ../../include/openssl/objects.h ../../include/openssl/obj_mac.h \
76  ../../include/openssl/sha.h ../../include/openssl/x509_vfy.h \
77  ../../include/openssl/pkcs7.h ../../include/openssl/async.h e_afalg.h \
78  e_afalg_err.h