make update
[openssl.git] / engines / ccgost / Makefile
1 DIR=ccgost
2 TOP=../..
3 CC=cc
4 INCLUDES= -I../../include
5 CFLAG=-g
6 MAKEFILE= Makefile
7 AR= ar r
8 CFLAGS= $(INCLUDES) $(CFLAG)
9 LIB=$(TOP)/libcrypto.a
10
11 LIBSRC= gost2001.c gost2001_keyx.c gost89.c gost94_keyx.c gost_ameth.c gost_asn1.c gost_crypt.c gost_ctl.c gost_eng.c gosthash.c gost_keywrap.c gost_md.c gost_params.c gost_pmeth.c gost_sign.c
12
13 LIBOBJ= e_gost_err.o gost2001_keyx.o gost2001.o gost89.o gost94_keyx.o gost_ameth.o gost_asn1.o gost_crypt.o gost_ctl.o gost_eng.o gosthash.o gost_keywrap.o gost_md.o gost_params.o gost_pmeth.o gost_sign.o
14
15 SRC=$(LIBSRC)
16
17 LIBNAME=gost
18
19 top: 
20         (cd $(TOP); $(MAKE) DIRS=engines EDIRS=$(DIR) sub_all)
21
22 all: lib
23
24 tags:
25         ctags $(SRC)
26
27 errors:
28         $(PERL) ../../util/mkerr.pl -conf gost.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 [ "$(PLATFORM)" != "Cygwin" ]; then \
49                         case "$(CFLAGS)" in \
50                         *DSO_BEOS*) sfx=".so";; \
51                         *DSO_DLFCN*) sfx=`expr "$(SHLIB_EXT)" : '.*\(\.[a-z][a-z]*\)' \| ".so"`;; \
52                         *DSO_DL*) sfx=".sl";; \
53                         *DSO_WIN32*) sfx="eay32.dll"; pfx=;; \
54                         *) sfx=".bad";; \
55                         esac; \
56                         cp $${pfx}$(LIBNAME)$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new; \
57                 else \
58                         sfx=".so"; \
59                         cp cyg$(LIBNAME).dll $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new; \
60                 fi; \
61                 chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new; \
62                 mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$${pfx}$(LIBNAME)$$sfx; \
63         fi
64
65 links:
66
67 tests:
68
69 depend:
70         @if [ -z "$(THIS)" ]; then \
71             $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; \
72         else \
73             $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC); \
74         fi
75
76 files:
77
78
79
80 lint:
81         lint -DLINT $(INCLUDES) $(SRC)>fluff
82
83 dclean:
84         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
85         mv -f Makefile.new $(MAKEFILE)
86
87 clean:
88         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff *.so *.sl *.dll
89
90 # DO NOT DELETE THIS LINE -- make depend depends on it.
91
92 gost2001.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
93 gost2001.o: ../../include/openssl/bio.h ../../include/openssl/engine.h
94 gost2001.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
95 gost2001.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
96 gost2001.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
97 gost2001.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
98 gost2001.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
99 gost2001.o: e_gost_err.h gost2001.c gost89.h gost_lcl.h gost_params.h
100 gost2001.o: gosthash.h
101 gost2001_keyx.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
102 gost2001_keyx.o: ../../include/openssl/bio.h ../../include/openssl/engine.h
103 gost2001_keyx.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
104 gost2001_keyx.o: ../../include/openssl/objects.h ../../include/openssl/pkcs7.h
105 gost2001_keyx.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
106 gost2001_keyx.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
107 gost2001_keyx.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost2001_keyx.c
108 gost2001_keyx.o: gost2001_keyx.h gost89.h gost_keywrap.h gost_lcl.h gosthash.h
109 gost89.o: gost89.c gost89.h
110 gost94_keyx.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
111 gost94_keyx.o: ../../include/openssl/bio.h ../../include/openssl/engine.h
112 gost94_keyx.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
113 gost94_keyx.o: ../../include/openssl/objects.h ../../include/openssl/pkcs7.h
114 gost94_keyx.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
115 gost94_keyx.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
116 gost94_keyx.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost89.h
117 gost94_keyx.o: gost94_keyx.c gost_keywrap.h gost_lcl.h gosthash.h
118 gost_ameth.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
119 gost_ameth.o: ../../include/openssl/bio.h ../../include/openssl/cms.h
120 gost_ameth.o: ../../include/openssl/engine.h ../../include/openssl/err.h
121 gost_ameth.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
122 gost_ameth.o: ../../include/openssl/objects.h ../../include/openssl/pkcs7.h
123 gost_ameth.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
124 gost_ameth.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
125 gost_ameth.o: e_gost_err.h gost89.h gost_ameth.c gost_lcl.h gost_params.h
126 gost_ameth.o: gosthash.h
127 gost_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
128 gost_asn1.o: ../../include/openssl/bio.h ../../include/openssl/engine.h
129 gost_asn1.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
130 gost_asn1.o: ../../include/openssl/objects.h ../../include/openssl/pkcs7.h
131 gost_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
132 gost_asn1.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
133 gost_asn1.o: gost89.h gost_asn1.c gost_lcl.h gosthash.h
134 gost_crypt.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
135 gost_crypt.o: ../../include/openssl/bio.h ../../include/openssl/engine.h
136 gost_crypt.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
137 gost_crypt.o: ../../include/openssl/objects.h ../../include/openssl/pkcs7.h
138 gost_crypt.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
139 gost_crypt.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
140 gost_crypt.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost89.h
141 gost_crypt.o: gost_crypt.c gost_lcl.h gosthash.h
142 gost_ctl.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
143 gost_ctl.o: ../../include/openssl/bio.h ../../include/openssl/engine.h
144 gost_ctl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
145 gost_ctl.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
146 gost_ctl.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
147 gost_ctl.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
148 gost_ctl.o: ../../include/openssl/x509_vfy.h gost89.h gost_ctl.c gost_lcl.h
149 gost_ctl.o: gosthash.h
150 gost_eng.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
151 gost_eng.o: ../../include/openssl/bio.h ../../include/openssl/engine.h
152 gost_eng.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
153 gost_eng.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
154 gost_eng.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
155 gost_eng.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
156 gost_eng.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost89.h gost_eng.c
157 gost_eng.o: gost_lcl.h gosthash.h
158 gost_keywrap.o: gost89.h gost_keywrap.c gost_keywrap.h
159 gost_md.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
160 gost_md.o: ../../include/openssl/bio.h ../../include/openssl/engine.h
161 gost_md.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
162 gost_md.o: ../../include/openssl/objects.h ../../include/openssl/pkcs7.h
163 gost_md.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
164 gost_md.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
165 gost_md.o: e_gost_err.h gost89.h gost_lcl.h gost_md.c gosthash.h
166 gost_params.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
167 gost_params.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
168 gost_params.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
169 gost_params.o: gost_params.c gost_params.h
170 gost_pmeth.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
171 gost_pmeth.o: ../../include/openssl/bio.h ../../include/openssl/conf.h
172 gost_pmeth.o: ../../include/openssl/engine.h ../../include/openssl/lhash.h
173 gost_pmeth.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
174 gost_pmeth.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
175 gost_pmeth.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
176 gost_pmeth.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h
177 gost_pmeth.o: e_gost_err.h gost89.h gost_lcl.h gost_params.h gost_pmeth.c
178 gost_pmeth.o: gosthash.h
179 gost_sign.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
180 gost_sign.o: ../../include/openssl/bio.h ../../include/openssl/engine.h
181 gost_sign.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
182 gost_sign.o: ../../include/openssl/objects.h ../../include/openssl/pkcs7.h
183 gost_sign.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
184 gost_sign.o: ../../include/openssl/stack.h ../../include/openssl/x509.h
185 gost_sign.o: ../../include/openssl/x509_vfy.h e_gost_err.h gost89.h gost_lcl.h
186 gost_sign.o: gost_params.h gost_sign.c gosthash.h
187 gosthash.o: gost89.h gosthash.c gosthash.h