Import of old SSLeay release: SSLeay 0.8.1b
[openssl.git] / crypto / bio / Makefile.ssl
1 #
2 # SSLeay/crypto/bio/Makefile
3 #
4
5 DIR=    bio
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I../../include
9 CFLAG=-g
10 INSTALLTOP=/usr/local/ssl
11 MAKE=           make -f Makefile.ssl
12 MAKEDEPEND=     makedepend -f Makefile.ssl
13 MAKEFILE=       Makefile.ssl
14 AR=             ar r
15
16 CFLAGS= $(INCLUDES) $(CFLAG)
17
18 ERR=bio
19 ERRC=bio_err
20 GENERAL=Makefile
21 TEST=
22 APPS=
23
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC= bio_lib.c bio_cb.c $(ERRC).c \
26         bss_mem.c bss_null.c bss_fd.c \
27         bss_file.c bss_sock.c bss_conn.c \
28         bf_null.c bf_buff.c b_print.c b_dump.c \
29         b_sock.c bss_acpt.c bf_nbio.c
30 LIBOBJ= bio_lib.o bio_cb.o $(ERRC).o \
31         bss_mem.o bss_null.o bss_fd.o \
32         bss_file.o bss_sock.o bss_conn.o \
33         bf_null.o bf_buff.o b_print.o b_dump.o \
34         b_sock.o bss_acpt.o bf_nbio.o
35
36 SRC= $(LIBSRC)
37
38 EXHEADER= bio.h
39 HEADER= $(EXHEADER)
40
41 ALL=    $(GENERAL) $(SRC) $(HEADER)
42
43 top:
44         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
45
46 all:    lib
47
48 lib:    $(LIBOBJ)
49         $(AR) $(LIB) $(LIBOBJ)
50         sh $(TOP)/util/ranlib.sh $(LIB)
51         @touch lib
52
53 files:
54         perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
55
56 links:
57         /bin/rm -f Makefile
58         $(TOP)/util/point.sh Makefile.ssl Makefile;
59         $(TOP)/util/mklink.sh ../../include $(EXHEADER)
60         $(TOP)/util/mklink.sh ../../test $(TEST)
61         $(TOP)/util/mklink.sh ../../apps $(APPS)
62
63 install:
64         @for i in $(EXHEADER) ; \
65         do  \
66         (cp $$i $(INSTALLTOP)/include/$$i; \
67         chmod 644 $(INSTALLTOP)/include/$$i ); \
68         done;
69
70 tags:
71         ctags $(SRC)
72
73 tests:
74
75 lint:
76         lint -DLINT $(INCLUDES) $(SRC)>fluff
77
78 depend:
79         $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
80
81 dclean:
82         perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
83         mv -f Makefile.new $(MAKEFILE)
84
85 clean:
86         /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
87
88 errors:
89         perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
90         perl ../err/err_genc.pl $(ERR).h $(ERRC).c
91
92 # DO NOT DELETE THIS LINE -- make depend depends on it.