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