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