Makefile.in 1.3 KB
Newer Older
B
Ben Laurie 已提交
1
#
R
Rich Salz 已提交
2
# OpenSSL/crypto/engine/Makefile
B
Ben Laurie 已提交
3 4
#

R
Rich Salz 已提交
5
DIR=	engine
B
Ben Laurie 已提交
6 7
TOP=	../..
CC=	cc
R
Rich Salz 已提交
8
INCLUDES= -I.. -I$(TOP) -I../../include
B
Ben Laurie 已提交
9 10 11 12 13 14 15 16 17
CFLAG=-g
MAKEFILE=	Makefile
AR=		ar r

CFLAGS= $(INCLUDES) $(CFLAG)

GENERAL=Makefile

LIB=$(TOP)/libcrypto.a
R
Rich Salz 已提交
18 19 20 21 22 23 24 25 26 27 28 29
LIBSRC= eng_err.c eng_lib.c eng_list.c eng_init.c eng_ctrl.c \
	eng_table.c eng_pkey.c eng_fat.c eng_all.c \
	tb_rsa.c tb_dsa.c tb_dh.c tb_rand.c tb_store.c \
	tb_cipher.c tb_digest.c tb_pkmeth.c tb_asnmth.c tb_eckey.c \
	eng_openssl.c eng_cnf.c eng_dyn.c eng_cryptodev.c \
	eng_rdrand.c
LIBOBJ= eng_err.o eng_lib.o eng_list.o eng_init.o eng_ctrl.o \
	eng_table.o eng_pkey.o eng_fat.o eng_all.o \
	tb_rsa.o tb_dsa.o tb_dh.o tb_rand.o tb_store.o \
	tb_cipher.o tb_digest.o tb_pkmeth.o tb_asnmth.o tb_eckey.o \
	eng_openssl.o eng_cnf.o eng_dyn.o eng_cryptodev.o \
	eng_rdrand.o
B
Ben Laurie 已提交
30 31 32

SRC= $(LIBSRC)

33
HEADER=	
B
Ben Laurie 已提交
34 35 36 37 38 39 40 41 42

ALL=    $(GENERAL) $(SRC) $(HEADER)

top:
	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)

all:	lib

lib:	$(LIBOBJ)
43
	$(AR) $(LIB) $(LIBOBJ)
B
Ben Laurie 已提交
44 45 46 47 48 49
	$(RANLIB) $(LIB) || echo Never mind.
	@touch lib

files:
	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO

50 51
update: depend

B
Ben Laurie 已提交
52
depend:
53
	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
B
Ben Laurie 已提交
54 55 56
	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)

clean:
R
Rich Salz 已提交
57
	rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
B
Ben Laurie 已提交
58 59

# DO NOT DELETE THIS LINE -- make depend depends on it.