528587a54539c2e62db6400606f644eaa495bc3c
[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 INSTALLTOP=/usr/local/ssl
11 MAKE=           make -f Makefile.ssl
12 MAKEDEPEND=     $(TOP)/util/domd $(TOP)
13 MAKEFILE=       Makefile.ssl
14 AR=             ar r
15
16 CFLAGS= $(INCLUDES) $(CFLAG)
17
18 GENERAL=Makefile
19 TEST=
20 APPS=
21
22 LIB=$(TOP)/libcrypto.a
23 LIBSRC= conf.c conf_err.c
24
25 LIBOBJ= conf.o conf_err.o
26
27 SRC= $(LIBSRC)
28
29 EXHEADER= conf.h
30 HEADER= conf_lcl.h $(EXHEADER)
31
32 ALL=    $(GENERAL) $(SRC) $(HEADER)
33
34 top:
35         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
36
37 all:    lib
38
39 lib:    $(LIBOBJ)
40         $(AR) $(LIB) $(LIBOBJ)
41         $(RANLIB) $(LIB)
42         @touch lib
43
44 files:
45         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
46
47 links:
48         @$(TOP)/util/point.sh Makefile.ssl Makefile
49         @$(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
50         @$(TOP)/util/mklink.pl ../../test $(TEST)
51         @$(TOP)/util/mklink.pl ../../apps $(APPS)
52
53 install:
54         @for i in $(EXHEADER) ; \
55         do  \
56         (cp $$i $(INSTALLTOP)/include/openssl/$$i; \
57         chmod 644 $(INSTALLTOP)/include/openssl/$$i ); \
58         done;
59
60 tags:
61         ctags $(SRC)
62
63 tests:
64
65 lint:
66         lint -DLINT $(INCLUDES) $(SRC)>fluff
67
68 depend:
69         $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(LIBSRC)
70
71 dclean:
72         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
73         mv -f Makefile.new $(MAKEFILE)
74
75 clean:
76         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
77
78 # DO NOT DELETE THIS LINE -- make depend depends on it.
79
80 conf.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
81 conf.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
82 conf.o: ../../include/openssl/e_os.h ../../include/openssl/err.h
83 conf.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
84 conf.o: ../../include/openssl/opensslv.h ../../include/openssl/stack.h
85 conf.o: ../cryptlib.h conf_lcl.h
86 conf_err.o: ../../include/openssl/conf.h ../../include/openssl/err.h
87 conf_err.o: ../../include/openssl/lhash.h ../../include/openssl/stack.h