Check i before r[i].
[openssl.git] / fips / utl / Makefile
1 #
2 # OpenSSL/fips/utl/Makefile
3 #
4
5 DIR=    utl
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=
22 APPS=
23
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC= fips_err.c fips_md.c fips_enc.c fips_lck.c fips_mem.c
26 LIBOBJ= fips_err.o fips_md.o fips_enc.o fips_lck.o fips_mem.o
27
28 SRC= $(LIBSRC)
29
30 EXHEADER=
31 HEADER= $(EXHEADER)
32
33 ALL=    $(GENERAL) $(SRC) $(HEADER)
34
35 top:
36         (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all)
37
38 all:    lib
39
40 lib:    $(LIBOBJ)
41         @echo $(LIBOBJ) > lib
42
43 files:
44         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
45
46 links:
47         @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
48         @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
49         @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS)
50
51 install:
52         @headerlist="$(EXHEADER)"; for i in $$headerlist; \
53         do  \
54           (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
55           chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
56         done
57
58 tags:
59         ctags $(SRC)
60
61 tests:
62
63 depend:
64         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
65
66 dclean:
67         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
68         mv -f Makefile.new $(MAKEFILE)
69
70 clean:
71         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
72 # DO NOT DELETE THIS LINE -- make depend depends on it.
73
74 fips_enc.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
75 fips_enc.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
76 fips_enc.o: ../../include/openssl/err.h ../../include/openssl/evp.h
77 fips_enc.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
78 fips_enc.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
79 fips_enc.o: ../../include/openssl/opensslconf.h
80 fips_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
81 fips_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
82 fips_enc.o: ../../include/openssl/symhacks.h fips_enc.c
83 fips_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
84 fips_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
85 fips_err.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
86 fips_err.o: ../../include/openssl/opensslconf.h
87 fips_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
88 fips_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
89 fips_err.o: ../../include/openssl/symhacks.h fips_err.c
90 fips_lck.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
91 fips_lck.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
92 fips_lck.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
93 fips_lck.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
94 fips_lck.o: ../../include/openssl/opensslconf.h
95 fips_lck.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
96 fips_lck.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
97 fips_lck.o: ../../include/openssl/symhacks.h fips_lck.c
98 fips_md.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
99 fips_md.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
100 fips_md.o: ../../include/openssl/err.h ../../include/openssl/evp.h
101 fips_md.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
102 fips_md.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
103 fips_md.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
104 fips_md.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
105 fips_md.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
106 fips_md.o: fips_md.c
107 fips_mem.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
108 fips_mem.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
109 fips_mem.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
110 fips_mem.o: ../../include/openssl/opensslconf.h
111 fips_mem.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
112 fips_mem.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
113 fips_mem.o: ../../include/openssl/symhacks.h fips_mem.c