0f539dc1a2
We had updates of certain header files in both Makefile.org and the Makefile in the directory the header file lived in. This is error prone and also sometimes generates slightly different results (usually just a comment that differs) depending on which way the update was done. This removes the file update targets from the top level Makefile, adds an update: target in all Makefiles and has it depend on the depend: or local_depend: targets, whichever is appropriate, so we don't get a double run through the whole file tree. Reviewed-by: Rich Salz <rsalz@openssl.org>
80 lines
1.8 KiB
Makefile
80 lines
1.8 KiB
Makefile
#
|
|
# OpenSSL/crypto/rc5/Makefile
|
|
#
|
|
|
|
DIR= rc5
|
|
TOP= ../..
|
|
CC= cc
|
|
CPP= $(CC) -E
|
|
INCLUDES=
|
|
CFLAG=-g
|
|
MAKEFILE= Makefile
|
|
AR= ar r
|
|
|
|
RC5_ENC= rc5_enc.o
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
ASFLAGS= $(INCLUDES) $(ASFLAG)
|
|
AFLAGS= $(ASFLAGS)
|
|
|
|
GENERAL=Makefile
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
|
LIBSRC=rc5_skey.c rc5_ecb.c rc5_enc.c rc5cfb64.c rc5ofb64.c
|
|
LIBOBJ=rc5_skey.o rc5_ecb.o $(RC5_ENC) rc5cfb64.o rc5ofb64.o
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
HEADER= rc5_locl.h
|
|
|
|
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
|
|
|
|
rc5-586.s: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
|
|
$(PERL) asm/rc5-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
|
|
|
|
files:
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
|
|
|
tags:
|
|
ctags $(SRC)
|
|
|
|
tests:
|
|
|
|
lint:
|
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
|
|
|
update: depend
|
|
|
|
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.
|
|
|
|
rc5_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
|
rc5_ecb.o: ../../include/openssl/rc5.h rc5_ecb.c rc5_locl.h
|
|
rc5_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
|
|
rc5_enc.o: rc5_enc.c rc5_locl.h
|
|
rc5_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
|
|
rc5_skey.o: rc5_locl.h rc5_skey.c
|
|
rc5cfb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
|
|
rc5cfb64.o: rc5_locl.h rc5cfb64.c
|
|
rc5ofb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
|
|
rc5ofb64.o: rc5_locl.h rc5ofb64.c
|