Fix AES code.
[openssl.git] / crypto / rijndael / Makefile.ssl
1 #
2 # SSLeay/crypto/blowfish/Makefile
3 #
4
5 DIR=    rijndael
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 RD_ENC=         rd_enc.o
20 # or use
21 #DES_ENC=       bx86-elf.o
22
23 CFLAGS= -mpentiumpro $(INCLUDES) $(CFLAG) -O3 -fexpensive-optimizations -funroll-loops -fforce-addr
24
25 GENERAL=Makefile
26 TEST=
27 APPS=
28
29 LIB=$(TOP)/libcrypto.a
30 LIBSRC=rd_fst.c
31 LIBOBJ=rd_fst.o
32
33 SRC= $(LIBSRC)
34
35 EXHEADER=rd_fst.h rijndael.h
36
37 top:
38         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
39
40 all:    lib
41
42 lib:    $(LIBOBJ)
43         $(AR) $(LIB) $(LIBOBJ)
44         $(RANLIB) $(LIB)
45         @touch lib
46
47 $(LIBOBJ): $(LIBSRC)
48
49 files:
50         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
51
52 links:
53         @$(TOP)/util/point.sh Makefile.ssl Makefile
54         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
55         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
56         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
57
58 install: installs
59
60 installs:
61         @for i in $(EXHEADER) ; \
62         do  \
63         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
64         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
65         done;
66
67 tags:
68         ctags $(SRC)
69
70 tests:
71
72 lint:
73         lint -DLINT $(INCLUDES) $(SRC)>fluff
74
75 depend:
76         $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
77
78 dclean:
79         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
80         mv -f Makefile.new $(MAKEFILE)
81
82 clean:
83         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
84
85 # DO NOT DELETE THIS LINE
86
87 rd_fst.o: rd_fst.h