a45b4939a6aa6d5c05691696e17ebf708122bc22
[openssl.git] / rsaref / Makefile.ssl
1 #
2 # SSLeay/rsaref/Makefile
3 #
4
5 DIR=    rsaref
6 TOP=    ..
7 CC=     cc
8 INCLUDES= -I../crypto -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 ERRC=rsar_err
19 GENERAL=Makefile
20 TEST=
21 APPS=
22
23 LIB=$(TOP)/libRSAglue.a
24 LIBSRC= rsaref.c $(ERRC).c
25 LIBOBJ= rsaref.o $(ERRC).o
26
27 SRC= $(LIBSRC)
28
29 EXHEADER=       rsaref.h
30 HEADER= $(EXHEADER)
31
32 ALL=    $(GENERAL) $(SRC) $(HEADER)
33
34 top:
35         (cd ..; $(MAKE) DIRS=rsaref 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.sh ../include/openssl $(EXHEADER)
50         @$(TOP)/util/mklink.sh ../test $(TEST)
51         @$(TOP)/util/mklink.sh ../apps $(APPS)
52
53 install:
54
55 #       @for i in $(EXHEADER) ; \
56 #       do  \
57 #       (cp $$i $(INSTALLTOP)/include/openssl/$$i; \
58 #       chmod 644 $(INSTALLTOP)/include/openssl/$$i ); \
59 #       done;
60
61 tags:
62         ctags $(SRC)
63
64 tests:
65
66 lint:
67         lint -DLINT $(INCLUDES) $(SRC)>fluff
68
69 depend:
70         $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
71
72 dclean:
73         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
74         mv -f Makefile.new $(MAKEFILE)
75
76 clean:
77         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
78
79 # DO NOT DELETE THIS LINE -- make depend depends on it.
80
81 rsar_err.o: ../include/openssl/bn.h ../include/openssl/crypto.h
82 rsar_err.o: ../include/openssl/err.h ../include/openssl/opensslconf.h
83 rsar_err.o: ../include/openssl/opensslv.h ../include/openssl/rsa.h
84 rsar_err.o: ../include/openssl/rsaref.h ../include/openssl/stack.h
85 rsaref.o: ../crypto/cryptlib.h ../include/openssl/bio.h ../include/openssl/bn.h
86 rsaref.o: ../include/openssl/buffer.h ../include/openssl/crypto.h
87 rsaref.o: ../include/openssl/e_os.h ../include/openssl/err.h
88 rsaref.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
89 rsaref.o: ../include/openssl/rand.h ../include/openssl/rsa.h
90 rsaref.o: ../include/openssl/rsaref.h ../include/openssl/stack.h