e56ffa0281eb43f6fc2d6db77add42a1c9399e66
[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         pqueue.c \
21         statem/statem_srvr.c statem/statem_clnt.c  s3_lib.c  s3_enc.c record/rec_layer_s3.c \
22         statem/statem_lib.c s3_cbc.c s3_msg.c \
23         methods.c   t1_lib.c  t1_enc.c t1_ext.c \
24         d1_lib.c  record/rec_layer_d1.c d1_msg.c \
25         statem/statem_dtls.c d1_srtp.c \
26         ssl_lib.c ssl_cert.c ssl_sess.c \
27         ssl_ciph.c ssl_stat.c ssl_rsa.c \
28         ssl_asn1.c ssl_txt.c ssl_init.c ssl_conf.c  ssl_mcnf.c \
29         bio_ssl.c ssl_err.c t1_reneg.c tls_srp.c t1_trce.c ssl_utst.c \
30         record/ssl3_buffer.c record/ssl3_record.c record/dtls1_bitmap.c \
31         statem/statem.c
32 LIBOBJ= \
33         pqueue.o \
34         statem/statem_srvr.o  statem/statem_clnt.o  s3_lib.o  s3_enc.o record/rec_layer_s3.o \
35         statem/statem_lib.o s3_cbc.o s3_msg.o \
36         methods.o   t1_lib.o  t1_enc.o t1_ext.o \
37         d1_lib.o  record/rec_layer_d1.o d1_msg.o \
38         statem/statem_dtls.o d1_srtp.o\
39         ssl_lib.o ssl_cert.o ssl_sess.o \
40         ssl_ciph.o ssl_stat.o ssl_rsa.o \
41         ssl_asn1.o ssl_txt.o ssl_init.o ssl_conf.o ssl_mcnf.o \
42         bio_ssl.o ssl_err.o t1_reneg.o tls_srp.o t1_trce.o ssl_utst.o \
43         record/ssl3_buffer.o record/ssl3_record.o record/dtls1_bitmap.o \
44         statem/statem.o
45
46 SRC= $(LIBSRC)
47
48 HEADER= ssl_locl.h record/record_locl.h record/record.h statem/statem.h
49
50 ALL=    $(GENERAL) $(SRC) $(HEADER)
51
52 # BSD make and GNU make disagree on where output goes
53 .c.o:
54         $(CC) $(CFLAGS) -c $< -o $@
55
56 top:
57         (cd ..; $(MAKE) DIRS=$(DIR) all)
58
59 all:    shared
60
61 lib:    $(LIBOBJ)
62         $(AR) $(LIB) $(LIBOBJ)
63         $(RANLIB) $(LIB) || echo Never mind.
64         @touch lib
65
66 shared: lib
67         if [ -n "$(SHARED_LIBS)" ]; then \
68                 (cd ..; $(MAKE) $(SHARED_LIB)); \
69         fi
70
71 files:
72         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
73
74 depend:
75         $(TOP)/util/domd $(CFLAG) $(INCLUDES) -- $(PROGS) $(LIBSRC)
76
77 clean:
78         rm -f $(LIBOBJ) *.obj lib tags core .pure .nfs* *.old *.bak fluff
79         rm -f record/*.obj record/lib record/retags record/core \
80         record/.pure record/.nfs* record/*.old record/*.bak record/fluff
81         rm -f statem/*.obj statem/lib statem/retags statem/core \
82         statem/.pure statem/.nfs* statem/*.old statem/*.bak statem/fluff
83         
84 # DO NOT DELETE THIS LINE -- make depend depends on it.