1# 2# SSLeay/fips/rand/Makefile 3# 4 5DIR= rand 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= fips_randtest.c 22APPS= 23 24LIB=$(TOP)/libcrypto.a 25LIBSRC=fips_rand.c 26LIBOBJ=fips_rand.o 27 28SRC= $(LIBSRC) 29 30EXHEADER= fips_rand.h 31HEADER= $(EXHEADER) 32 33ALL= $(GENERAL) $(SRC) $(HEADER) 34 35top: 36 (cd $(TOP); $(MAKE) DIRS=fips SDIRS=$(DIR) sub_all) 37 38all: check lib 39 40check: 41 TOP=`pwd`/$(TOP) ../fips_check_sha1 fingerprint.sha1 $(SRC) $(HEADER) 42 43lib: $(LIBOBJ) 44 $(AR) $(LIB) $(LIBOBJ) 45 $(RANLIB) $(LIB) || echo Never mind. 46 @sleep 2; touch lib 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 81# DO NOT DELETE THIS LINE -- make depend depends on it. 82 83fips_rand.o: ../../e_os.h ../../include/openssl/bio.h 84fips_rand.o: ../../include/openssl/crypto.h ../../include/openssl/des.h 85fips_rand.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 86fips_rand.o: ../../include/openssl/err.h ../../include/openssl/fips_rand.h 87fips_rand.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 88fips_rand.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 89fips_rand.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h 90fips_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 91fips_rand.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 92fips_rand.o: fips_rand.c 93fips_randtest.o: ../../e_os.h ../../include/openssl/bio.h 94fips_randtest.o: ../../include/openssl/crypto.h ../../include/openssl/des.h 95fips_randtest.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 96fips_randtest.o: ../../include/openssl/err.h ../../include/openssl/fips_rand.h 97fips_randtest.o: ../../include/openssl/lhash.h 98fips_randtest.o: ../../include/openssl/opensslconf.h 99fips_randtest.o: ../../include/openssl/opensslv.h 100fips_randtest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h 101fips_randtest.o: ../../include/openssl/safestack.h 102fips_randtest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 103fips_randtest.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 104fips_randtest.o: fips_randtest.c 105