Add OpenSSL 0.9.7e.
[dragonfly.git] / crypto / openssl-0.9.7e / fips / rand / Makefile
1 #
2 # SSLeay/fips/rand/Makefile
3 #
4
5 DIR=    rand
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 CFLAGS= $(INCLUDES) $(CFLAG)
19
20 GENERAL=Makefile
21 TEST= fips_randtest.c
22 APPS=
23
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC=fips_rand.c
26 LIBOBJ=fips_rand.o
27
28 SRC= $(LIBSRC)
29
30 EXHEADER= fips_rand.h
31 HEADER= $(EXHEADER)
32
33 ALL=    $(GENERAL) $(SRC) $(HEADER)
34
35 top:
36         (cd $(TOP); $(MAKE) DIRS=fips SDIRS=$(DIR) sub_all)
37
38 all:    check lib
39
40 check:
41         TOP=`pwd`/$(TOP) ../fips_check_sha1 fingerprint.sha1 $(SRC) $(HEADER)
42
43 lib:    $(LIBOBJ)
44         $(AR) $(LIB) $(LIBOBJ)
45         $(RANLIB) $(LIB) || echo Never mind.
46         @sleep 2; touch lib
47
48 files:
49         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
50
51 links:
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
56 install:
57         @for i in $(EXHEADER) ; \
58         do  \
59         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
60         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
61         done;
62
63 tags:
64         ctags $(SRC)
65
66 tests:
67
68 lint:
69         lint -DLINT $(INCLUDES) $(SRC)>fluff
70
71 depend:
72         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(SRC) $(TEST)
73
74 dclean:
75         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
76         mv -f Makefile.new $(MAKEFILE)
77
78 clean:
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
83 fips_rand.o: ../../e_os.h ../../include/openssl/bio.h
84 fips_rand.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
85 fips_rand.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
86 fips_rand.o: ../../include/openssl/err.h ../../include/openssl/fips_rand.h
87 fips_rand.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
88 fips_rand.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
89 fips_rand.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
90 fips_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
91 fips_rand.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
92 fips_rand.o: fips_rand.c
93 fips_randtest.o: ../../e_os.h ../../include/openssl/bio.h
94 fips_randtest.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
95 fips_randtest.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
96 fips_randtest.o: ../../include/openssl/err.h ../../include/openssl/fips_rand.h
97 fips_randtest.o: ../../include/openssl/lhash.h
98 fips_randtest.o: ../../include/openssl/opensslconf.h
99 fips_randtest.o: ../../include/openssl/opensslv.h
100 fips_randtest.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
101 fips_randtest.o: ../../include/openssl/safestack.h
102 fips_randtest.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
103 fips_randtest.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
104 fips_randtest.o: fips_randtest.c