crypto/rc5/Makefile was erroneously omitted from last perlasm unification.
[openssl.git] / crypto / rc5 / Makefile
1 #
2 # OpenSSL/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
16 CFLAGS= $(INCLUDES) $(CFLAG)
17 ASFLAGS= $(INCLUDES) $(ASFLAG)
18 AFLAGS= $(ASFLAGS)
19
20 GENERAL=Makefile
21 TEST=rc5test.c
22 APPS=
23
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC=rc5_skey.c rc5_ecb.c rc5_enc.c rc5cfb64.c rc5ofb64.c 
26 LIBOBJ=rc5_skey.o rc5_ecb.o $(RC5_ENC) rc5cfb64.o rc5ofb64.o
27
28 SRC= $(LIBSRC)
29
30 EXHEADER= rc5.h
31 HEADER= rc5_locl.h $(EXHEADER)
32
33 ALL=    $(GENERAL) $(SRC) $(HEADER)
34
35 top:
36         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
37
38 all:    lib
39
40 lib:    $(LIBOBJ)
41         $(AR) $(LIB) $(LIBOBJ)
42         $(RANLIB) $(LIB) || echo Never mind.
43         @touch lib
44
45 rc5-586.s: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
46         $(PERL) asm/rc5-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
47
48 files:
49         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
50
51 links:
52         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
53         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
54         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
55
56 install:
57         @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
58         @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
59         do  \
60         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
61         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
62         done;
63
64 tags:
65         ctags $(SRC)
66
67 tests:
68
69 lint:
70         lint -DLINT $(INCLUDES) $(SRC)>fluff
71
72 depend:
73         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
74         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
75
76 dclean:
77         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
78         mv -f Makefile.new $(MAKEFILE)
79
80 clean:
81         rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
82
83 # DO NOT DELETE THIS LINE -- make depend depends on it.
84
85 rc5_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
86 rc5_ecb.o: ../../include/openssl/rc5.h rc5_ecb.c rc5_locl.h
87 rc5_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
88 rc5_enc.o: rc5_enc.c rc5_locl.h
89 rc5_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
90 rc5_skey.o: rc5_locl.h rc5_skey.c
91 rc5cfb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
92 rc5cfb64.o: rc5_locl.h rc5cfb64.c
93 rc5ofb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
94 rc5ofb64.o: rc5_locl.h rc5ofb64.c