1142425Snectar#
2142425Snectar# OpenSSL/krb5/Makefile
3142425Snectar#
4142425Snectar
5142425SnectarDIR=	krb5
6142425SnectarTOP=	../..
7142425SnectarCC=	cc
8142425SnectarINCLUDES= -I.. -I$(TOP) -I../../include
9142425SnectarCFLAG=-g
10142425SnectarMAKEFILE=	Makefile
11142425SnectarAR=		ar r
12142425Snectar
13142425SnectarCFLAGS= $(INCLUDES) $(CFLAG)
14142425Snectar
15142425SnectarGENERAL=Makefile README
16142425SnectarTEST=
17142425SnectarAPPS=
18142425Snectar
19142425SnectarLIB=$(TOP)/libcrypto.a
20142425SnectarLIBSRC= krb5_asn.c
21142425Snectar
22142425SnectarLIBOBJ= krb5_asn.o
23142425Snectar
24142425SnectarSRC= $(LIBSRC)
25142425Snectar
26142425SnectarEXHEADER= krb5_asn.h
27142425SnectarHEADER=	$(EXHEADER)
28142425Snectar
29142425SnectarALL=    $(GENERAL) $(SRC) $(HEADER)
30142425Snectar
31142425Snectartop:
32142425Snectar	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
33142425Snectar
34142425Snectarall:	lib
35142425Snectar
36142425Snectarlib:	$(LIBOBJ)
37238405Sjkim	$(AR) $(LIB) $(LIBOBJ)
38142425Snectar	$(RANLIB) $(LIB) || echo Never mind.
39142425Snectar	@touch lib
40142425Snectar
41142425Snectarfiles:
42142425Snectar	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
43142425Snectar
44142425Snectarlinks:
45142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
46142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
47142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
48142425Snectar
49142425Snectarinstall:
50160814Ssimon	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
51160814Ssimon	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
52142425Snectar	do  \
53142425Snectar	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
54142425Snectar	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
55142425Snectar	done;
56142425Snectar
57142425Snectartags:
58142425Snectar	ctags $(SRC)
59142425Snectar
60142425Snectartests:
61142425Snectar
62142425Snectarlint:
63142425Snectar	lint -DLINT $(INCLUDES) $(SRC)>fluff
64142425Snectar
65284285Sjkimupdate: depend
66284285Sjkim
67142425Snectardepend:
68160814Ssimon	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
69142425Snectar	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
70142425Snectar
71142425Snectardclean:
72142425Snectar	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
73142425Snectar	mv -f Makefile.new $(MAKEFILE)
74142425Snectar
75142425Snectarclean:
76142425Snectar	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
77142425Snectar
78142425Snectar# DO NOT DELETE THIS LINE -- make depend depends on it.
79142425Snectar
80142425Snectarkrb5_asn.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
81160814Ssimonkrb5_asn.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
82160814Ssimonkrb5_asn.o: ../../include/openssl/e_os2.h ../../include/openssl/krb5_asn.h
83142425Snectarkrb5_asn.o: ../../include/openssl/opensslconf.h
84142425Snectarkrb5_asn.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
85142425Snectarkrb5_asn.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
86142425Snectarkrb5_asn.o: ../../include/openssl/symhacks.h krb5_asn.c
87