Makefile revision 296341
1#
2# OpenSSL/crypto/store/Makefile
3#
4
5DIR=	store
6TOP=	../..
7CC=	cc
8INCLUDES= -I.. -I$(TOP) -I../../include
9CFLAG=-g
10MAKEFILE=	Makefile
11AR=		ar r
12
13CFLAGS= $(INCLUDES) $(CFLAG)
14
15GENERAL=Makefile
16#TEST= storetest.c
17TEST=
18APPS=
19
20LIB=$(TOP)/libcrypto.a
21LIBSRC= str_err.c str_lib.c str_meth.c str_mem.c
22LIBOBJ= str_err.o str_lib.o str_meth.o str_mem.o
23
24SRC= $(LIBSRC)
25
26#EXHEADER= store.h str_compat.h
27EXHEADER= store.h
28HEADER=	$(EXHEADER) str_locl.h
29
30ALL=    $(GENERAL) $(SRC) $(HEADER)
31
32top:
33	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
34
35all:	lib
36
37lib:	$(LIBOBJ)
38	$(AR) $(LIB) $(LIBOBJ)
39	$(RANLIB) $(LIB) || echo Never mind.
40	@touch lib
41
42files:
43	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
44
45links:
46	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
47	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
48	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
49
50install:
51	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
52	@headerlist="$(EXHEADER)"; for i in $$headerlist; \
53	do  \
54	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
55	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
56	done;
57
58tags:
59	ctags $(SRC)
60
61tests:
62
63lint:
64	lint -DLINT $(INCLUDES) $(SRC)>fluff
65
66update: depend
67
68depend:
69	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
70	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
71
72dclean:
73	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
74	mv -f Makefile.new $(MAKEFILE)
75
76clean:
77	rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
78
79# DO NOT DELETE THIS LINE -- make depend depends on it.
80
81str_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
82str_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
83str_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
84str_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
85str_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
86str_err.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
87str_err.o: str_err.c
88str_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
89str_lib.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
90str_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
91str_lib.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
92str_lib.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
93str_lib.o: ../../include/openssl/err.h ../../include/openssl/evp.h
94str_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
95str_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
96str_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
97str_lib.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
98str_lib.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
99str_lib.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
100str_lib.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
101str_lib.o: str_lib.c str_locl.h
102str_mem.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
103str_mem.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
104str_mem.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
105str_mem.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
106str_mem.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
107str_mem.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
108str_mem.o: str_locl.h str_mem.c
109str_meth.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
110str_meth.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
111str_meth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
112str_meth.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
113str_meth.o: ../../include/openssl/store.h ../../include/openssl/symhacks.h
114str_meth.o: str_locl.h str_meth.c
115