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