Correction from Tani Hosokawa <unknown@riverstyx.net>
[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         @echo You may get an error following this line.  Please ignore.
43         - $(RANLIB) $(LIB)
44         @touch lib
45
46 files:
47         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
48
49 links:
50         @$(TOP)/util/point.sh Makefile.ssl Makefile
51         @$(PERL) $(TOP)/util/mklink.pl ../include/openssl $(EXHEADER)
52         @$(PERL) $(TOP)/util/mklink.pl ../test $(TEST)
53         @$(PERL) $(TOP)/util/mklink.pl ../apps $(APPS)
54
55 install:
56         -@if [ "x`echo x $(EX_LIBS) | grep RSAglue`" != x ]; then \
57             echo "installing libRSAglue.a"; \
58             cp $(LIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/libRSAglue.a; \
59             $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/libRSAglue.a; \
60             chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/libRSAglue.a; \
61         fi
62
63 #       @for i in $(EXHEADER) ; \
64 #       do  \
65 #       (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
66 #       chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
67 #       done;
68
69 tags:
70         ctags $(SRC)
71
72 tests:
73
74 lint:
75         lint -DLINT $(INCLUDES) $(SRC)>fluff
76
77 depend:
78         $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
79
80 dclean:
81         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
82         mv -f Makefile.new $(MAKEFILE)
83
84 clean:
85         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
86
87 # DO NOT DELETE THIS LINE -- make depend depends on it.
88
89 rsar_err.o: ../include/openssl/bio.h ../include/openssl/bn.h
90 rsar_err.o: ../include/openssl/crypto.h ../include/openssl/err.h
91 rsar_err.o: ../include/openssl/lhash.h ../include/openssl/opensslconf.h
92 rsar_err.o: ../include/openssl/opensslv.h ../include/openssl/rsa.h
93 rsar_err.o: ../include/openssl/rsaref.h ../include/openssl/safestack.h
94 rsar_err.o: ../include/openssl/stack.h ../include/openssl/symhacks.h
95 rsaref.o: ../crypto/cryptlib.h ../include/openssl/bio.h ../include/openssl/bn.h
96 rsaref.o: ../include/openssl/buffer.h ../include/openssl/crypto.h
97 rsaref.o: ../include/openssl/e_os.h ../include/openssl/e_os2.h
98 rsaref.o: ../include/openssl/err.h ../include/openssl/lhash.h
99 rsaref.o: ../include/openssl/opensslconf.h ../include/openssl/opensslv.h
100 rsaref.o: ../include/openssl/rand.h ../include/openssl/rsa.h
101 rsaref.o: ../include/openssl/rsaref.h ../include/openssl/safestack.h
102 rsaref.o: ../include/openssl/stack.h ../include/openssl/symhacks.h