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