1# 2# OpenSSL/crypto/ui/Makefile 3# 4 5DIR= ui 6TOP= ../.. 7CC= cc 8INCLUDES= -I.. -I$(TOP) -I../../include 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 21#TEST= uitest.c 22TEST= 23APPS= 24 25COMPATSRC= ui_compat.c 26COMPATOBJ= ui_compat.o 27 28LIB=$(TOP)/libcrypto.a 29LIBSRC= ui_err.c ui_lib.c ui_openssl.c ui_util.c $(COMPATSRC) 30LIBOBJ= ui_err.o ui_lib.o ui_openssl.o ui_util.o $(COMPATOBJ) 31 32SRC= $(LIBSRC) 33 34EXHEADER= ui.h ui_compat.h 35HEADER= $(EXHEADER) ui_locl.h 36 37ALL= $(GENERAL) $(SRC) $(HEADER) 38 39top: 40 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) 41 42all: lib 43 44lib: $(LIBOBJ) 45 $(AR) $(LIB) $(LIBOBJ) 46 $(RANLIB) $(LIB) || echo Never mind. 47 @touch lib 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 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ 59 do \ 60 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 61 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 62 done; 63 64tags: 65 ctags $(SRC) 66 67tests: 68 69lint: 70 lint -DLINT $(INCLUDES) $(SRC)>fluff 71 72depend: 73 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 74 75dclean: 76 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 77 mv -f Makefile.new $(MAKEFILE) 78 79clean: 80 rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 81 82# DO NOT DELETE THIS LINE -- make depend depends on it. 83 84ui_compat.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 85ui_compat.o: ../../include/openssl/opensslconf.h 86ui_compat.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 87ui_compat.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 88ui_compat.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 89ui_compat.o: ui_compat.c 90ui_err.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h 91ui_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 92ui_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 93ui_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 94ui_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 95ui_err.o: ../../include/openssl/ui.h ui_err.c 96ui_lib.o: ../../e_os.h ../../include/openssl/bio.h 97ui_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 98ui_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 99ui_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 100ui_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 101ui_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 102ui_lib.o: ../../include/openssl/ui.h ../cryptlib.h ui_lib.c ui_locl.h 103ui_openssl.o: ../../e_os.h ../../include/openssl/bio.h 104ui_openssl.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 105ui_openssl.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 106ui_openssl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 107ui_openssl.o: ../../include/openssl/opensslv.h 108ui_openssl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 109ui_openssl.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 110ui_openssl.o: ../cryptlib.h ui_locl.h ui_openssl.c 111ui_util.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 112ui_util.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 113ui_util.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 114ui_util.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 115ui_util.o: ui_util.c 116