1#
2# OpenSSL/fips/aes/Makefile
3#
4
5DIR=	aes
6TOP=	../..
7CC=	cc
8INCLUDES=
9CFLAG=-g
10INSTALL_PREFIX=
11OPENSSLDIR=     /usr/local/ssl
12INSTALLTOP=/usr/local/ssl
13MAKEDEPPROG=	makedepend
14MAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
15MAKEFILE=	Makefile
16AR=		ar r
17
18ASFLAGS= $(INCLUDES) $(ASFLAG)
19AFLAGS= $(ASFLAGS)
20
21CFLAGS= $(INCLUDES) $(CFLAG)
22
23GENERAL=Makefile
24TEST=fips_aesavs.c
25APPS=
26
27LIB=$(TOP)/libcrypto.a
28LIBSRC=fips_aes_selftest.c
29LIBOBJ=fips_aes_selftest.o
30
31SRC= $(LIBSRC)
32
33EXHEADER=
34HEADER=
35
36ALL=    $(GENERAL) $(SRC) $(HEADER)
37
38top:
39	(cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) sub_all)
40
41all:	lib
42
43lib:	$(LIBOBJ)
44	@echo $(LIBOBJ) > lib
45
46files:
47	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
48
49links:
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
54install:
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
61tags:
62	ctags $(SRC)
63
64tests:
65
66fips_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
72lint:
73	lint -DLINT $(INCLUDES) $(SRC)>fluff
74
75depend:
76	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) \
77		$(SRC) $(TEST)
78
79dclean:
80	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
81	mv -f Makefile.new $(MAKEFILE)
82
83clean:
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
87fips_aes_selftest.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
88fips_aes_selftest.o: ../../include/openssl/crypto.h
89fips_aes_selftest.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
90fips_aes_selftest.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
91fips_aes_selftest.o: ../../include/openssl/lhash.h
92fips_aes_selftest.o: ../../include/openssl/obj_mac.h
93fips_aes_selftest.o: ../../include/openssl/objects.h
94fips_aes_selftest.o: ../../include/openssl/opensslconf.h
95fips_aes_selftest.o: ../../include/openssl/opensslv.h
96fips_aes_selftest.o: ../../include/openssl/ossl_typ.h
97fips_aes_selftest.o: ../../include/openssl/safestack.h
98fips_aes_selftest.o: ../../include/openssl/stack.h
99fips_aes_selftest.o: ../../include/openssl/symhacks.h fips_aes_selftest.c
100fips_aesavs.o: ../../e_os.h ../../include/openssl/aes.h
101fips_aesavs.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
102fips_aesavs.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
103fips_aesavs.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
104fips_aesavs.o: ../../include/openssl/evp.h ../../include/openssl/fips.h
105fips_aesavs.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
106fips_aesavs.o: ../../include/openssl/objects.h
107fips_aesavs.o: ../../include/openssl/opensslconf.h
108fips_aesavs.o: ../../include/openssl/opensslv.h
109fips_aesavs.o: ../../include/openssl/ossl_typ.h
110fips_aesavs.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
111fips_aesavs.o: ../../include/openssl/symhacks.h ../fips_utl.h fips_aesavs.c
112