make depend
[openssl.git] / fips / aes / Makefile
1 #
2 # OpenSSL/fips/aes/Makefile
3 #
4
5 DIR=    aes
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 ASFLAGS= $(INCLUDES) $(ASFLAG)
19 AFLAGS= $(ASFLAGS)
20
21 CFLAGS= $(INCLUDES) $(CFLAG)
22
23 GENERAL=Makefile
24 TEST=fips_aesavs.c fips_gcmtest.c
25 APPS=
26
27 LIB=$(TOP)/libcrypto.a
28 LIBSRC=fips_aes_selftest.c
29 LIBOBJ=fips_aes_selftest.o
30
31 SRC= $(LIBSRC)
32
33 EXHEADER=
34 HEADER=
35
36 ALL=    $(GENERAL) $(SRC) $(HEADER)
37
38 top:
39         (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all)
40
41 all:    lib
42
43 lib:    $(LIBOBJ)
44         @echo $(LIBOBJ) > lib
45
46 files:
47         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
48
49 links:
50         @$(PERL) $(TOP)/util/mklink.pl $(TOP)/include/openssl $(EXHEADER)
51         @$(PERL) $(TOP)/util/mklink.pl $(TOP)/test $(TEST)
52         @$(PERL) $(TOP)/util/mklink.pl $(TOP)/apps $(APPS)
53
54 install:
55         @headerlist="$(EXHEADER)"; for i in $$headerlist; \
56         do  \
57           (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
58           chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
59         done
60
61 tags:
62         ctags $(SRC)
63
64 tests:
65
66 fips_test:
67         -find ../testvectors/aes/req -name '*.req' > testlist
68         -rm -rf ../testvectors/aes/rsp
69         mkdir ../testvectors/aes/rsp
70         if [ -s testlist ]; then $(TOP)/util/shlib_wrap.sh $(TOP)/test/fips_aesavs -d testlist; fi
71
72 lint:
73         lint -DLINT $(INCLUDES) $(SRC)>fluff
74
75 depend:
76         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) \
77                 $(SRC) $(TEST)
78
79 dclean:
80         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
81         mv -f Makefile.new $(MAKEFILE)
82
83 clean:
84         rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff testlist
85 # DO NOT DELETE THIS LINE -- make depend depends on it.
86
87 fips_aes_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
88 fips_aes_selftest.o: ../../include/openssl/crypto.h
89 fips_aes_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
90 fips_aes_selftest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
91 fips_aes_selftest.o: ../../include/openssl/lhash.h
92 fips_aes_selftest.o: ../../include/openssl/obj_mac.h
93 fips_aes_selftest.o: ../../include/openssl/objects.h
94 fips_aes_selftest.o: ../../include/openssl/opensslconf.h
95 fips_aes_selftest.o: ../../include/openssl/opensslv.h
96 fips_aes_selftest.o: ../../include/openssl/ossl_typ.h
97 fips_aes_selftest.o: ../../include/openssl/safestack.h
98 fips_aes_selftest.o: ../../include/openssl/stack.h
99 fips_aes_selftest.o: ../../include/openssl/symhacks.h ../fips_locl.h
100 fips_aes_selftest.o: fips_aes_selftest.c
101 fips_aesavs.o: ../../e_os.h ../../include/openssl/aes.h
102 fips_aesavs.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
103 fips_aesavs.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
104 fips_aesavs.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
105 fips_aesavs.o: ../../include/openssl/err.h ../../include/openssl/evp.h
106 fips_aesavs.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
107 fips_aesavs.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
108 fips_aesavs.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
109 fips_aesavs.o: ../../include/openssl/opensslconf.h
110 fips_aesavs.o: ../../include/openssl/opensslv.h
111 fips_aesavs.o: ../../include/openssl/ossl_typ.h
112 fips_aesavs.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
113 fips_aesavs.o: ../../include/openssl/symhacks.h ../fips_utl.h fips_aesavs.c
114 fips_gcmtest.o: ../../include/openssl/aes.h ../../include/openssl/asn1.h
115 fips_gcmtest.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
116 fips_gcmtest.o: ../../include/openssl/crypto.h ../../include/openssl/dsa.h
117 fips_gcmtest.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
118 fips_gcmtest.o: ../../include/openssl/err.h ../../include/openssl/evp.h
119 fips_gcmtest.o: ../../include/openssl/fips.h ../../include/openssl/fips_rand.h
120 fips_gcmtest.o: ../../include/openssl/hmac.h ../../include/openssl/lhash.h
121 fips_gcmtest.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
122 fips_gcmtest.o: ../../include/openssl/opensslconf.h
123 fips_gcmtest.o: ../../include/openssl/opensslv.h
124 fips_gcmtest.o: ../../include/openssl/ossl_typ.h
125 fips_gcmtest.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
126 fips_gcmtest.o: ../../include/openssl/symhacks.h ../fips_utl.h fips_gcmtest.c