e2623ce2eda09846c0bb6ed13e086715c43698c1
[openssl.git] / ssl / Makefile.in
1 #
2 # OpenSSL/ssl/Makefile
3 #
4
5 DIR=    ssl
6 TOP=    ..
7 CC=     cc
8 INCLUDES= -I$(TOP) -I../include
9 CFLAG=-g
10 MAKEFILE=       Makefile
11 AR=             ar r
12
13 CFLAGS= $(INCLUDES) $(CFLAG)
14
15 GENERAL=Makefile README ssl-lib.com install.com
16
17 LIB=$(TOP)/libssl.a
18 SHARED_LIB= libssl$(SHLIB_EXT)
19 LIBSRC= \
20         statem/statem_srvr.c statem/statem_clnt.c  s3_lib.c  s3_enc.c record/rec_layer_s3.c \
21         statem/statem_lib.c s3_cbc.c s3_msg.c \
22         methods.c   t1_lib.c  t1_enc.c t1_ext.c \
23         d1_lib.c  record/rec_layer_d1.c d1_msg.c \
24         statem/statem_dtls.c d1_srtp.c \
25         ssl_lib.c ssl_err2.c ssl_cert.c ssl_sess.c \
26         ssl_ciph.c ssl_stat.c ssl_rsa.c \
27         ssl_asn1.c ssl_txt.c ssl_algs.c ssl_conf.c  ssl_mcnf.c \
28         bio_ssl.c ssl_err.c t1_reneg.c tls_srp.c t1_trce.c ssl_utst.c \
29         record/ssl3_buffer.c record/ssl3_record.c record/dtls1_bitmap.c \
30         statem/statem.c
31 LIBOBJ= \
32         statem/statem_srvr.o  statem/statem_clnt.o  s3_lib.o  s3_enc.o record/rec_layer_s3.o \
33         statem/statem_lib.o s3_cbc.o s3_msg.o \
34         methods.o   t1_lib.o  t1_enc.o t1_ext.o \
35         d1_lib.o  record/rec_layer_d1.o d1_msg.o \
36         statem/statem_dtls.o d1_srtp.o\
37         ssl_lib.o ssl_err2.o ssl_cert.o ssl_sess.o \
38         ssl_ciph.o ssl_stat.o ssl_rsa.o \
39         ssl_asn1.o ssl_txt.o ssl_algs.o ssl_conf.o ssl_mcnf.o \
40         bio_ssl.o ssl_err.o t1_reneg.o tls_srp.o t1_trce.o ssl_utst.o \
41         record/ssl3_buffer.o record/ssl3_record.o record/dtls1_bitmap.o \
42         statem/statem.o
43
44 SRC= $(LIBSRC)
45
46 HEADER= ssl_locl.h record/record_locl.h record/record.h statem/statem.h
47
48 ALL=    $(GENERAL) $(SRC) $(HEADER)
49
50 # BSD make and GNU make disagree on where output goes
51 .c.o:
52         $(CC) $(CFLAGS) -c $< -o $@
53
54 top:
55         (cd ..; $(MAKE) DIRS=$(DIR) all)
56
57 all:    shared
58
59 lib:    $(LIBOBJ)
60         $(AR) $(LIB) $(LIBOBJ)
61         $(RANLIB) $(LIB) || echo Never mind.
62         @touch lib
63
64 shared: lib
65         if [ -n "$(SHARED_LIBS)" ]; then \
66                 (cd ..; $(MAKE) $(SHARED_LIB)); \
67         fi
68
69 files:
70         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
71
72 tags:
73         ctags $(SRC)
74
75 tests:
76
77 lint:
78         lint -DLINT $(INCLUDES) $(SRC)>fluff
79
80 update: local_depend
81         @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
82
83 depend: local_depend
84         @if [ -z "$(THIS)" ]; then $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; fi
85 local_depend:
86         @[ -z "$(THIS)" ] || $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
87
88 dclean:
89         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
90         mv -f Makefile.new $(MAKEFILE)
91
92 clean:
93         rm -f $(LIBOBJ) *.obj lib tags core .pure .nfs* *.old *.bak fluff
94         rm -f record/*.obj record/lib record/retags record/core \
95         record/.pure record/.nfs* record/*.old record/*.bak record/fluff
96         rm -f statem/*.obj statem/lib statem/retags statem/core \
97         statem/.pure statem/.nfs* statem/*.old statem/*.bak statem/fluff
98         
99 # DO NOT DELETE THIS LINE -- make depend depends on it.