ac3ffdaa17e59e49a61de1ce132c1ab4ebe32daa
[openssl.git] / crypto / camellia / Makefile.in
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 depend:
55         $(TOP)/util/domd $(CFLAG) $(INCLUDES) -- $(PROGS) $(LIBSRC)
56
57 clean:
58         rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
59
60 # DO NOT DELETE THIS LINE -- make depend depends on it.