1# 2# SSLeay/crypto/txt_db/Makefile 3# 4 5DIR= txt_db 6TOP= ../.. 7CC= cc 8INCLUDES= 9CFLAG=-g 10INSTALL_PREFIX= 11OPENSSLDIR= /usr/local/ssl 12INSTALLTOP=/usr/local/ssl 13MAKEDEPPROG= makedepend 14MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) 15MAKEFILE= Makefile 16AR= ar r 17 18CFLAGS= $(INCLUDES) $(CFLAG) 19 20GENERAL=Makefile 21TEST= 22APPS= 23 24LIB=$(TOP)/libcrypto.a 25LIBSRC=txt_db.c 26LIBOBJ=txt_db.o 27 28SRC= $(LIBSRC) 29 30EXHEADER= txt_db.h 31HEADER= $(EXHEADER) 32 33ALL= $(GENERAL) $(SRC) $(HEADER) 34 35top: 36 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) 37 38all: lib 39 40lib: $(LIBOBJ) 41 $(AR) $(LIB) $(LIBOBJ) 42 $(RANLIB) $(LIB) || echo Never mind. 43 @touch lib 44 45files: 46 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 47 48links: 49 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 50 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 51 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 52 53install: 54 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ 55 do \ 56 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 57 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 58 done; 59 60tags: 61 ctags $(SRC) 62 63tests: 64 65lint: 66 lint -DLINT $(INCLUDES) $(SRC)>fluff 67 68depend: 69 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(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 80txt_db.o: ../../e_os.h ../../include/openssl/bio.h 81txt_db.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 82txt_db.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 83txt_db.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 84txt_db.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 85txt_db.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 86txt_db.o: ../../include/openssl/txt_db.h ../cryptlib.h txt_db.c 87