Makefile 3.9 KB
Newer Older
1 2 3 4 5 6 7 8 9
#
# OpenSSL/crypto/store/Makefile
#

DIR=	store
TOP=	../..
CC=	cc
INCLUDES= -I.. -I$(TOP) -I../../include
CFLAG=-g
B
Ben Laurie 已提交
10
MAKEFILE=	Makefile
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
AR=		ar r

CFLAGS= $(INCLUDES) $(CFLAG)

GENERAL=Makefile
#TEST= storetest.c
TEST=
APPS=

LIB=$(TOP)/libcrypto.a
LIBSRC= str_err.c str_lib.c str_meth.c str_mem.c
LIBOBJ= str_err.o str_lib.o str_meth.o str_mem.o

SRC= $(LIBSRC)

26 27
#EXHEADER= store.h str_compat.h
EXHEADER= store.h
28 29 30 31 32 33 34 35 36 37
HEADER=	$(EXHEADER) str_locl.h

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

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

all:	lib

lib:	$(LIBOBJ)
38
	$(ARX) $(LIB) $(LIBOBJ)
39 40 41 42
	$(RANLIB) $(LIB) || echo Never mind.
	@touch lib

files:
B
Ben Laurie 已提交
43
	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
44 45 46 47 48 49 50

links:
	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)

install:
A
Andy Polyakov 已提交
51
	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
52
	@headerlist="$(EXHEADER)"; for i in $$headerlist; \
53 54 55 56 57 58 59 60 61 62 63 64 65 66
	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:
67
	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
68 69 70 71 72 73 74 75 76 77 78
	$(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 *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff

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

79 80 81 82 83 84 85
str_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
str_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
str_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
str_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
str_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
str_err.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
str_err.o: str_err.c
86 87
str_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
str_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
G
Geoff Thorpe 已提交
88
str_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
89 90 91 92 93 94
str_lib.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
str_lib.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
str_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h
str_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
str_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
str_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
G
Geoff Thorpe 已提交
95
str_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
96 97
str_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
str_lib.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
G
Geoff Thorpe 已提交
98 99
str_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
str_lib.o: str_lib.c str_locl.h
100 101 102 103 104 105 106 107 108
str_mem.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
str_mem.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
str_mem.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
str_mem.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
str_mem.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
str_mem.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
str_mem.o: str_locl.h str_mem.c
str_meth.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
str_meth.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
109
str_meth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
110
str_meth.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
G
Geoff Thorpe 已提交
111 112
str_meth.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
str_meth.o: str_locl.h str_meth.c