Add usage messages.
[openssl.git] / fips / dsa / Makefile
1 #
2 # OpenSSL/fips/dsa/Makefile
3 #
4
5 DIR=    dsa
6 TOP=    ../..
7 CC=     cc
8 INCLUDES=
9 CFLAG=-g
10 INSTALL_PREFIX=
11 OPENSSLDIR=     /usr/local/ssl
12 INSTALLTOP=/usr/local/ssl
13 MAKEDEPPROG=    makedepend
14 MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
15 MAKEFILE=       Makefile
16 AR=             ar r
17
18 CFLAGS= $(INCLUDES) $(CFLAG)
19
20 GENERAL=Makefile
21 TEST=fips_dsatest.c fips_dssvs.c
22 APPS=
23
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC= fips_dsa_selftest.c \
26         fips_dsa_lib.c fips_dsa_sign.c
27 LIBOBJ= fips_dsa_selftest.o \
28         fips_dsa_lib.o fips_dsa_sign.o
29
30 SRC= $(LIBSRC)
31
32 EXHEADER=
33 HEADER= $(EXHEADER)
34
35 ALL=    $(GENERAL) $(SRC) $(HEADER)
36
37 top:
38         (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all)
39
40 all:    lib
41
42 lib:    $(LIBOBJ)
43         @echo $(LIBOBJ) > lib
44
45 files:
46         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
47
48 links:
49         @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
50         @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
51         @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS)
52
53 install:
54         @headerlist="$(EXHEADER)"; for i in $$headerlist; \
55         do  \
56           (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
57           chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
58         done
59
60 tags:
61         ctags $(SRC)
62
63 tests:
64
65 Q=../testvectors/dsa/req
66 A=../testvectors/dsa/rsp
67
68 fips_test:
69         -rm -rf $A
70         mkdir $A
71         if [ -f $(Q)/PQGGen.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_dssvs pqg < $(Q)/PQGGen.req > $(A)/PQGGen.rsp; fi
72         if [ -f $(Q)/KeyPair.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_dssvs keypair < $(Q)/KeyPair.req > $(A)/KeyPair.rsp; fi
73         if [ -f $(Q)/SigGen.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_dssvs siggen < $(Q)/SigGen.req > $(A)/SigGen.rsp; fi
74         if [ -f $(Q)/SigVer.req ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_dssvs sigver < $Q/SigVer.req > $A/SigVer.rsp; fi
75
76 lint:
77         lint -DLINT $(INCLUDES) $(SRC)>fluff
78
79 depend:
80         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
81
82 dclean:
83         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
84         mv -f Makefile.new $(MAKEFILE)
85
86 clean:
87         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
88 # DO NOT DELETE THIS LINE -- make depend depends on it.
89
90 fips_dsa_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
91 fips_dsa_lib.o: ../../include/openssl/crypto.h ../../include/openssl/dsa.h
92 fips_dsa_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h
93 fips_dsa_lib.o: ../../include/openssl/opensslconf.h
94 fips_dsa_lib.o: ../../include/openssl/opensslv.h
95 fips_dsa_lib.o: ../../include/openssl/ossl_typ.h
96 fips_dsa_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
97 fips_dsa_lib.o: ../../include/openssl/symhacks.h fips_dsa_lib.c
98 fips_dsa_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
99 fips_dsa_selftest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
100 fips_dsa_selftest.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
101 fips_dsa_selftest.o: ../../include/openssl/err.h ../../include/openssl/evp.h
102 fips_dsa_selftest.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
103 fips_dsa_selftest.o: ../../include/openssl/obj_mac.h
104 fips_dsa_selftest.o: ../../include/openssl/objects.h
105 fips_dsa_selftest.o: ../../include/openssl/opensslconf.h
106 fips_dsa_selftest.o: ../../include/openssl/opensslv.h
107 fips_dsa_selftest.o: ../../include/openssl/ossl_typ.h
108 fips_dsa_selftest.o: ../../include/openssl/safestack.h
109 fips_dsa_selftest.o: ../../include/openssl/stack.h
110 fips_dsa_selftest.o: ../../include/openssl/symhacks.h ../fips_locl.h
111 fips_dsa_selftest.o: fips_dsa_selftest.c
112 fips_dsa_sign.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
113 fips_dsa_sign.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
114 fips_dsa_sign.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
115 fips_dsa_sign.o: ../../include/openssl/err.h ../../include/openssl/evp.h
116 fips_dsa_sign.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
117 fips_dsa_sign.o: ../../include/openssl/objects.h
118 fips_dsa_sign.o: ../../include/openssl/opensslconf.h
119 fips_dsa_sign.o: ../../include/openssl/opensslv.h
120 fips_dsa_sign.o: ../../include/openssl/ossl_typ.h
121 fips_dsa_sign.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
122 fips_dsa_sign.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
123 fips_dsa_sign.o: fips_dsa_sign.c
124 fips_dsatest.o: ../../e_os.h ../../include/openssl/aes.h
125 fips_dsatest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
126 fips_dsatest.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
127 fips_dsatest.o: ../../include/openssl/dsa.h ../../include/openssl/e_os2.h
128 fips_dsatest.o: ../../include/openssl/ec.h ../../include/openssl/err.h
129 fips_dsatest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
130 fips_dsatest.o: ../../include/openssl/fips_rand.h ../../include/openssl/hmac.h
131 fips_dsatest.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
132 fips_dsatest.o: ../../include/openssl/objects.h
133 fips_dsatest.o: ../../include/openssl/opensslconf.h
134 fips_dsatest.o: ../../include/openssl/opensslv.h
135 fips_dsatest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
136 fips_dsatest.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
137 fips_dsatest.o: ../../include/openssl/symhacks.h ../fips_utl.h fips_dsatest.c
138 fips_dssvs.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
139 fips_dssvs.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
140 fips_dssvs.o: ../../include/openssl/crypto.h ../../include/openssl/dsa.h
141 fips_dssvs.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
142 fips_dssvs.o: ../../include/openssl/err.h ../../include/openssl/evp.h
143 fips_dssvs.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
144 fips_dssvs.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
145 fips_dssvs.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
146 fips_dssvs.o: ../../include/openssl/opensslconf.h
147 fips_dssvs.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
148 fips_dssvs.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
149 fips_dssvs.o: ../../include/openssl/symhacks.h ../fips_utl.h fips_dssvs.c