56c77c52e1
Also remove depend/local_depend. Reviewed-by: Richard Levitte <levitte@openssl.org>
80 lines
2 KiB
Makefile
80 lines
2 KiB
Makefile
#
|
|
# OpenSSL/crypto/modes/Makefile
|
|
#
|
|
|
|
DIR= modes
|
|
TOP= ../..
|
|
CC= cc
|
|
INCLUDES= -I.. -I$(TOP) -I../../include
|
|
CFLAG=-g
|
|
MAKEFILE= Makefile
|
|
AR= ar r
|
|
|
|
MODES_ASM_OBJ=
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
|
ASFLAGS= $(INCLUDES) $(ASFLAG)
|
|
AFLAGS= $(ASFLAGS)
|
|
|
|
GENERAL=Makefile
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
|
LIBSRC= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c \
|
|
ccm128.c xts128.c wrap128.c ocb128.c
|
|
LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o gcm128.o \
|
|
ccm128.o xts128.o wrap128.o ocb128.o $(MODES_ASM_OBJ)
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
HEADER= modes_lcl.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
|
|
|
|
ghash-ia64.s: asm/ghash-ia64.pl
|
|
$(PERL) asm/ghash-ia64.pl $@ $(CFLAGS)
|
|
ghash-x86.s: asm/ghash-x86.pl
|
|
$(PERL) asm/ghash-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
|
|
ghash-x86_64.s: asm/ghash-x86_64.pl
|
|
$(PERL) asm/ghash-x86_64.pl $(PERLASM_SCHEME) > $@
|
|
aesni-gcm-x86_64.s: asm/aesni-gcm-x86_64.pl
|
|
$(PERL) asm/aesni-gcm-x86_64.pl $(PERLASM_SCHEME) > $@
|
|
ghash-sparcv9.s: asm/ghash-sparcv9.pl
|
|
$(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS)
|
|
ghash-alpha.s: asm/ghash-alpha.pl
|
|
(preproc=$$$$.$@.S; trap "rm $$preproc" INT; \
|
|
$(PERL) asm/ghash-alpha.pl > $$preproc && \
|
|
$(CC) -E -P $$preproc > $@ && rm $$preproc)
|
|
ghash-parisc.s: asm/ghash-parisc.pl
|
|
$(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@
|
|
ghashv8-armx.S: asm/ghashv8-armx.pl
|
|
$(PERL) asm/ghashv8-armx.pl $(PERLASM_SCHEME) $@
|
|
ghashp8-ppc.s: asm/ghashp8-ppc.pl
|
|
$(PERL) asm/ghashp8-ppc.pl $(PERLASM_SCHEME) $@
|
|
|
|
# GNU make "catch all"
|
|
ghash-%.S: asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
|
|
|
|
ghash-armv4.o: ghash-armv4.S
|
|
ghashv8-armx.o: ghashv8-armx.S
|
|
|
|
files:
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
|
|
|
depend:
|
|
@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
|
|
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
|
|
|
clean:
|
|
rm -f *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|