aboutsummaryrefslogtreecommitdiffstats
path: root/engines/afalg/Makefile.in
blob: fb41993fbd4dc851b17cfe085111abab9399dc68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#
# OpenSSL/engines/afalg/Makefile
#

DIR=	afalg
TOP=	../..
CC=	cc
INCLUDES= -I../../include
CFLAG=-g
MAKEFILE=	Makefile
AR=		ar r

CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
LIB=$(TOP)/libcrypto.a

LIBNAME=afalg
LIBSRC=	e_afalg.c
LIBOBJ=	e_afalg.o e_afalg_err.o

SRC= $(LIBSRC)

top:
	(cd $(TOP); $(MAKE) DIRS=engines sub_all)

all: errors lib

errors:
	$(PERL) $(TOP)/util/mkerr.pl -conf e_afalg.ec -nostatic -write $(SRC)

lib: $(LIBOBJ)
	@if [ "$(DYNAMIC_ENGINES)" = 1 ]; then \
		$(MAKE) -f $(TOP)/Makefile.shared -e \
			LIBNAME=$(LIBNAME) \
			LIBEXTRAS='$(LIBOBJ)' \
			LIBDEPS='-L$(TOP) -lcrypto' \
			link_dso.$(SHLIB_TARGET); \
	else \
		$(AR) $(LIB) $(LIBOBJ); \
	fi
	@touch lib

install:
	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
	@if [ -n "$(SHARED_LIBS)" ]; then \
		set -e; \
		$(PERL) $(TOP)/util/mkdir-p.pl $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines; \
		cp $(LIBNAME)$(DSO_EXT) $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$(LIBNAME)$(DSO_EXT).new; \
		chmod 555 $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$(LIBNAME)$(DSO_EXT).new; \
		mv -f $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$(LIBNAME)$(DSO_EXT).new $(DESTDIR)$(INSTALLTOP)/$(LIBDIR)/engines/$(LIBNAME)$(DSO_EXT); \
	fi


depend:
	@[ -z "$(THIS)" ] || $(TOP)/util/domd $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) $(TESTLIBSRC)

files:
	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO

clean:
	rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff *.so *.dll *.dylib

# DO NOT DELETE THIS LINE -- make depend depends on it.
e_afalg.o: e_afalg.c ../../include/openssl/engine.h \
 ../../include/openssl/opensslconf.h ../../include/openssl/bn.h \
 ../../include/openssl/e_os2.h ../../include/openssl/ossl_typ.h \
 ../../include/openssl/crypto.h ../../include/openssl/stack.h \
 ../../include/openssl/safestack.h ../../include/openssl/opensslv.h \
 ../../include/openssl/symhacks.h ../../include/openssl/rsa.h \
 ../../include/openssl/asn1.h ../../include/openssl/bio.h \
 ../../include/openssl/dsa.h ../../include/openssl/dh.h \
 ../../include/openssl/ec.h ../../include/openssl/rand.h \
 ../../include/openssl/ui.h ../../include/openssl/err.h \
 ../../include/openssl/lhash.h ../../include/openssl/x509.h \
 ../../include/openssl/buffer.h ../../include/openssl/evp.h \
 ../../include/openssl/objects.h ../../include/openssl/obj_mac.h \
 ../../include/openssl/sha.h ../../include/openssl/x509_vfy.h \
 ../../include/openssl/pkcs7.h ../../include/openssl/async.h e_afalg.h \
 e_afalg_err.h