Break circular dependency between pem and err.
[openssl.git] / crypto / err / Makefile.ssl
1 #
2 # SSLeay/crypto/err/Makefile
3 #
4
5 DIR=    err
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=err.c err_all.c err_prn.c
24 LIBOBJ=err.o err_all.o err_prn.o
25
26 SRC= $(LIBSRC)
27
28 EXHEADER= err.h
29 HEADER= $(EXHEADER)
30
31 ALL=    $(GENERAL) $(SRC) $(HEADER)
32
33 top:
34         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
35
36 all:    lib
37
38 lib:    $(LIBOBJ)
39         $(AR) $(LIB) $(LIBOBJ)
40         sh $(TOP)/util/ranlib.sh $(LIB)
41         @touch lib
42
43 files:
44         perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
45
46 links:
47         /bin/rm -f Makefile
48         $(TOP)/util/point.sh Makefile.ssl Makefile ;
49         $(TOP)/util/mklink.sh ../../include $(EXHEADER)
50         $(TOP)/util/mklink.sh ../../test $(TEST)
51         $(TOP)/util/mklink.sh ../../apps $(APPS)
52
53 install:
54         @for i in $(EXHEADER) ; \
55         do  \
56         (cp $$i $(INSTALLTOP)/include/$$i; \
57         chmod 644 $(INSTALLTOP)/include/$$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) $(PROGS) $(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         /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
77
78 errors:
79
80 # DO NOT DELETE THIS LINE -- make depend depends on it.
81
82 err.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
83 err.o: ../../include/lhash.h ../../include/stack.h ../cryptlib.h ../crypto.h
84 err.o: err.h
85 err_all.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h
86 err_all.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h
87 err_all.o: ../../include/conf.h ../../include/des.h ../../include/dh.h
88 err_all.o: ../../include/dsa.h ../../include/evp.h ../../include/idea.h
89 err_all.o: ../../include/lhash.h ../../include/md2.h ../../include/md5.h
90 err_all.o: ../../include/mdc2.h ../../include/objects.h ../../include/pem2.h
91 err_all.o: ../../include/pkcs7.h ../../include/rc2.h ../../include/rc4.h
92 err_all.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h
93 err_all.o: ../../include/sha.h ../../include/stack.h ../../include/x509.h
94 err_all.o: ../../include/x509_vfy.h ../../include/x509v3.h ../crypto.h err.h
95 err_prn.o: ../../include/bio.h ../../include/buffer.h ../../include/e_os.h
96 err_prn.o: ../../include/lhash.h ../../include/stack.h ../cryptlib.h
97 err_prn.o: ../crypto.h err.h