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