Further BUILDENV refinement, further fool-proofing of Makefiles and
[oweals/openssl.git] / crypto / rand / Makefile
1 #
2 # SSLeay/crypto/rand/Makefile
3 #
4
5 DIR=    rand
6 TOP=    ../..
7 CC=     cc
8 INCLUDES=
9 CFLAG=-g
10 MAKEFILE=       Makefile
11 AR=             ar r
12
13 CFLAGS= $(INCLUDES) $(CFLAG)
14
15 GENERAL=Makefile
16 TEST= randtest.c
17 APPS=
18
19 LIB=$(TOP)/libcrypto.a
20 LIBSRC=md_rand.c randfile.c rand_lib.c rand_err.c rand_egd.c \
21         rand_win.c rand_unix.c rand_os2.c rand_nw.c
22 LIBOBJ=md_rand.o randfile.o rand_lib.o rand_err.o rand_egd.o \
23         rand_win.o rand_unix.o rand_os2.o rand_nw.o
24
25 SRC= $(LIBSRC)
26
27 EXHEADER= rand.h
28 HEADER= $(EXHEADER)
29
30 ALL=    $(GENERAL) $(SRC) $(HEADER)
31
32 top:
33         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
34
35 all:    lib
36
37 lib:    $(LIBOBJ)
38         $(AR) $(LIB) $(LIBOBJ)
39         $(RANLIB) $(LIB) || echo Never mind.
40         @touch lib
41
42 files:
43         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
44
45 links:
46         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
47         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
48         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
49
50 install:
51         @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
52         @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
53         do  \
54         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
55         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
56         done;
57
58 tags:
59         ctags $(SRC)
60
61 tests:
62
63 lint:
64         lint -DLINT $(INCLUDES) $(SRC)>fluff
65
66 depend:
67         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
68         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
69
70 dclean:
71         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
72         mv -f Makefile.new $(MAKEFILE)
73
74 clean:
75         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
76
77 # DO NOT DELETE THIS LINE -- make depend depends on it.
78
79 md_rand.o: ../../e_os.h ../../include/openssl/asn1.h
80 md_rand.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
81 md_rand.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
82 md_rand.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
83 md_rand.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
84 md_rand.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
85 md_rand.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
86 md_rand.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
87 md_rand.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
88 md_rand.o: md_rand.c rand_lcl.h
89 rand_egd.o: ../../include/openssl/buffer.h ../../include/openssl/e_os2.h
90 rand_egd.o: ../../include/openssl/opensslconf.h
91 rand_egd.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
92 rand_egd.o: rand_egd.c
93 rand_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
94 rand_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
95 rand_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
96 rand_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
97 rand_err.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
98 rand_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
99 rand_err.o: rand_err.c
100 rand_lib.o: ../../e_os.h ../../include/openssl/bio.h
101 rand_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
102 rand_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h
103 rand_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
104 rand_lib.o: ../../include/openssl/opensslconf.h
105 rand_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
106 rand_lib.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
107 rand_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
108 rand_lib.o: ../cryptlib.h rand_lib.c
109 rand_nw.o: ../../e_os.h ../../include/openssl/asn1.h
110 rand_nw.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
111 rand_nw.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
112 rand_nw.o: ../../include/openssl/err.h ../../include/openssl/evp.h
113 rand_nw.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
114 rand_nw.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
115 rand_nw.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
116 rand_nw.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
117 rand_nw.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
118 rand_nw.o: ../../include/openssl/symhacks.h ../cryptlib.h rand_lcl.h rand_nw.c
119 rand_os2.o: ../../e_os.h ../../include/openssl/asn1.h
120 rand_os2.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
121 rand_os2.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
122 rand_os2.o: ../../include/openssl/err.h ../../include/openssl/evp.h
123 rand_os2.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
124 rand_os2.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
125 rand_os2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
126 rand_os2.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
127 rand_os2.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
128 rand_os2.o: ../../include/openssl/symhacks.h ../cryptlib.h rand_lcl.h
129 rand_os2.o: rand_os2.c
130 rand_unix.o: ../../e_os.h ../../include/openssl/asn1.h
131 rand_unix.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
132 rand_unix.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
133 rand_unix.o: ../../include/openssl/err.h ../../include/openssl/evp.h
134 rand_unix.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
135 rand_unix.o: ../../include/openssl/objects.h
136 rand_unix.o: ../../include/openssl/opensslconf.h
137 rand_unix.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
138 rand_unix.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
139 rand_unix.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
140 rand_unix.o: ../../include/openssl/symhacks.h ../cryptlib.h rand_lcl.h
141 rand_unix.o: rand_unix.c
142 rand_win.o: ../../e_os.h ../../include/openssl/asn1.h
143 rand_win.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
144 rand_win.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
145 rand_win.o: ../../include/openssl/err.h ../../include/openssl/evp.h
146 rand_win.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
147 rand_win.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
148 rand_win.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
149 rand_win.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
150 rand_win.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
151 rand_win.o: ../../include/openssl/symhacks.h ../cryptlib.h rand_lcl.h
152 rand_win.o: rand_win.c
153 randfile.o: ../../e_os.h ../../include/openssl/buffer.h
154 randfile.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
155 randfile.o: ../../include/openssl/opensslconf.h
156 randfile.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
157 randfile.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
158 randfile.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
159 randfile.o: randfile.c