Constify DH-related code.
[openssl.git] / crypto / rc4 / Makefile.ssl
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 -f Makefile.ssl
15 MAKEDEPEND=     $(TOP)/util/domd $(TOP)
16 MAKEFILE=       Makefile.ssl
17 AR=             ar r
18
19 RC4_ENC=rc4_enc.o
20 # or use
21 #RC4_ENC=asm/rx86-elf.o
22 #RC4_ENC=asm/rx86-out.o
23 #RC4_ENC=asm/rx86-sol.o
24 #RC4_ENC=asm/rx86bdsi.o
25
26 CFLAGS= $(INCLUDES) $(CFLAG)
27
28 GENERAL=Makefile
29 TEST=rc4test.c
30 APPS=
31
32 LIB=$(TOP)/libcrypto.a
33 LIBSRC=rc4_skey.c rc4_enc.c
34 LIBOBJ=rc4_skey.o $(RC4_ENC)
35
36 SRC= $(LIBSRC)
37
38 EXHEADER= rc4.h
39 HEADER= $(EXHEADER) rc4_locl.h
40
41 ALL=    $(GENERAL) $(SRC) $(HEADER)
42
43 top:
44         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
45
46 all:    lib
47
48 lib:    $(LIBOBJ)
49         $(AR) $(LIB) $(LIBOBJ)
50         @echo You may get an error following this line.  Please ignore.
51         - $(RANLIB) $(LIB)
52         @touch lib
53
54 # elf
55 asm/rx86-elf.o: asm/rx86unix.cpp
56         $(CPP) -DELF -x c asm/rx86unix.cpp | as -o asm/rx86-elf.o
57
58 # solaris
59 asm/rx86-sol.o: asm/rx86unix.cpp
60         $(CC) -E -DSOL asm/rx86unix.cpp | sed 's/^#.*//' > asm/rx86-sol.s
61         as -o asm/rx86-sol.o asm/rx86-sol.s
62         rm -f asm/rx86-sol.s
63
64 # a.out
65 asm/rx86-out.o: asm/rx86unix.cpp
66         $(CPP) -DOUT asm/rx86unix.cpp | as -o asm/rx86-out.o
67
68 # bsdi
69 asm/rx86bsdi.o: asm/rx86unix.cpp
70         $(CPP) -DBSDI asm/rx86unix.cpp | sed 's/ :/:/' | as -o asm/rx86bsdi.o
71
72 asm/rx86unix.cpp: asm/rc4-586.pl ../perlasm/x86asm.pl
73         (cd asm; $(PERL) rc4-586.pl cpp >rx86unix.cpp)
74
75 files:
76         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
77
78 links:
79         @$(TOP)/util/point.sh Makefile.ssl Makefile
80         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
81         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
82         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
83
84 install:
85         @for i in $(EXHEADER) ; \
86         do  \
87         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
88         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
89         done;
90
91 tags:
92         ctags $(SRC)
93
94 tests:
95
96 lint:
97         lint -DLINT $(INCLUDES) $(SRC)>fluff
98
99 depend:
100         $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
101
102 dclean:
103         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
104         mv -f Makefile.new $(MAKEFILE)
105
106 clean:
107         rm -f asm/rx86unix.cpp *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
108
109 # DO NOT DELETE THIS LINE -- make depend depends on it.
110
111 rc4_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc4.h
112 rc4_enc.o: rc4_locl.h
113 rc4_skey.o: ../../include/openssl/opensslconf.h
114 rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/rc4.h
115 rc4_skey.o: rc4_locl.h