Remove EXHEADER, TEST, APPS, links:, install: and uninstall: where relevant
[openssl.git] / crypto / rc4 / Makefile
1 #
2 # OpenSSL/crypto/rc4/Makefile
3 #
4
5 DIR=    rc4
6 TOP=    ../..
7 CC=     cc
8 CPP=    $(CC) -E
9 INCLUDES=
10 CFLAG=-g
11 AR=             ar r
12
13 RC4_ENC=rc4_enc.o rc4_skey.o
14
15 CFLAGS= $(INCLUDES) $(CFLAG)
16 ASFLAGS= $(INCLUDES) $(ASFLAG)
17 AFLAGS= $(ASFLAGS)
18
19 GENERAL=Makefile
20
21 LIB=$(TOP)/libcrypto.a
22 LIBSRC=rc4_skey.c rc4_enc.c
23 LIBOBJ=$(RC4_ENC)
24
25 SRC= $(LIBSRC)
26
27 HEADER= rc4_locl.h
28
29 ALL=    $(GENERAL) $(SRC) $(HEADER)
30
31 top:
32         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
33
34 all:    lib
35
36 lib:    $(LIBOBJ)
37         $(AR) $(LIB) $(LIBOBJ)
38         $(RANLIB) $(LIB) || echo Never mind.
39         @touch lib
40
41 rc4-586.s:      asm/rc4-586.pl ../perlasm/x86asm.pl
42         $(PERL) asm/rc4-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
43
44 rc4-x86_64.s: asm/rc4-x86_64.pl
45         $(PERL) asm/rc4-x86_64.pl $(PERLASM_SCHEME) > $@
46 rc4-md5-x86_64.s:       asm/rc4-md5-x86_64.pl
47         $(PERL) asm/rc4-md5-x86_64.pl $(PERLASM_SCHEME) > $@
48
49 rc4-ia64.S: asm/rc4-ia64.pl
50         $(PERL) asm/rc4-ia64.pl $(CFLAGS) > $@
51
52 rc4-parisc.s:   asm/rc4-parisc.pl
53         $(PERL) asm/rc4-parisc.pl $(PERLASM_SCHEME) $@
54
55 rc4-ia64.s: rc4-ia64.S
56         @case `awk '/^#define RC4_INT/{print$$NF}' $(TOP)/include/openssl/opensslconf.h` in \
57         int)    set -x; $(CC) $(CFLAGS) -DSZ=4 -E rc4-ia64.S > $@ ;; \
58         char)   set -x; $(CC) $(CFLAGS) -DSZ=1 -E rc4-ia64.S > $@ ;; \
59         *)      exit 1 ;; \
60         esac
61
62 # GNU make "catch all"
63 rc4-%.s:        asm/rc4-%.pl;   $(PERL) $< $(PERLASM_SCHEME) $@
64
65 files:
66         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
67
68 tags:
69         ctags $(SRC)
70
71 tests:
72
73 lint:
74         lint -DLINT $(INCLUDES) $(SRC)>fluff
75
76 depend:
77         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
78         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(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 *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
86
87 # DO NOT DELETE THIS LINE -- make depend depends on it.
88
89 rc4_enc.o: ../../e_os.h ../../include/openssl/bio.h
90 rc4_enc.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
91 rc4_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
92 rc4_enc.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
93 rc4_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
94 rc4_enc.o: ../../include/openssl/rc4.h ../../include/openssl/safestack.h
95 rc4_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
96 rc4_enc.o: ../cryptlib.h rc4_enc.c rc4_locl.h
97 rc4_skey.o: ../../e_os.h ../../include/openssl/bio.h
98 rc4_skey.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
99 rc4_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
100 rc4_skey.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
101 rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
102 rc4_skey.o: ../../include/openssl/rc4.h ../../include/openssl/safestack.h
103 rc4_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
104 rc4_skey.o: ../cryptlib.h rc4_locl.h rc4_skey.c