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