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