2002-01-02 16:55:35 +00:00
|
|
|
#
|
|
|
|
# crypto/aes/Makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
DIR= aes
|
|
|
|
TOP= ../..
|
|
|
|
CC= cc
|
|
|
|
CPP= $(CC) -E
|
|
|
|
INCLUDES=
|
|
|
|
CFLAG=-g
|
|
|
|
INSTALL_PREFIX=
|
|
|
|
OPENSSLDIR= /usr/local/ssl
|
|
|
|
INSTALLTOP= /usr/local/ssl
|
|
|
|
MAKEDEPPROG= makedepend
|
|
|
|
MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
|
2004-05-11 12:46:24 +00:00
|
|
|
MAKEFILE= Makefile
|
2002-01-02 16:55:35 +00:00
|
|
|
AR= ar r
|
|
|
|
|
|
|
|
# CFLAGS= -mpentiumpro $(INCLUDES) $(CFLAG) -O3 -fexpensive-optimizations -funroll-loops -fforce-addr
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
|
|
|
|
|
|
GENERAL=Makefile
|
2002-01-25 07:52:25 +00:00
|
|
|
#TEST=aestest.c
|
|
|
|
TEST=
|
2002-01-02 16:55:35 +00:00
|
|
|
APPS=
|
|
|
|
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
2002-02-16 12:21:43 +00:00
|
|
|
LIBSRC=aes_core.c aes_misc.c aes_ecb.c aes_cbc.c aes_cfb.c aes_ofb.c aes_ctr.c
|
|
|
|
LIBOBJ=aes_core.o aes_misc.o aes_ecb.o aes_cbc.o aes_cfb.o aes_ofb.o aes_ctr.o
|
2002-01-02 16:55:35 +00: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)
|
|
|
|
|
|
|
|
files:
|
2004-05-11 12:46:24 +00:00
|
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
2002-01-02 16:55:35 +00:00
|
|
|
|
|
|
|
links:
|
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
|
2002-02-20 12:28:32 +00:00
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
|
2002-01-02 16:55:35 +00:00
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
|
|
|
|
|
|
|
|
install: installs
|
|
|
|
|
|
|
|
installs:
|
|
|
|
@for i in $(EXHEADER) ; \
|
|
|
|
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 13:21:33 +00:00
|
|
|
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
2002-01-02 16:55:35 +00:00
|
|
|
|
|
|
|
dclean:
|
|
|
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
|
|
|
mv -f Makefile.new $(MAKEFILE)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
|
|
|
2002-01-18 16:51:05 +00:00
|
|
|
aes_cbc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
|
|
|
|
aes_cbc.o: ../../include/openssl/opensslconf.h aes_cbc.c aes_locl.h
|
2002-02-26 14:37:25 +00:00
|
|
|
aes_cfb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
|
|
|
|
aes_cfb.o: ../../include/openssl/opensslconf.h aes_cfb.c aes_locl.h
|
2002-01-18 16:51:05 +00:00
|
|
|
aes_core.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
|
2004-05-11 12:46:24 +00:00
|
|
|
aes_core.o: ../../include/openssl/fips.h ../../include/openssl/opensslconf.h
|
|
|
|
aes_core.o: aes_core.c aes_locl.h
|
2002-02-26 14:37:25 +00:00
|
|
|
aes_ctr.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
|
|
|
|
aes_ctr.o: ../../include/openssl/opensslconf.h aes_ctr.c aes_locl.h
|
2002-01-18 16:51:05 +00:00
|
|
|
aes_ecb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
|
|
|
|
aes_ecb.o: ../../include/openssl/opensslconf.h aes_ecb.c aes_locl.h
|
|
|
|
aes_misc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
|
|
|
|
aes_misc.o: ../../include/openssl/opensslconf.h
|
|
|
|
aes_misc.o: ../../include/openssl/opensslv.h aes_locl.h aes_misc.c
|
2002-02-26 14:37:25 +00:00
|
|
|
aes_ofb.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
|
|
|
|
aes_ofb.o: ../../include/openssl/opensslconf.h aes_locl.h aes_ofb.c
|