1193645Ssimon#
2193645Ssimon# OpenSSL/fips/rsa/Makefile
3193645Ssimon#
4193645Ssimon
5193645SsimonDIR=	rsa
6193645SsimonTOP=	../..
7193645SsimonCC=	cc
8193645SsimonINCLUDES=
9193645SsimonCFLAG=-g
10193645SsimonINSTALL_PREFIX=
11193645SsimonOPENSSLDIR=     /usr/local/ssl
12193645SsimonINSTALLTOP=/usr/local/ssl
13193645SsimonMAKEDEPPROG=	makedepend
14193645SsimonMAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
15193645SsimonMAKEFILE=	Makefile
16193645SsimonAR=		ar r
17193645Ssimon
18193645SsimonCFLAGS= $(INCLUDES) $(CFLAG)
19193645Ssimon
20193645SsimonGENERAL=Makefile
21193645SsimonTEST= fips_rsavtest.c fips_rsastest.c fips_rsagtest.c
22193645SsimonAPPS=
23193645Ssimon
24193645SsimonLIB=$(TOP)/libcrypto.a
25193645SsimonLIBSRC=fips_rsa_eay.c fips_rsa_gen.c fips_rsa_selftest.c fips_rsa_x931g.c \
26193645Ssimon	fips_rsa_sign.c fips_rsa_lib.c
27193645SsimonLIBOBJ=fips_rsa_eay.o fips_rsa_gen.o fips_rsa_selftest.o fips_rsa_x931g.o \
28193645Ssimon	fips_rsa_sign.o fips_rsa_lib.o
29193645Ssimon
30193645SsimonSRC= $(LIBSRC)
31193645Ssimon
32193645SsimonEXHEADER=
33193645SsimonHEADER=	$(EXHEADER)
34193645Ssimon
35193645SsimonALL=    $(GENERAL) $(SRC) $(HEADER)
36193645Ssimon
37193645Ssimontop:
38193645Ssimon	(cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all)
39193645Ssimon
40193645Ssimonall:	lib
41193645Ssimon
42193645Ssimonlib:	$(LIBOBJ)
43193645Ssimon	@echo $(LIBOBJ) > lib
44193645Ssimon
45193645Ssimonfiles:
46193645Ssimon	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
47193645Ssimon
48193645Ssimonlinks:
49193645Ssimon	@$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
50193645Ssimon	@$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
51193645Ssimon	@$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS)
52193645Ssimon
53193645Ssimoninstall:
54193645Ssimon	@headerlist="$(EXHEADER)"; for i in $$headerlist; \
55193645Ssimon	do \
56193645Ssimon	  (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
57193645Ssimon	  chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
58193645Ssimon	done
59193645Ssimon
60193645Ssimontags:
61193645Ssimon	ctags $(SRC)
62193645Ssimon
63193645Ssimontests:
64193645Ssimon
65193645SsimonQ=../testvectors/rsa/req
66193645SsimonA=../testvectors/rsa/rsp
67193645SsimonQ62=../testvectors/rsa_salt_62/req
68193645SsimonA62=../testvectors/rsa_salt_62/rsp
69193645Ssimon
70193645Ssimonfips_test:
71193645Ssimon	-rm -rf $(A) $(A62)
72193645Ssimon	mkdir $(A) $(A62)
73193645Ssimon	if [ -f $(Q)/SigGen15.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsastest < $(Q)/SigGen15.req  > $(A)/SigGen15.rsp; fi
74193645Ssimon	if [ -f $(Q)/SigVer15.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsavtest < $(Q)/SigVer15.req > $(A)/SigVer15.rsp; fi
75193645Ssimon	if [ -f $(Q)/SigGenPSS.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsastest -saltlen 0 < $(Q)/SigGenPSS.req > $(A)/SigGenPSS.rsp; fi
76193645Ssimon	if [ -f $(Q)/SigVerPSS.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsavtest -saltlen 0 < $(Q)/SigVerPSS.req > $(A)/SigVerPSS.rsp; fi
77193645Ssimon	if [ -f $(Q)/SigGenRSA.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsastest -x931 < $(Q)/SigGenRSA.req > $(A)/SigGenRSA.rsp; fi
78193645Ssimon	if [ -f $(Q)/SigVerRSA.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsavtest -x931 < $(Q)/SigVerRSA.req > $(A)/SigVerRSA.rsp; fi
79193645Ssimon	if [ -f $(Q62)/SigGenPSS.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsastest -saltlen 62 < $(Q62)/SigGenPSS.req >$(A62)/SigGenPSS.rsp; fi
80193645Ssimon	if [ -f $(Q62)/SigVerPSS.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsavtest -saltlen 62 <$(Q62)/SigVerPSS.req >$(A62)/SigVerPSS.rsp; fi
81193645Ssimon	if [ -f $(Q)/KeyGenRSA.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_rsagtest < $(Q)/KeyGenRSA.req > $(A)/KeyGenRSA.rsp; fi
82193645Ssimon
83193645Ssimonlint:
84193645Ssimon	lint -DLINT $(INCLUDES) $(SRC)>fluff
85193645Ssimon
86193645Ssimondepend:
87193645Ssimon	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
88193645Ssimon
89193645Ssimondclean:
90193645Ssimon	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
91193645Ssimon	mv -f Makefile.new $(MAKEFILE)
92193645Ssimon
93193645Ssimonclean:
94193645Ssimon	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
95193645Ssimon# DO NOT DELETE THIS LINE -- make depend depends on it.
96193645Ssimon
97193645Ssimonfips_rsa_eay.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
98193645Ssimonfips_rsa_eay.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
99193645Ssimonfips_rsa_eay.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
100193645Ssimonfips_rsa_eay.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
101193645Ssimonfips_rsa_eay.o: ../../include/openssl/opensslconf.h
102193645Ssimonfips_rsa_eay.o: ../../include/openssl/opensslv.h
103193645Ssimonfips_rsa_eay.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
104193645Ssimonfips_rsa_eay.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
105193645Ssimonfips_rsa_eay.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
106193645Ssimonfips_rsa_eay.o: fips_rsa_eay.c
107193645Ssimonfips_rsa_gen.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
108193645Ssimonfips_rsa_gen.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
109193645Ssimonfips_rsa_gen.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
110193645Ssimonfips_rsa_gen.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
111193645Ssimonfips_rsa_gen.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
112193645Ssimonfips_rsa_gen.o: ../../include/openssl/objects.h
113193645Ssimonfips_rsa_gen.o: ../../include/openssl/opensslconf.h
114193645Ssimonfips_rsa_gen.o: ../../include/openssl/opensslv.h
115193645Ssimonfips_rsa_gen.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h
116193645Ssimonfips_rsa_gen.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
117193645Ssimonfips_rsa_gen.o: ../../include/openssl/symhacks.h ../fips_locl.h fips_rsa_gen.c
118193645Ssimonfips_rsa_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
119193645Ssimonfips_rsa_lib.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
120193645Ssimonfips_rsa_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
121193645Ssimonfips_rsa_lib.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
122193645Ssimonfips_rsa_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
123193645Ssimonfips_rsa_lib.o: ../../include/openssl/objects.h
124193645Ssimonfips_rsa_lib.o: ../../include/openssl/opensslconf.h
125193645Ssimonfips_rsa_lib.o: ../../include/openssl/opensslv.h
126193645Ssimonfips_rsa_lib.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h
127193645Ssimonfips_rsa_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
128193645Ssimonfips_rsa_lib.o: ../../include/openssl/symhacks.h fips_rsa_lib.c
129193645Ssimonfips_rsa_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
130193645Ssimonfips_rsa_selftest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
131193645Ssimonfips_rsa_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
132193645Ssimonfips_rsa_selftest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
133193645Ssimonfips_rsa_selftest.o: ../../include/openssl/lhash.h
134193645Ssimonfips_rsa_selftest.o: ../../include/openssl/obj_mac.h
135193645Ssimonfips_rsa_selftest.o: ../../include/openssl/objects.h
136193645Ssimonfips_rsa_selftest.o: ../../include/openssl/opensslconf.h
137193645Ssimonfips_rsa_selftest.o: ../../include/openssl/opensslv.h
138193645Ssimonfips_rsa_selftest.o: ../../include/openssl/ossl_typ.h
139193645Ssimonfips_rsa_selftest.o: ../../include/openssl/rsa.h
140193645Ssimonfips_rsa_selftest.o: ../../include/openssl/safestack.h
141193645Ssimonfips_rsa_selftest.o: ../../include/openssl/stack.h
142193645Ssimonfips_rsa_selftest.o: ../../include/openssl/symhacks.h fips_rsa_selftest.c
143193645Ssimonfips_rsa_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
144193645Ssimonfips_rsa_sign.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
145193645Ssimonfips_rsa_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h
146193645Ssimonfips_rsa_sign.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
147193645Ssimonfips_rsa_sign.o: ../../include/openssl/obj_mac.h
148193645Ssimonfips_rsa_sign.o: ../../include/openssl/objects.h
149193645Ssimonfips_rsa_sign.o: ../../include/openssl/opensslconf.h
150193645Ssimonfips_rsa_sign.o: ../../include/openssl/opensslv.h
151193645Ssimonfips_rsa_sign.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h
152193645Ssimonfips_rsa_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
153193645Ssimonfips_rsa_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
154193645Ssimonfips_rsa_sign.o: fips_rsa_sign.c
155193645Ssimonfips_rsa_x931g.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
156193645Ssimonfips_rsa_x931g.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
157193645Ssimonfips_rsa_x931g.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
158193645Ssimonfips_rsa_x931g.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
159193645Ssimonfips_rsa_x931g.o: ../../include/openssl/opensslconf.h
160193645Ssimonfips_rsa_x931g.o: ../../include/openssl/opensslv.h
161193645Ssimonfips_rsa_x931g.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rsa.h
162193645Ssimonfips_rsa_x931g.o: ../../include/openssl/safestack.h
163193645Ssimonfips_rsa_x931g.o: ../../include/openssl/stack.h
164193645Ssimonfips_rsa_x931g.o: ../../include/openssl/symhacks.h fips_rsa_x931g.c
165193645Ssimonfips_rsagtest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
166193645Ssimonfips_rsagtest.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
167193645Ssimonfips_rsagtest.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
168193645Ssimonfips_rsagtest.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
169193645Ssimonfips_rsagtest.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
170193645Ssimonfips_rsagtest.o: ../../include/openssl/err.h ../../include/openssl/evp.h
171193645Ssimonfips_rsagtest.o: ../../include/openssl/fips.h ../../include/openssl/hmac.h
172193645Ssimonfips_rsagtest.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
173193645Ssimonfips_rsagtest.o: ../../include/openssl/objects.h
174193645Ssimonfips_rsagtest.o: ../../include/openssl/opensslconf.h
175193645Ssimonfips_rsagtest.o: ../../include/openssl/opensslv.h
176193645Ssimonfips_rsagtest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
177193645Ssimonfips_rsagtest.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
178193645Ssimonfips_rsagtest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
179193645Ssimonfips_rsagtest.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
180193645Ssimonfips_rsagtest.o: ../../include/openssl/x509_vfy.h
181193645Ssimonfips_rsagtest.o: ../../include/openssl/x509v3.h ../fips_utl.h fips_rsagtest.c
182193645Ssimonfips_rsastest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
183193645Ssimonfips_rsastest.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
184193645Ssimonfips_rsastest.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
185193645Ssimonfips_rsastest.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
186193645Ssimonfips_rsastest.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
187193645Ssimonfips_rsastest.o: ../../include/openssl/err.h ../../include/openssl/evp.h
188193645Ssimonfips_rsastest.o: ../../include/openssl/fips.h ../../include/openssl/hmac.h
189193645Ssimonfips_rsastest.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
190193645Ssimonfips_rsastest.o: ../../include/openssl/objects.h
191193645Ssimonfips_rsastest.o: ../../include/openssl/opensslconf.h
192193645Ssimonfips_rsastest.o: ../../include/openssl/opensslv.h
193193645Ssimonfips_rsastest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
194193645Ssimonfips_rsastest.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
195193645Ssimonfips_rsastest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
196193645Ssimonfips_rsastest.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
197193645Ssimonfips_rsastest.o: ../../include/openssl/x509_vfy.h
198193645Ssimonfips_rsastest.o: ../../include/openssl/x509v3.h ../fips_utl.h fips_rsastest.c
199193645Ssimonfips_rsavtest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
200193645Ssimonfips_rsavtest.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
201193645Ssimonfips_rsavtest.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
202193645Ssimonfips_rsavtest.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
203193645Ssimonfips_rsavtest.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
204193645Ssimonfips_rsavtest.o: ../../include/openssl/err.h ../../include/openssl/evp.h
205193645Ssimonfips_rsavtest.o: ../../include/openssl/fips.h ../../include/openssl/hmac.h
206193645Ssimonfips_rsavtest.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
207193645Ssimonfips_rsavtest.o: ../../include/openssl/objects.h
208193645Ssimonfips_rsavtest.o: ../../include/openssl/opensslconf.h
209193645Ssimonfips_rsavtest.o: ../../include/openssl/opensslv.h
210193645Ssimonfips_rsavtest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pkcs7.h
211193645Ssimonfips_rsavtest.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
212193645Ssimonfips_rsavtest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
213193645Ssimonfips_rsavtest.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
214193645Ssimonfips_rsavtest.o: ../../include/openssl/x509_vfy.h
215193645Ssimonfips_rsavtest.o: ../../include/openssl/x509v3.h ../fips_utl.h fips_rsavtest.c
216