protect BN_BLINDING_invert with a write lock and BN_BLINDING_convert
[openssl.git] / crypto / rc5 / Makefile
1 #
2 # SSLeay/crypto/rc5/Makefile
3 #
4
5 DIR=    rc5
6 TOP=    ../..
7 CC=     cc
8 CPP=    $(CC) -E
9 INCLUDES=
10 CFLAG=-g
11 MAKEFILE=       Makefile
12 AR=             ar r
13
14 RC5_ENC=                rc5_enc.o
15 # or use
16 #DES_ENC=       r586-elf.o
17
18 CFLAGS= $(INCLUDES) $(CFLAG)
19 ASFLAGS= $(INCLUDES) $(ASFLAG)
20 AFLAGS= $(ASFLAGS)
21
22 GENERAL=Makefile
23 TEST=rc5test.c
24 APPS=
25
26 LIB=$(TOP)/libcrypto.a
27 LIBSRC=rc5_skey.c rc5_ecb.c rc5_enc.c rc5cfb64.c rc5ofb64.c 
28 LIBOBJ=rc5_skey.o rc5_ecb.o $(RC5_ENC) rc5cfb64.o rc5ofb64.o
29
30 SRC= $(LIBSRC)
31
32 EXHEADER= rc5.h
33 HEADER= rc5_locl.h $(EXHEADER)
34
35 ALL=    $(GENERAL) $(SRC) $(HEADER)
36
37 top:
38         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
39
40 all:    lib
41
42 lib:    $(LIBOBJ)
43         $(AR) $(LIB) $(LIBOBJ)
44         $(RANLIB) $(LIB) || echo Never mind.
45         @touch lib
46
47 # ELF
48 r586-elf.s: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
49         (cd asm; $(PERL) rc5-586.pl elf $(CFLAGS) > ../$@)
50 # COFF
51 r586-cof.s: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
52         (cd asm; $(PERL) rc5-586.pl coff $(CFLAGS) > ../$@)
53 # a.out
54 r586-out.s: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
55         (cd asm; $(PERL) rc5-586.pl a.out $(CFLAGS) > ../$@)
56
57 files:
58         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
59
60 links:
61         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
62         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
63         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
64
65 install:
66         @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
67         @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
68         do  \
69         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
70         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
71         done;
72
73 tags:
74         ctags $(SRC)
75
76 tests:
77
78 lint:
79         lint -DLINT $(INCLUDES) $(SRC)>fluff
80
81 depend:
82         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
83         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
84
85 dclean:
86         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
87         mv -f Makefile.new $(MAKEFILE)
88
89 clean:
90         rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
91
92 # DO NOT DELETE THIS LINE -- make depend depends on it.
93
94 rc5_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
95 rc5_ecb.o: ../../include/openssl/rc5.h rc5_ecb.c rc5_locl.h
96 rc5_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
97 rc5_enc.o: rc5_enc.c rc5_locl.h
98 rc5_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
99 rc5_skey.o: rc5_locl.h rc5_skey.c
100 rc5cfb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
101 rc5cfb64.o: rc5_locl.h rc5cfb64.c
102 rc5ofb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
103 rc5ofb64.o: rc5_locl.h rc5ofb64.c