2 # SSLeay/fips/rand/Makefile
11 OPENSSLDIR= /usr/local/ssl
12 INSTALLTOP=/usr/local/ssl
13 MAKEDEPPROG= makedepend
14 MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
18 CFLAGS= $(INCLUDES) $(CFLAG)
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC=fips_rand.c fips_rand_selftest.c
26 LIBOBJ=fips_rand.o fips_rand_selftest.o
33 ALL= $(GENERAL) $(SRC) $(HEADER)
36 (cd $(TOP); $(MAKE) DIRS=fips SDIRS=$(DIR) sub_all)
41 $(AR) $(LIB) $(LIBOBJ)
42 $(RANLIB) $(LIB) || echo Never mind.
46 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
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)
54 @headerlist="$(EXHEADER)"; for i in $$headerlist; \
56 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
57 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
66 (cd $(TOP); $(MAKE) DIRS=fips FDIRS=$(DIR) TARGET=fips_rngvs sub_target)
68 fips_rngvs: fips_rngvs.o $(TOP)/libcrypto.a
69 $(CC) $(CFLAGS) -o fips_rngvs fips_rngvs.o $(PEX_LIBS) $(TOP)/libcrypto.a $(EX_LIBS)
70 TOP=$(TOP) $(TOP)/fips/openssl_fips_fingerprint $(TOP)/libcrypto.a fips_rngvs
72 Q=../testvectors/rng/req
73 A=../testvectors/rng/rsp
75 fips_test: top_fips_rngvs
78 ./fips_rngvs mct < $(Q)/MCT.req > $(A)/MCT.rsp
79 ./fips_rngvs vst < $(Q)/VST.req > $(A)/VST.rsp
82 lint -DLINT $(INCLUDES) $(SRC)>fluff
85 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
88 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
89 mv -f Makefile.new $(MAKEFILE)
92 rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
94 # DO NOT DELETE THIS LINE -- make depend depends on it.
96 fips_rand.o: ../../e_os.h ../../include/openssl/bio.h
97 fips_rand.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
98 fips_rand.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
99 fips_rand.o: ../../include/openssl/err.h ../../include/openssl/fips_rand.h
100 fips_rand.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
101 fips_rand.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
102 fips_rand.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
103 fips_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
104 fips_rand.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
105 fips_rand.o: fips_rand.c
106 fips_randtest.o: ../../e_os.h ../../include/openssl/bio.h
107 fips_randtest.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
108 fips_randtest.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
109 fips_randtest.o: ../../include/openssl/err.h ../../include/openssl/fips_rand.h
110 fips_randtest.o: ../../include/openssl/lhash.h
111 fips_randtest.o: ../../include/openssl/opensslconf.h
112 fips_randtest.o: ../../include/openssl/opensslv.h
113 fips_randtest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
114 fips_randtest.o: ../../include/openssl/safestack.h
115 fips_randtest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
116 fips_randtest.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
117 fips_randtest.o: fips_randtest.c