4aa84db543eb6b8cdbf74d8c6f24793a713be781
[openssl.git] / crypto / camellia / Makefile
1 #
2 # crypto/camellia/Makefile
3 #
4
5 DIR= camellia
6 TOP=    ../..
7 CC=     cc
8 CPP=    $(CC) -E
9 INCLUDES=
10 CFLAG=-g
11 MAKEFILE=       Makefile
12 AR=             ar r
13
14 CMLL_ENC= camellia.o cmll_misc.o cmll_cbc.o
15
16 CFLAGS= $(INCLUDES) $(CFLAG)
17 ASFLAGS= $(INCLUDES) $(ASFLAG)
18 AFLAGS= $(ASFLAGS)
19
20 GENERAL=Makefile
21
22 LIB=$(TOP)/libcrypto.a
23 LIBSRC=camellia.c cmll_misc.c cmll_ecb.c cmll_cbc.c cmll_ofb.c \
24            cmll_cfb.c cmll_ctr.c 
25
26 LIBOBJ= cmll_ecb.o cmll_ofb.o cmll_cfb.o cmll_ctr.o $(CMLL_ENC)
27
28 SRC= $(LIBSRC)
29
30 HEADER= cmll_locl.h
31
32 ALL=    $(GENERAL) $(SRC) $(HEADER)
33
34 top:
35         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
36
37 all:    lib
38
39 lib:    $(LIBOBJ)
40         $(AR) $(LIB) $(LIBOBJ)
41         $(RANLIB) $(LIB) || echo Never mind.
42         @touch lib
43
44 cmll-x86.s:     asm/cmll-x86.pl ../perlasm/x86asm.pl
45         $(PERL) asm/cmll-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
46 cmll-x86_64.s:  asm/cmll-x86_64.pl
47         $(PERL) asm/cmll-x86_64.pl $(PERLASM_SCHEME) > $@
48 cmllt4-sparcv9.s: asm/cmllt4-sparcv9.pl ../perlasm/sparcv9_modes.pl
49         $(PERL) asm/cmllt4-sparcv9.pl $(CFLAGS) > $@
50
51 files:
52         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
53
54 tags:
55         ctags $(SRC)
56
57 tests:
58
59 lint:
60         lint -DLINT $(INCLUDES) $(SRC)>fluff
61
62 update: depend
63
64 depend:
65         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
66         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
67
68 dclean:
69         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
70         mv -f Makefile.new $(MAKEFILE)
71
72 clean:
73         rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
74
75 # DO NOT DELETE THIS LINE -- make depend depends on it.
76
77 camellia.o: ../../include/openssl/camellia.h
78 camellia.o: ../../include/openssl/opensslconf.h camellia.c cmll_locl.h
79 cmll_cbc.o: ../../include/openssl/camellia.h ../../include/openssl/modes.h
80 cmll_cbc.o: ../../include/openssl/opensslconf.h cmll_cbc.c
81 cmll_cfb.o: ../../include/openssl/camellia.h ../../include/openssl/modes.h
82 cmll_cfb.o: ../../include/openssl/opensslconf.h cmll_cfb.c
83 cmll_ctr.o: ../../include/openssl/camellia.h ../../include/openssl/modes.h
84 cmll_ctr.o: ../../include/openssl/opensslconf.h cmll_ctr.c
85 cmll_ecb.o: ../../include/openssl/camellia.h
86 cmll_ecb.o: ../../include/openssl/opensslconf.h cmll_ecb.c cmll_locl.h
87 cmll_misc.o: ../../include/openssl/camellia.h
88 cmll_misc.o: ../../include/openssl/opensslconf.h
89 cmll_misc.o: ../../include/openssl/opensslv.h cmll_locl.h cmll_misc.c
90 cmll_ofb.o: ../../include/openssl/camellia.h ../../include/openssl/modes.h
91 cmll_ofb.o: ../../include/openssl/opensslconf.h cmll_ofb.c