]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/rc4/Makefile.ssl
Complete rewrite of the error code generation script. It now runs as a single
[thirdparty/openssl.git] / crypto / rc4 / Makefile.ssl
CommitLineData
d02b48c6
RE
1#
2# SSLeay/crypto/rc4/Makefile
3#
4
5DIR= rc4
6TOP= ../..
7CC= cc
8INCLUDES=
9CFLAG=-g
10INSTALLTOP=/usr/local/ssl
11MAKE= make -f Makefile.ssl
8039257d 12MAKEDEPEND= $(TOP)/util/domd $(TOP)
d02b48c6
RE
13MAKEFILE= Makefile.ssl
14AR= ar r
15
58964a49
RE
16RC4_ENC=rc4_enc.o
17# or use
18#RC4_ENC=asm/rx86-elf.o
19#RC4_ENC=asm/rx86-out.o
20#RC4_ENC=asm/rx86-sol.o
21#RC4_ENC=asm/rx86bdsi.o
22
d02b48c6
RE
23CFLAGS= $(INCLUDES) $(CFLAG)
24
25GENERAL=Makefile
26TEST=rc4test.c
27APPS=
28
29LIB=$(TOP)/libcrypto.a
58964a49
RE
30LIBSRC=rc4_skey.c rc4_enc.c
31LIBOBJ=rc4_skey.o $(RC4_ENC)
d02b48c6
RE
32
33SRC= $(LIBSRC)
34
35EXHEADER= rc4.h
58964a49 36HEADER= $(EXHEADER) rc4_locl.h
d02b48c6
RE
37
38ALL= $(GENERAL) $(SRC) $(HEADER)
39
40top:
41 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
42
43all: lib
44
45lib: $(LIBOBJ)
46 $(AR) $(LIB) $(LIBOBJ)
99aab161 47 $(RANLIB) $(LIB)
d02b48c6
RE
48 @touch lib
49
58964a49
RE
50# elf
51asm/rx86-elf.o: asm/rx86unix.cpp
52 $(CPP) -DELF asm/rx86unix.cpp | as -o asm/rx86-elf.o
53
54# solaris
55asm/rx86-sol.o: asm/rx86unix.cpp
56 $(CC) -E -DSOL asm/rx86unix.cpp | sed 's/^#.*//' > asm/rx86-sol.s
57 as -o asm/rx86-sol.o asm/rx86-sol.s
58 rm -f asm/rx86-sol.s
59
60# a.out
61asm/rx86-out.o: asm/rx86unix.cpp
62 $(CPP) -DOUT asm/rx86unix.cpp | as -o asm/rx86-out.o
63
64# bsdi
65asm/rx86bsdi.o: asm/rx86unix.cpp
dfeab068 66 $(CPP) -DBSDI asm/rx86unix.cpp | sed 's/ :/:/' | as -o asm/rx86bsdi.o
58964a49 67
05dc84b8 68asm/rx86unix.cpp: asm/rc4-586.pl
99aab161 69 (cd asm; $(PERL) rc4-586.pl cpp >rx86unix.cpp)
58964a49 70
d02b48c6 71files:
99aab161 72 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
d02b48c6
RE
73
74links:
bb8f3c58 75 @$(TOP)/util/point.sh Makefile.ssl Makefile
ec577822 76 @$(TOP)/util/mklink.sh ../../include/openssl $(EXHEADER)
bb8f3c58
RE
77 @$(TOP)/util/mklink.sh ../../test $(TEST)
78 @$(TOP)/util/mklink.sh ../../apps $(APPS)
d02b48c6
RE
79
80install:
81 @for i in $(EXHEADER) ; \
82 do \
ec577822
BM
83 (cp $$i $(INSTALLTOP)/include/openssl/$$i; \
84 chmod 644 $(INSTALLTOP)/include/openssl/$$i ); \
d02b48c6
RE
85 done;
86
87tags:
88 ctags $(SRC)
89
90tests:
91
92lint:
93 lint -DLINT $(INCLUDES) $(SRC)>fluff
94
95depend:
96 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
97
98dclean:
99aab161 99 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
d02b48c6
RE
100 mv -f Makefile.new $(MAKEFILE)
101
102clean:
bb8f3c58 103 rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
d02b48c6 104
d02b48c6 105# DO NOT DELETE THIS LINE -- make depend depends on it.
6242bb9c 106
bf57da07
BM
107rc4_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc4.h
108rc4_enc.o: rc4_locl.h
109rc4_skey.o: ../../include/openssl/opensslconf.h
110rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h
111rc4_skey.o: rc4_locl.h