3d3b274525d94b798f35ee45176db2850af62bab
[openssl.git] / crypto / aes / Makefile.ssl
1 #
2 # crypto/aes/Makefile
3 #
4
5 DIR=    aes
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 MAKEDEPPROG=    makedepend
16 MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
17 MAKEFILE=       Makefile.ssl
18 AR=             ar r
19
20 AES_ASM_OBJ=
21
22 CFLAGS= $(INCLUDES) $(CFLAG)
23
24 GENERAL=Makefile
25 #TEST=aestest.c
26 TEST=
27 APPS=
28
29 LIB=$(TOP)/libcrypto.a
30 LIBSRC=aes_core.c aes_misc.c aes_ecb.c aes_cbc.c aes_cfb.c aes_ofb.c aes_ctr.c
31 LIBOBJ=aes_core.o aes_misc.o aes_ecb.o aes_cbc.o aes_cfb.o aes_ofb.o aes_ctr.o $(AES_ASM_OBJ)
32
33 SRC= $(LIBSRC)
34
35 EXHEADER= aes.h
36 HEADER= aes_locl.h $(EXHEADER)
37
38 ALL=    $(GENERAL) $(SRC) $(HEADER)
39
40 top:
41         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
42
43 all:    lib
44
45 lib:    $(LIBOBJ)
46         $(AR) $(LIB) $(LIBOBJ)
47         $(RANLIB) $(LIB) || echo Never mind.
48         @touch lib
49
50 $(LIBOBJ): $(LIBSRC)
51
52 files:
53         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
54
55 links:
56         @sh $(TOP)/util/point.sh Makefile.ssl Makefile
57         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
58         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
59         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
60
61 install: installs
62
63 installs:
64         @for i in $(EXHEADER) ; \
65         do  \
66         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
67         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
68         done;
69
70 tags:
71         ctags $(SRC)
72
73 tests:
74
75 lint:
76         lint -DLINT $(INCLUDES) $(SRC)>fluff
77
78 depend:
79         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
80
81 dclean:
82         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
83         mv -f Makefile.new $(MAKEFILE)
84
85 clean:
86         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
87
88 # DO NOT DELETE THIS LINE -- make depend depends on it.
89
90 aes_cbc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
91 aes_cbc.o: ../../include/openssl/opensslconf.h aes_cbc.c aes_locl.h
92 aes_cfb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
93 aes_cfb.o: ../../include/openssl/opensslconf.h aes_cfb.c aes_locl.h
94 aes_core.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
95 aes_core.o: ../../include/openssl/opensslconf.h aes_core.c aes_locl.h
96 aes_ctr.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
97 aes_ctr.o: ../../include/openssl/opensslconf.h aes_ctr.c aes_locl.h
98 aes_ecb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
99 aes_ecb.o: ../../include/openssl/opensslconf.h aes_ecb.c aes_locl.h
100 aes_misc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
101 aes_misc.o: ../../include/openssl/opensslconf.h
102 aes_misc.o: ../../include/openssl/opensslv.h aes_locl.h aes_misc.c
103 aes_ofb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
104 aes_ofb.o: ../../include/openssl/opensslconf.h aes_locl.h aes_ofb.c