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