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