Fix BN_[pseudo_]rand: 'mask' must be used even if top=-1.
[oweals/openssl.git] / crypto / conf / Makefile.ssl
1 #
2 # SSLeay/crypto/conf/Makefile
3 #
4
5 DIR=    conf
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I../../include
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=
23 APPS=
24
25 LIB=$(TOP)/libcrypto.a
26 LIBSRC= conf_err.c conf_lib.c conf_api.c conf_def.c
27
28 LIBOBJ= conf_err.o conf_lib.o conf_api.o conf_def.o
29
30 SRC= $(LIBSRC)
31
32 EXHEADER= conf.h conf_api.h
33 HEADER= conf_def.h $(EXHEADER)
34
35 ALL=    $(GENERAL) $(SRC) $(HEADER)
36
37 top:
38         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
39
40 all:    lib
41
42 lib:    $(LIBOBJ)
43         $(AR) $(LIB) $(LIBOBJ)
44         @echo You may get an error following this line.  Please ignore.
45         - $(RANLIB) $(LIB)
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) $(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 conf_api.o: ../../include/openssl/bio.h ../../include/openssl/conf.h
85 conf_api.o: ../../include/openssl/conf_api.h ../../include/openssl/crypto.h
86 conf_api.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
87 conf_api.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
88 conf_api.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
89 conf_api.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
90 conf_api.o: conf_api.c
91 conf_def.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
92 conf_def.o: ../../include/openssl/conf.h ../../include/openssl/conf_api.h
93 conf_def.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
94 conf_def.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
95 conf_def.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
96 conf_def.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
97 conf_def.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
98 conf_def.o: conf_def.c conf_def.h
99 conf_err.o: ../../include/openssl/bio.h ../../include/openssl/conf.h
100 conf_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os.h
101 conf_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
102 conf_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
103 conf_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
104 conf_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
105 conf_err.o: conf_err.c
106 conf_lib.o: ../../include/openssl/bio.h ../../include/openssl/conf.h
107 conf_lib.o: ../../include/openssl/conf_api.h ../../include/openssl/crypto.h
108 conf_lib.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
109 conf_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
110 conf_lib.o: ../../include/openssl/opensslconf.h
111 conf_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
112 conf_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
113 conf_lib.o: conf_lib.c