2006-06-09 22:29:40 +00:00
|
|
|
#
|
|
|
|
# crypto/camellia/Makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
DIR= camellia
|
|
|
|
TOP= ../..
|
|
|
|
CC= cc
|
|
|
|
CPP= $(CC) -E
|
|
|
|
INCLUDES=
|
|
|
|
CFLAG=-g
|
|
|
|
MAKEFILE= Makefile
|
|
|
|
AR= ar r
|
|
|
|
|
2007-08-28 20:45:25 +00:00
|
|
|
CMLL_ENC= camellia.o cmll_misc.o cmll_cbc.o
|
2006-06-09 22:29:40 +00:00
|
|
|
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
|
|
ASFLAGS= $(INCLUDES) $(ASFLAG)
|
|
|
|
AFLAGS= $(ASFLAGS)
|
|
|
|
|
|
|
|
GENERAL=Makefile
|
|
|
|
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
|
|
|
LIBSRC=camellia.c cmll_misc.c cmll_ecb.c cmll_cbc.c cmll_ofb.c \
|
|
|
|
cmll_cfb.c cmll_ctr.c
|
|
|
|
|
2007-08-28 20:45:25 +00:00
|
|
|
LIBOBJ= cmll_ecb.o cmll_ofb.o cmll_cfb.o cmll_ctr.o $(CMLL_ENC)
|
2006-06-09 22:29:40 +00:00
|
|
|
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
|
2015-03-26 20:44:59 +00:00
|
|
|
HEADER= cmll_locl.h
|
2006-06-09 22:29:40 +00:00
|
|
|
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
|
|
|
|
top:
|
|
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
|
|
|
|
all: lib
|
|
|
|
|
|
|
|
lib: $(LIBOBJ)
|
2014-10-18 22:47:03 +00:00
|
|
|
$(AR) $(LIB) $(LIBOBJ)
|
2006-06-09 22:29:40 +00:00
|
|
|
$(RANLIB) $(LIB) || echo Never mind.
|
|
|
|
@touch lib
|
|
|
|
|
2008-12-03 09:22:51 +00:00
|
|
|
cmll-x86.s: asm/cmll-x86.pl ../perlasm/x86asm.pl
|
|
|
|
$(PERL) asm/cmll-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
|
|
|
|
cmll-x86_64.s: asm/cmll-x86_64.pl
|
|
|
|
$(PERL) asm/cmll-x86_64.pl $(PERLASM_SCHEME) > $@
|
2015-02-22 16:43:11 +00:00
|
|
|
cmllt4-sparcv9.s: asm/cmllt4-sparcv9.pl ../perlasm/sparcv9_modes.pl
|
2012-10-11 18:35:18 +00:00
|
|
|
$(PERL) asm/cmllt4-sparcv9.pl $(CFLAGS) > $@
|
2008-12-03 09:22:51 +00:00
|
|
|
|
2006-06-09 22:29:40 +00:00
|
|
|
files:
|
|
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
|
|
|
|
|
|
|
tags:
|
|
|
|
ctags $(SRC)
|
|
|
|
|
|
|
|
tests:
|
|
|
|
|
|
|
|
lint:
|
|
|
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
|
|
|
|
2015-05-22 15:54:06 +00:00
|
|
|
update: depend
|
|
|
|
|
2006-06-09 22:29:40 +00:00
|
|
|
depend:
|
|
|
|
@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
|
|
|
|
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
|
|
|
|
|
|
|
dclean:
|
|
|
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
|
|
|
mv -f Makefile.new $(MAKEFILE)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
|
|
|
2014-12-11 23:33:10 +00:00
|
|
|
camellia.o: ../../include/openssl/camellia.h
|
|
|
|
camellia.o: ../../include/openssl/opensslconf.h camellia.c cmll_locl.h
|
2012-06-03 22:00:21 +00:00
|
|
|
cmll_cbc.o: ../../include/openssl/camellia.h ../../include/openssl/modes.h
|
|
|
|
cmll_cbc.o: ../../include/openssl/opensslconf.h cmll_cbc.c
|
|
|
|
cmll_cfb.o: ../../include/openssl/camellia.h ../../include/openssl/modes.h
|
|
|
|
cmll_cfb.o: ../../include/openssl/opensslconf.h cmll_cfb.c
|
|
|
|
cmll_ctr.o: ../../include/openssl/camellia.h ../../include/openssl/modes.h
|
|
|
|
cmll_ctr.o: ../../include/openssl/opensslconf.h cmll_ctr.c
|
2008-12-02 01:21:39 +00:00
|
|
|
cmll_ecb.o: ../../include/openssl/camellia.h
|
2006-06-09 22:29:40 +00:00
|
|
|
cmll_ecb.o: ../../include/openssl/opensslconf.h cmll_ecb.c cmll_locl.h
|
2008-12-02 01:21:39 +00:00
|
|
|
cmll_misc.o: ../../include/openssl/camellia.h
|
2006-06-09 22:29:40 +00:00
|
|
|
cmll_misc.o: ../../include/openssl/opensslconf.h
|
|
|
|
cmll_misc.o: ../../include/openssl/opensslv.h cmll_locl.h cmll_misc.c
|
2012-06-03 22:00:21 +00:00
|
|
|
cmll_ofb.o: ../../include/openssl/camellia.h ../../include/openssl/modes.h
|
|
|
|
cmll_ofb.o: ../../include/openssl/opensslconf.h cmll_ofb.c
|