]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/rc4/Makefile
Remove fipscanister build functionality from makefiles.
[thirdparty/openssl.git] / crypto / rc4 / Makefile
CommitLineData
d02b48c6 1#
15ac9716 2# OpenSSL/crypto/rc4/Makefile
d02b48c6
RE
3#
4
5DIR= rc4
6TOP= ../..
7CC= cc
623bb80b 8CPP= $(CC) -E
d02b48c6
RE
9INCLUDES=
10CFLAG=-g
d02b48c6
RE
11AR= ar r
12
28754624 13RC4_ENC=rc4_enc.o rc4_skey.o
58964a49 14
d02b48c6 15CFLAGS= $(INCLUDES) $(CFLAG)
fda5e385 16ASFLAGS= $(INCLUDES) $(ASFLAG)
16760a30 17AFLAGS= $(ASFLAGS)
d02b48c6
RE
18
19GENERAL=Makefile
20TEST=rc4test.c
21APPS=
22
23LIB=$(TOP)/libcrypto.a
58964a49 24LIBSRC=rc4_skey.c rc4_enc.c
28754624 25LIBOBJ=$(RC4_ENC)
d02b48c6
RE
26
27SRC= $(LIBSRC)
28
29EXHEADER= rc4.h
58964a49 30HEADER= $(EXHEADER) rc4_locl.h
d02b48c6
RE
31
32ALL= $(GENERAL) $(SRC) $(HEADER)
33
34top:
35 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
36
37all: lib
38
39lib: $(LIBOBJ)
f072785e 40 $(AR) $(LIB) $(LIBOBJ)
4e20b1a6 41 $(RANLIB) $(LIB) || echo Never mind.
d02b48c6
RE
42 @touch lib
43
fa8e921f 44rc4-586.s: asm/rc4-586.pl ../perlasm/x86asm.pl
f861b1d4 45 $(PERL) asm/rc4-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
58964a49 46
1416aec6
AP
47rc4-x86_64.s: asm/rc4-x86_64.pl
48 $(PERL) asm/rc4-x86_64.pl $(PERLASM_SCHEME) > $@
c608171d
AP
49rc4-md5-x86_64.s: asm/rc4-md5-x86_64.pl
50 $(PERL) asm/rc4-md5-x86_64.pl $(PERLASM_SCHEME) > $@
090e81d4 51
843d9d0b
AP
52rc4-ia64.S: asm/rc4-ia64.pl
53 $(PERL) asm/rc4-ia64.pl $(CFLAGS) > $@
54
cb3b9b13
AP
55rc4-parisc.s: asm/rc4-parisc.pl
56 $(PERL) asm/rc4-parisc.pl $(PERLASM_SCHEME) $@
57
843d9d0b 58rc4-ia64.s: rc4-ia64.S
a4022932 59 @case `awk '/^#define RC4_INT/{print$$NF}' $(TOP)/include/openssl/opensslconf.h` in \
843d9d0b
AP
60 int) set -x; $(CC) $(CFLAGS) -DSZ=4 -E rc4-ia64.S > $@ ;; \
61 char) set -x; $(CC) $(CFLAGS) -DSZ=1 -E rc4-ia64.S > $@ ;; \
a4022932
AP
62 *) exit 1 ;; \
63 esac
bc3e7fab 64
6219d2c2
AP
65# GNU make "catch all"
66rc4-%.s: asm/rc4-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
67
d02b48c6 68files:
42ba5d23 69 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
d02b48c6
RE
70
71links:
1314c344
BM
72 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
73 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
74 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
d02b48c6
RE
75
76install:
81a86fcf 77 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
a2ac429d 78 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
d02b48c6 79 do \
e5f3045f
BM
80 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
81 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
d02b48c6
RE
82 done;
83
84tags:
85 ctags $(SRC)
86
87tests:
88
89lint:
90 lint -DLINT $(INCLUDES) $(SRC)>fluff
91
92depend:
ce92b6eb 93 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
001ab3ab 94 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
d02b48c6
RE
95
96dclean:
99aab161 97 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
d02b48c6
RE
98 mv -f Makefile.new $(MAKEFILE)
99
100clean:
67ea999d 101 rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
d02b48c6 102
d02b48c6 103# DO NOT DELETE THIS LINE -- make depend depends on it.
6242bb9c 104
ce92b6eb
AP
105rc4_enc.o: ../../e_os.h ../../include/openssl/bio.h
106rc4_enc.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
107rc4_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
108rc4_enc.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
109rc4_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
110rc4_enc.o: ../../include/openssl/rc4.h ../../include/openssl/safestack.h
111rc4_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
112rc4_enc.o: ../cryptlib.h rc4_enc.c rc4_locl.h
113rc4_skey.o: ../../e_os.h ../../include/openssl/bio.h
114rc4_skey.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
115rc4_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
116rc4_skey.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
117rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
118rc4_skey.o: ../../include/openssl/rc4.h ../../include/openssl/safestack.h
119rc4_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
120rc4_skey.o: ../cryptlib.h rc4_locl.h rc4_skey.c