2002-01-03 00:55:35 +08:00
|
|
|
#
|
|
|
|
# crypto/aes/Makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
DIR= aes
|
|
|
|
TOP= ../..
|
|
|
|
CC= cc
|
|
|
|
CPP= $(CC) -E
|
|
|
|
INCLUDES=
|
|
|
|
CFLAG=-g
|
|
|
|
MAKEDEPPROG= makedepend
|
|
|
|
MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
|
2005-03-30 21:05:57 +08:00
|
|
|
MAKEFILE= Makefile
|
2002-01-03 00:55:35 +08:00
|
|
|
AR= ar r
|
|
|
|
|
2005-01-18 08:43:32 +08:00
|
|
|
AES_ASM_OBJ=aes_core.o aes_cbc.o
|
2004-07-19 00:19:34 +08:00
|
|
|
|
2002-01-03 00:55:35 +08:00
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
2004-07-24 07:27:10 +08:00
|
|
|
ASFLAGS= $(INCLUDES) $(ASFLAG)
|
2005-01-26 06:09:11 +08:00
|
|
|
AFLAGS= $(ASFLAGS)
|
2002-01-03 00:55:35 +08:00
|
|
|
|
|
|
|
GENERAL=Makefile
|
2002-01-25 15:52:25 +08:00
|
|
|
#TEST=aestest.c
|
|
|
|
TEST=
|
2002-01-03 00:55:35 +08:00
|
|
|
APPS=
|
|
|
|
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
2002-02-16 20:20:34 +08:00
|
|
|
LIBSRC=aes_core.c aes_misc.c aes_ecb.c aes_cbc.c aes_cfb.c aes_ofb.c aes_ctr.c
|
2005-01-18 08:43:32 +08:00
|
|
|
LIBOBJ=aes_misc.o aes_ecb.o aes_cfb.o aes_ofb.o aes_ctr.o $(AES_ASM_OBJ)
|
2002-01-03 00:55:35 +08:00
|
|
|
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
|
|
|
|
EXHEADER= aes.h
|
|
|
|
HEADER= aes_locl.h $(EXHEADER)
|
|
|
|
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
|
|
|
|
top:
|
|
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
|
|
|
|
all: lib
|
|
|
|
|
|
|
|
lib: $(LIBOBJ)
|
|
|
|
$(AR) $(LIB) $(LIBOBJ)
|
|
|
|
$(RANLIB) $(LIB) || echo Never mind.
|
|
|
|
@touch lib
|
|
|
|
|
|
|
|
$(LIBOBJ): $(LIBSRC)
|
|
|
|
|
2005-02-06 21:23:34 +08:00
|
|
|
aes-ia64.s: asm/aes-ia64.S
|
2004-07-24 07:27:10 +08:00
|
|
|
$(CC) $(CFLAGS) -E asm/aes-ia64.S > $@
|
|
|
|
|
2005-02-06 21:23:34 +08:00
|
|
|
ax86-elf.s: asm/aes-586.pl ../perlasm/x86asm.pl
|
2004-12-26 18:58:39 +08:00
|
|
|
(cd asm; $(PERL) aes-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@)
|
2005-02-06 21:23:34 +08:00
|
|
|
ax86-cof.s: asm/aes-586.pl ../perlasm/x86asm.pl
|
2004-12-26 18:58:39 +08:00
|
|
|
(cd asm; $(PERL) aes-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@)
|
|
|
|
ax86-out.s: asm/aes-586.pl ../perlasm/x86asm.pl
|
|
|
|
(cd asm; $(PERL) aes-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@)
|
2004-12-24 05:44:28 +08:00
|
|
|
|
2002-01-03 00:55:35 +08:00
|
|
|
files:
|
2005-03-30 21:05:57 +08:00
|
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
2002-01-03 00:55:35 +08:00
|
|
|
|
|
|
|
links:
|
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
|
2002-02-20 19:43:40 +08:00
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
|
2002-01-03 00:55:35 +08:00
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
|
|
|
|
|
|
|
|
install: installs
|
|
|
|
|
|
|
|
installs:
|
2005-05-16 06:23:26 +08:00
|
|
|
@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
|
2004-11-03 07:55:01 +08:00
|
|
|
@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
|
2002-01-03 00:55:35 +08:00
|
|
|
do \
|
|
|
|
(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
|
|
|
|
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
|
|
|
|
done;
|
|
|
|
|
|
|
|
tags:
|
|
|
|
ctags $(SRC)
|
|
|
|
|
|
|
|
tests:
|
|
|
|
|
|
|
|
lint:
|
|
|
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
|
|
|
|
|
|
|
depend:
|
2002-10-09 21:25:12 +08:00
|
|
|
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
2002-01-03 00:55:35 +08:00
|
|
|
|
|
|
|
dclean:
|
|
|
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
|
|
|
mv -f Makefile.new $(MAKEFILE)
|
|
|
|
|
|
|
|
clean:
|
2005-02-06 21:23:34 +08:00
|
|
|
rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
2002-01-03 00:55:35 +08:00
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
|
|
|