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